我正在尝试执行一个 GitHub 操作,该操作在有人对拉取请求发表评论时运行(我正在使用 issue_comment)。
在我的index.js
中,我正在运行以下几行:
const core = require("@actions/core");
const github = require("@actions/github");
.
.
.
const myToken = core.getInput("github-token");
const octokit = github.getOctokit(myToken);
core.info(JSON.stringify(octokit));
输出是
{
"log": {},
"rest": {
"actions": {},
"activity": {},
"apps": {},
"billing": {},
"checks": {},
"codeScanning": {},
"codesOfConduct": {},
"emojis": {},
"enterpriseAdmin": {},
"gists": {},
"git": {},
"gitignore": {},
"interactions": {},
"issues": {},
"licenses": {},
"markdown": {},
"meta": {},
"migrations": {},
"orgs": {},
"packages": {},
"projects": {},
"pulls": {},
"rateLimit": {},
"reactions": {},
"repos": {},
"search": {},
"secretScanning": {},
"teams": {},
"users": {}
}
}
如果没有填充拉取,我无法合并拉取请求。我该如何解决这个问题?