Skip to content

Instantly share code, notes, and snippets.

@Anmol-Baranwal
Last active October 20, 2022 18:18
Show Gist options
  • Save Anmol-Baranwal/d2ed032d4fa2883e84c6b5d5b46853ea to your computer and use it in GitHub Desktop.
Save Anmol-Baranwal/d2ed032d4fa2883e84c6b5d5b46853ea to your computer and use it in GitHub Desktop.
JSON Data for Labels in GitHub with name, color, description with the workflow
on: issues
name: Create Default Labels
jobs:
labels:
name: DefaultLabelsActions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1.0.0
- uses: lannonbr/issue-label-manager-action@3.0.0
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
[
{
"name": "awaiting reply",
"color": "1C2833",
"description": "Issues or pull requests awaiting reply from an individual before it may be addressed"
},
{
"name": "changes requested",
"color": "B7BF99",
"description": "Use this label when you want to request any changes"
},
{
"name": "contributions welcome",
"color": "FBCA04",
"description": "Contributions are welcome"
},
{
"name": "feedback",
"color": "0E8A16",
"description": "Include this label if you want to give feedback"
},
{
"name": "help wanted",
"color": "008672",
"description": "Issues we would like help from the community to resolve"
},
{
"name": "suggestion",
"color": "012626",
"description": "Include this label if you want to suggest anything"
},
{
"name": "incomplete",
"color": "383416",
"description": "Issue or pull request where the required information is either incomplete or missing altogether"
},
{
"name": "in discussion",
"color": "0C7D74",
"description": "There is an ongoing discussion that should be finished before we can continue"
},
{
"name": "hacktoberfest",
"color": "392A23",
"description": "Indicates issues and PRs related to Hacktoberfest"
}
{
"name": "hacktoberfest-accepted",
"color": "A3CCAB",
"description": "Indicates to Hacktoberfest that a PR has been accepted by a maintainer"
}
{
"name": "good first issue",
"color": "7057ff",
"description": "Issues we believe are simple and a good first stab at contributing to the project"
}
]
@Anmol-Baranwal
Copy link
Author

Include this file in the .github directory
Visit This Gist for the workflow to add these above labels to the Repository =>

https://gist.github.com/Anmol-Baranwal/63e35891d2b817767c6a1ed9d00ae6d6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment