From 0b019de45b47da5992601ac826e700a7e58ceca3 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Wed, 13 Apr 2022 14:38:25 +0200 Subject: [PATCH] Added labels to `labels.yml` and automated the implementation of the edits via GH Actions --- .github/ISSUE_TEMPLATE/refactor_request.md | 2 +- .github/labels.yml | 36 ++++++++++++++++++++++ .github/pull_request_template.md | 2 +- .github/workflows/labels.yml | 23 ++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 .github/labels.yml create mode 100644 .github/workflows/labels.yml diff --git a/.github/ISSUE_TEMPLATE/refactor_request.md b/.github/ISSUE_TEMPLATE/refactor_request.md index 503e3f3..9a4d090 100644 --- a/.github/ISSUE_TEMPLATE/refactor_request.md +++ b/.github/ISSUE_TEMPLATE/refactor_request.md @@ -2,7 +2,7 @@ name: ⚙️ Refactor request about: Suggest a refactor for this project title: '[Refactor] ' -labels: 'enhancement' +labels: enhancement, refactor assignees: '' --- diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..0129d00 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,36 @@ +- name: "bug" + color: "d73a4a" + description: "Something isn't working" +- name: "enhancement" + color: "a2eeef" + description: "New feature or request" +- name: "refactor" + color: "B06E16" + description: "Change in the structure" +- name: "documentation" + color: "0075ca" + description: "Improvements or additions to documentation" +- name: "meta" + color: "1D76DB" + description: "Something related to the project itself" + +- name: "duplicate" + color: "cfd3d7" + description: "This issue or pull request already exists" + +- name: "help wanted" + color: "008672" + description: "Extra help is needed" +- name: "urgent" + color: "D93F0B" + description: "" +- name: "wontfix" + color: "ffffff" + description: "This will not be worked on" +- name: "invalid" + color: "e4e669" + description: "This doesn't seem right" + +- name: "question" + color: "d876e3" + description: "Further information is requested" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 7e51286..063a3e0 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -# Pull/Merge Request into master dev + ## Description diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 0000000..2d5bc59 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,23 @@ +name: meta-github + +on: + push: + branches: + - dev + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Run Labeler + if: success() + uses: crazy-max/ghaction-github-labeler@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + yaml-file: .github/labels.yml + skip-delete: false + dry-run: false