-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to auto-add milestones to issues/PRs
Create a GitHub Actions workflow that automatically assigns milestones to newly opened issues and pull requests. This uses the `benelan/milestone-action` to manage milestones based on project configurations.
- Loading branch information
1 parent
4603933
commit 11e4b48
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Add Milestone to Issue/PR | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- main | ||
|
||
jobs: | ||
add_milestone: | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: benelan/milestone-action@v3 | ||
with: | ||
# If true, add the milestone with the farthest due date. By default, | ||
# the action adds the current milestone (the closest due date). | ||
farthest: false | ||
|
||
# If true, overwrite existing milestones on issues and pull requests. | ||
# By default, the action exits if a milestone has already been added. | ||
overwrite: false | ||
|
||
# If true, add the only open milestone in a repo, even if there is no | ||
# due date. By default, milestones with no due date are ignored. | ||
single: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters