Skip to content

Commit 2040f91

Browse files
committed
pr-checks: add milestoner GitHub Action
The milestoner action adds a milestone to a pull request based on the base branch name. If the base branch name matches "vNUMBER.NUMBER", look for all open milestones matching this prefix. If any are found, apply the one with the earliest due date. If none are found or if a milestone is already applied, do nothing. Signed-off-by: Joe Downs <joe@dwns.dev>
1 parent ef66d09 commit 2040f91

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,15 @@ jobs:
3636
uses: open-mpi/pr-labeler@v1.0.0
3737
with:
3838
token: "${{ secrets.GITHUB_TOKEN }}"
39+
40+
milestone:
41+
permissions:
42+
issues: write
43+
pull-requests: write
44+
name: Milestone Pull Request
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Pull Request Milestoner
48+
uses: open-mpi/pr-milestoner@v1.0.0
49+
with:
50+
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)