From c2774b9d8f12596809cef638c7d1af762938dcdf Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Wed, 1 Jun 2022 08:41:35 +0100 Subject: [PATCH] Label workflow --- .github/labels-manage.yml | 113 +++++++++++++++++++++++++++++ .github/workflows/label-manage.yml | 23 ++++++ 2 files changed, 136 insertions(+) create mode 100644 .github/labels-manage.yml create mode 100644 .github/workflows/label-manage.yml diff --git a/.github/labels-manage.yml b/.github/labels-manage.yml new file mode 100644 index 00000000..350431af --- /dev/null +++ b/.github/labels-manage.yml @@ -0,0 +1,113 @@ +- name: area/dependencies + color: F9D0C4 + description: Belongs project dependencies +- name: area/documentation + color: F9D0C4 + description: Belongs to documentation +- name: area/security + color: F9D0C4 + description: Belongs to security +- name: area/tests + color: F9D0C4 + description: Belongs to tests + +- name: automation/rlnotes-header + color: EDEDED + description: Belongs to release notes automation +- name: automation/rlnotes-footer + color: EDEDED + description: Belongs to release notes automation + +- name: for/backport + color: E99695 + description: For backporting +- name: for/blocker + color: E99695 + description: For blocking +- name: for/marketing + color: E99695 + description: For marketing +- name: for/spike + color: E99695 + description: For spike +- name: for/team-attention + color: E99695 + description: For team attention + +- name: status/complete + color: FEF2C0 + description: Issue is now complete +- name: status/declined + color: FEF2C0 + description: Issue has been declined +- name: status/duplicate + color: FEF2C0 + description: There were an existing issue +- name: status/in-progress + color: FEF2C0 + description: Something is happening +- name: status/invalid + color: FEF2C0 + description: Mistake, bogus, old, bye bye +- name: status/need-design + color: FEF2C0 + description: Vague so need some proper design +- name: status/need-feedback + color: FEF2C0 + description: Calling participant to provide feedback +- name: status/need-investigation + color: FEF2C0 + description: Oh need to look under a hood +- name: status/need-triage + color: FEF2C0 + description: Team needs to triage and take a first look +- name: status/on-hold + color: FEF2C0 + description: For various reasons is on hold +- name: status/stale + color: FEF2C0 + description: Marked as stale +- name: status/closed-as-stale + color: FEF2C0 + description: Closed as has been stale + +- name: type/automated-pr + color: D4C5F9 + description: Is an automated pr +- name: type/backport + color: D4C5F9 + description: Is a issue to track backport, use with branch/xxx +- name: type/bug + color: D4C5F9 + description: Is a bug report +- name: type/enhancement + color: D4C5F9 + description: Is an enhancement request +- name: type/epic + color: D4C5F9 + description: Collection of issues +- name: type/feature + color: D4C5F9 + description: Is a feature request +- name: type/help-needed + color: D4C5F9 + description: Calling help +- name: type/idea + color: D4C5F9 + description: Is just an idea +- name: type/task + color: D4C5F9 + description: Something needs to get done +- name: type/technical-debt + color: D4C5F9 + description: Techical Dept +- name: type/question + color: D4C5F9 + description: Is a question + +- name: branch/2.1.x + color: BFDADC + description: Issue for a branch +- name: branch/3.0.x + color: BFDADC + description: Issue for a branch diff --git a/.github/workflows/label-manage.yml b/.github/workflows/label-manage.yml new file mode 100644 index 00000000..d83543e6 --- /dev/null +++ b/.github/workflows/label-manage.yml @@ -0,0 +1,23 @@ +name: Labels Manage + +on: + push: + branches: + - 'main' + paths: + - '.github/labels-manage.yml' + - '.github/workflows/label-manage.yml' + workflow_dispatch: + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Mangle Labels + uses: crazy-max/ghaction-github-labeler@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + yaml-file: .github/labels-manage.yml + dry-run: false + skip-delete: true