Skip to content

Commit

Permalink
Merge branch 'main' into gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
morri-son authored Feb 4, 2025
2 parents 54a9246 + c6bf804 commit 03a2823
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/milestone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Set milestone
on:
issues:
types:
- closed
pull_request:
types:
- closed
jobs:
set_milestone:
name: Set milestone
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Set milestone on issue
if: github.event.issue.state_reason == 'completed'
run: gh issue edit ${{ github.event.issue.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set milestone on pull request
if: github.event.pull_request.merged == true
run: gh pr edit ${{ github.event.pull_request.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 03a2823

Please sign in to comment.