Makes sure the repository has a predefined set of labels
Define your action as this .github/workflows/labeler.yml
:
name: labeler
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: 'Apply labels'
uses: aciliainternet/github.action.labeler@0.9.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
labels: |
[
{ "name": "bugfix", "color": "d73a4a", "description": "For fixing a bug" },
{ "name": "feature", "color": "0E8A16", "description": "A new feature" },
{ "name": "READY FOR REVIEW", "color": "000000", "description": "The PR is ready for Peer Review" },
{ "name": "documentation", "color": "0075ca", "description": "Improve documentation" }
]
The action will be executed once a week on mondays.