This commit is contained in:
xrkffgg
2020-12-21 11:08:10 +08:00
parent be21a57701
commit 38d890766f
4 changed files with 125 additions and 0 deletions

28
src/main.js Normal file
View File

@@ -0,0 +1,28 @@
const core = require("@actions/core");
const github = require("@actions/github");
const { Octokit } = require('@octokit/rest');
const REACTION_TYPES = [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes",
];
async function main() {
try {
const token = core.getInput('token');
const owner = github.context.repo.owner;
const repo = github.context.repo.repo;
console.log(owner, repo)
}
catch (error) {
core.setFailed(error.message);
}
}
main();