GitHub Action to Comment on Milestone Issues and Pull Requests
MIT License
GitHub Action to Comment on Milestone Issues and Pull Requests
Comment on all issues and pull requests after closing a milestone.
name: Closed Milestones
on:
milestone:
types: [closed]
permissions:
issues: write
pull-requests: write
jobs:
Comment:
runs-on: ubuntu-latest
steps:
- uses: bflad/action-milestone-comment@v2
with:
body: |
This functionality has been released in ${{ github.event.milestone.title }}.
For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/${{ github.repository }}/issues/new/choose) following the template. Thank you!
Input | Description | Default |
---|---|---|
body |
Content of comment for issues and pull requests. | |
milestone |
Numeric identifier of milestone. | ${{ github.event.milestone.number }} |
state |
Issue and pull request state. Only those in this state will receive a comment. Valid values are all , closed , or open . |
all |
token |
GitHub token to perform actions. | ${{ github.token }} |
Output | Description |
---|---|
ids |
Identifiers of all issues and pull requests that received comments. |
Install the dependencies
npm install
Run the tests ✔️
npm run test
Packaging assembles the code into one file (dist/index.js
) that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules
.
Run build
npm run build