Skip to content

Commit

Permalink
fix: should ignore bot itself
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKhew96 committed Sep 16, 2024
1 parent f546206 commit e0de281
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ async function manualRequest (token, owner, repo, issueNo) {

async function run () {
try {
if (context.payload.sender.id === 78363386) return // ignore bot

const token = core.getInput('github-token')
const { owner, repo } = getRepo()
const issue = await getIssue(token)
Expand Down

0 comments on commit e0de281

Please sign in to comment.