Skip to content

Commit

Permalink
Fixup milestone assignment #16974
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Aug 8, 2024
1 parent 039f3f4 commit 2857b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/assign-milestone-on-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issueOrPr = context.payload.issue || context.payload.pull_request_target;
const issueOrPr = context.payload.issue || context.payload.pull_request;
if (!issueOrPr.milestone) {
core.setOutput('milestoneNotSet', 'true');
} else {
Expand All @@ -36,7 +36,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issueOrPrNumber = (context.payload.issue || context.payload.pull_request_target).number;
const issueOrPrNumber = (context.payload.issue || context.payload.pull_request).number;
const repository = context.repo;
await github.rest.issues.update({
...repository,
Expand Down

0 comments on commit 2857b9a

Please sign in to comment.