Skip to content

Commit

Permalink
ci: add labels sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Oct 12, 2023
1 parent f6da5d0 commit aab1d92
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 0 deletions.
260 changes: 260 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
[
{
"name": "- Admin -",
"color": "FFFFFF",
"description": "Enjoyable to Install and Setup our Software",
"aliases": []
},
{
"name": "- Contributor -",
"color": "FFFFFF",
"description": "Nice to support Torrust",
"aliases": []
},
{
"name": "- Developer -",
"color": "FFFFFF",
"description": "Torrust Improvement Experience",
"aliases": []
},
{
"name": "- User -",
"color": "FFFFFF",
"description": "Enjoyable to Use our Software",
"aliases": []
},
{
"name": "Blocked",
"color": "000000",
"description": "Has Unsatisfied Dependency",
"aliases": []
},
{
"name": "Bug",
"color": "a80506",
"description": "Incorrect Behavior",
"aliases": ["bug"]
},
{
"name": "Build | Project System",
"color": "99AAAA",
"description": "Compiling and Packaging",
"aliases": []
},
{
"name": "Cannot Reproduce",
"color": "D3D3D3",
"description": "Inconsistent Observations",
"aliases": []
},
{
"name": "Code Cleanup / Refactoring",
"color": "055a8b",
"description": "Tidying and Making Neat",
"aliases": ["refactoring", "tidying"]
},
{
"name": "Continuous Integration",
"color": "41c6b3",
"description": "Workflows and Automation",
"aliases": ["workflow"]
},
{
"name": "Dependencies",
"color": "d4f8f6",
"description": "Related to Dependencies",
"aliases": ["dependencies"]
},
{
"name": "Documentation",
"color": "3d2133",
"description": "Improves Instructions, Guides, and Notices",
"aliases": []
},
{
"name": "Duplicate",
"color": "cfd3d7",
"description": "Not Unique",
"aliases": []
},
{
"name": "Easy",
"color": "f0cff0",
"description": "Good for Newcomers",
"aliases": ["good first issue"]
},
{
"name": "Enhancement / Feature Request",
"color": "c9ecbf",
"description": "Something New",
"aliases": ["enhancement"]
},
{
"name": "External Tools",
"color": "a6006b",
"description": "3rd Party Systems",
"aliases": []
},
{
"name": "First Time Contribution",
"color": "f1e0e6",
"description": "Welcome to Torrust",
"aliases": []
},
{
"name": "Fixed",
"color": "8e4c42",
"description": "Not a Concern Anymore",
"aliases": []
},
{
"name": "Hard",
"color": "2c2c2c",
"description": "Non-Trivial",
"aliases": []
},
{
"name": "Help Wanted",
"color": "00896b",
"description": "More Contributions are Appreciated",
"aliases": []
},
{
"name": "High Priority",
"color": "ba3fbc",
"description": "Focus Required",
"aliases": []
},
{
"name": "Hold Merge",
"color": "9aafbe",
"description": "We are not Ready Yet",
"aliases": []
},
{
"name": "Installer | Package",
"color": "ed8b24",
"description": "Distribution to Users",
"aliases": []
},
{
"name": "Invalid",
"color": "c1c1c1",
"description": "This doesn't seem right",
"aliases": []
},
{
"name": "Legal",
"color": "463e60",
"description": "Licenses and other Official Documents",
"aliases": []
},
{
"name": "Low Priority",
"color": "43536b",
"description": "Not our Focus Now",
"aliases": []
},
{
"name": "Needs Feedback",
"color": "d6946c",
"description": "What dose the Community Think?",
"aliases": ["waiting for feedback"]
},
{
"name": "Needs Rebase",
"color": "FBC002",
"description": "Base Branch has Incompatibilities",
"aliases": []
},
{
"name": "Needs Research",
"color": "4bc021",
"description": "We Need to Know More About This",
"aliases": []
},
{
"name": "Optimization",
"color": "faeba8",
"description": "Make it Faster",
"aliases": []
},
{
"name": "Portability",
"color": "95de82",
"description": "Distribution to More Places",
"aliases": []
},
{
"name": "Postponed",
"color": "dadada",
"description": "For Later",
"aliases": []
},
{
"name": "Quality & Assurance",
"color": "eea2e8",
"description": "Relates to QA, Testing, and CI",
"aliases": []
},
{
"name": "Question / Discussion",
"color": "f89d00",
"description": "Community Feedback",
"aliases": ["code question"]
},
{
"name": "Regression",
"color": "d10588",
"description": "It dose not work anymore",
"aliases": []
},
{
"name": "Reviewed",
"color": "f4f4ea",
"description": "This Looks Good",
"aliases": []
},
{
"name": "Rust",
"color": "000000",
"description": "Pull requests that update Rust code",
"aliases": []
},
{
"name": "Security",
"color": "650606",
"description": "Publicly Connected to Security",
"aliases": ["security"]
},
{
"name": "Testing",
"color": "c5def5",
"description": "Checking Torrust",
"aliases": []
},
{
"name": "Translations",
"color": "0c86af",
"description": "Localization and Cultural Adaptions",
"aliases": []
},
{
"name": "Trivial",
"color": "5f9685",
"description": "Something Easy",
"aliases": []
},
{
"name": "Won't Fix",
"color": "070003",
"description": "Something Not Relevant",
"aliases": []
},
{
"name": "Workaround Possible",
"color": "eae3e7",
"description": "You can still do it another way",
"aliases": []
}
]
36 changes: 36 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Labels
on:
workflow_dispatch:
push:
branches:
- develop
paths:
- "/.github/labels.json"

jobs:
export:
name: Export Existing Labels
runs-on: ubuntu-latest

steps:
- id: backup
name: Export to Workflow Artifact
uses: EndBug/export-label-config@v1

sync:
name: Synchronize Labels from Repo
needs: export
runs-on: ubuntu-latest

steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4

- id: sync
name: Apply Labels from File
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.json
delete-other-labels: true
token: ${{ secrets.UPDATE_ISSUES }}

0 comments on commit aab1d92

Please sign in to comment.