Skip to content

Instantly share code, notes, and snippets.

@Anmol-Baranwal
Created September 23, 2022 16:58
Show Gist options
  • Save Anmol-Baranwal/63e35891d2b817767c6a1ed9d00ae6d6 to your computer and use it in GitHub Desktop.
Save Anmol-Baranwal/63e35891d2b817767c6a1ed9d00ae6d6 to your computer and use it in GitHub Desktop.
Workflow to automatically add labels in JSON format in GitHub
on: issues
name: Create Default Labels
jobs:
labels:
name: DefaultLabelsActions
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: lannonbr/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete: true # will delete any labels that aren't in the .github/labels.json (this is set to false by default)
# visit this link to get the information about labels in JSON format => https://gist.github.com/Anmol-Baranwal/d2ed032d4fa2883e84c6b5d5b46853ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment