From ec8efca79c88cb6a8b3765b28dba6dae9ffcfcd3 Mon Sep 17 00:00:00 2001 From: Damian Orzepowski Date: Mon, 12 Aug 2024 13:39:25 +0200 Subject: [PATCH] ci(SPV-992): add sync labels workflow --- .github/labels.yml | 57 +++++++++++++++++++++++++++++++ .github/workflows/sync-labels.yml | 20 +++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/labels.yml create mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..86b9f35 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,57 @@ +- color: "0075ca" + description: "Improvements or additions to documentation" + name: "documentation" +- color: "b23128" + description: "Highest rated bug or issue, affects all" + name: "bug-P1" +- color: "de3d32" + description: "Medium rated bug, affects a few" + name: "bug-P2" +- color: "f44336" + description: "Lowest rated bug, affects nearly none or low-impact" + name: "bug-P3" +- color: "0e8a16" + description: "Any new significant addition" + name: "feature" +- color: "b60205" + description: "Urgent or important fix/patch" + name: "hot-fix" +- color: "cccccc" + description: "Any idea, suggestion or opinion" + name: "idea" +- color: "d4c5f9" + description: "Experimental - can break!" + name: "prototype" +- color: "cc317c" + description: "Any question or concern" + name: "question" +- color: "c2e0c6" + description: "Unit tests, mocking, integration testing" + name: "test" +- color: "fbca04" + description: "Anything GUI related" + name: "ui-ux" +- color: "006b75" + description: "Simple updates or version bumps" + name: "chore" +- color: "006b75" + description: "Dependency updates" + name: "dependencies" +- color: "006b75" + description: "General updates" + name: "update" +- color: "FFA500" + description: "Any significant refactoring" + name: "refactor" +- color: "FEF2C0" + description: "Used for automatic merging" + name: "automerge" +- color: "FBCA04" + description: "Used for denoting a WIP, stops auto-merge" + name: "work-in-progress" +- color: "c2e0c6" + description: "Old, unused, stale" + name: "stale" +- color: "50e061" + description: "PR was tested by a team member" + name: "tested" diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..2f39157 --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,20 @@ +# Workflow: https://github.com/micnncim/action-label-syncer +# Export your labels: https://github.com/micnncim/label-exporter +name: sync-labels +on: + push: + branches: + - master + - main + paths: + - .github/labels.yml +jobs: + sync-labels: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: micnncim/action-label-syncer@v1.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + manifest: .github/labels.yml