Skip to content

Commit

Permalink
ci: unset milestone if a backport ticket is closed as not planned
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu authored and innobead committed Nov 25, 2024
1 parent 67fc43e commit 611483c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/wont-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ jobs:
with:
labels: wontfix
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Clear milestone
if: steps.check-closed-reason.outputs.result == 'true'
uses: actions/github-script@v6
with:
script: |
const issue_number = context.payload.issue.number;
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
milestone: null
});
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 611483c

Please sign in to comment.