Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bemijonathan committed May 12, 2024
1 parent 362adff commit af7dfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export async function run(): Promise<void> {
try {
const githubContext = github.context

console.log(githubContext, 'githubContext')
console.log(githubContext.payload.pull_request?.number, 'githubContext')
const pullRequestNumber = githubContext.payload.pull_request?.number

if (!pullRequestNumber || !githubContext.payload) {
if (!pullRequestNumber) {
Logger.warn('Could not get pull request number from context, exiting')
return
}
Expand Down

0 comments on commit af7dfb0

Please sign in to comment.