This action will fist try to see if any of the labels you want to add exist in your repository. If it doesn't, it'll try to create it for you with a determinstic color. This will allow you to ensure all your labels with the same name will be consistent across all your repositories.
Then it'll try to add any labels that are not currently present on the issue.
Input Name | Required | Default | Description |
---|---|---|---|
repository |
no | ${{ github.repository }} |
The repository to find issue in |
token |
no | ${{ github.token }} |
The GitHub token to use for calling GitHub's API |
issue-number |
yes | ${{ github.event.issue.number }} |
The issue number |
labels |
yes | n/a | Comma separated list of labels to add to issue/repository. Any label greater than 50 characters will be ignored. |
fail-on-error |
no | false |
Whether or not to fail action if any error occurs |
N/A
- name: Add Labels
uses: benlei/add-labels-deterministically@v1
with:
issue-number: 3
labels: foo, bar, baz