提交 71c30cb5 编写于 作者: sinat_25235033's avatar sinat_25235033

add more log info

上级 bfdae0d3
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
......@@ -32,14 +32,14 @@ async function run(): Promise<void> {
const issue_user = issueCommentPayload.comment.user.login
let bot_login_name = core.getInput('BOT_LOGIN_NAME')
core.info(`bot_login_name1: ${bot_login_name}`)
if (bot_login_name === null) {
if (bot_login_name === null || bot_login_name === undefined || bot_login_name === '') {
octokit = github.getOctokit(myToken)
const botInfo = await octokit.request('GET /user')
core.info(JSON.stringify(botInfo))
bot_login_name = botInfo.data.login
core.info(`bot_login_name2: ${bot_login_name}`)
}
if (bot_login_name === issue_user ) {
if (bot_login_name === issue_user) {
core.info("The issue comment user is bot self, ignore return.")
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册