https://github.com/radcortez/milestone-set-action
https://github.com/radcortez/milestone-set-action
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/radcortez/milestone-set-action
- Owner: radcortez
- Created: 2023-04-06T12:22:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T10:02:17.000Z (about 1 year ago)
- Last Synced: 2025-02-08T16:37:53.597Z (5 months ago)
- Language: JavaScript
- Size: 2.77 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Milestone Set action
The purpose of this action is to set the Milestone of a merged Pull Request. The Milestone is automatically selected
to the next open and due date Milestone.This action is only intended to run with Pull Request events for now.
## Inputs
### `github-token`
**Required** The GitHub Token used to create an authenticated client. The Github Token is already set by the Github
Action itself. Use this if you want to pass in your own Personal Access Token.**Default** `${{github.token}}`.
## Example usage
Set up the Action:
```yaml
name: Update Milestoneon:
pull_request_target:
types: [closed]jobs:
update:
runs-on: ubuntu-latest
name: update-milestone
if: ${{github.event.pull_request.merged == true}}steps:
- uses: radcortez/milestone-set-action@main
name: milestone set
with:
github-token: ${{secrets.GITHUB_TOKEN}}
```