Skip to content

Commit

Permalink
error message
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Mar 9, 2022
1 parent 135dfa6 commit 2017dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type ClientType = ReturnType<typeof github.getOctokit>

const run = async (): Promise<void> => {
if (!github.context) return core.setFailed('No GitHub context.')
if (!github.context.payload) return core.setFailed('No payload. Make sure this is an issue event.')
if (!github.context.payload) return core.setFailed('No event. Make sure this is an issue or pr event.')
const token = core.getInput('github-token') || process.env.GITHUB_TOKEN
const projectNumber = parseInt(core.getInput('project-number'))
const organization = core.getInput('organization') || github.context.repo.owner
Expand Down

0 comments on commit 2017dd9

Please sign in to comment.