From 34b5e91b5ddbea1abedef4df0354f4ea6fc173b2 Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 11 Dec 2022 17:26:14 +0100 Subject: [PATCH] Add GH release helpers --- .github/labels.yml | 66 +++++++++++++++++++++++++++ .github/release-drafter.yml | 31 +++++++++++++ .github/workflows/labeler.yml | 18 ++++++++ .github/workflows/release-drafter.yml | 15 ++++++ 4 files changed, 130 insertions(+) create mode 100644 .github/labels.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 000000000..263c4d3f2 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,66 @@ +--- +# Labels names are important as they are used by Release Drafter to decide +# regarding where to record them in changelog or if to skip them. +# +# The repository labels will be automatically configured using this file and +# the GitHub Action https://github.com/marketplace/actions/github-labeler. +- name: breaking + description: Breaking Changes + color: "bfd4f2" +- name: bug + description: Something isn't working + color: "d73a4a" +- name: build + description: Build System and Dependencies + color: "bfdadc" +- name: ci + description: Continuous Integration + color: "4a97d6" +- name: dependencies + description: Pull requests that update a dependency file + color: "0366d6" +- name: documentation + description: Improvements or additions to documentation + color: "0075ca" +- name: duplicate + description: This issue or pull request already exists + color: "cfd3d7" +- name: enhancement + description: New feature or request + color: "a2eeef" +- name: github_actions + description: Pull requests that update Github_actions code + color: "000000" +- name: good first issue + description: Good for newcomers + color: "7057ff" +- name: help wanted + description: Extra attention is needed + color: "008672" +- name: invalid + description: This doesn't seem right + color: "e4e669" +- name: performance + description: Performance + color: "016175" +- name: python + description: Pull requests that update Python code + color: "2b67c6" +- name: question + description: Further information is requested + color: "d876e3" +- name: refactoring + description: Refactoring + color: "ef67c4" +- name: removal + description: Removals and Deprecations + color: "9ae7ea" +- name: style + description: Style + color: "c120e5" +- name: testing + description: Testing + color: "b1fc6f" +- name: wontfix + description: This will not be worked on + color: "ffffff" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..0fa65d396 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,31 @@ +categories: + - title: ":boom: Breaking Changes" + label: "breaking" + - title: ":rocket: Features" + label: "enhancement" + - title: ":fire: Removals and Deprecations" + label: "removal" + - title: ":beetle: Fixes" + label: "bug" + - title: ":raising_hand: Help wanted" + label: "help wanted" + - title: ":racehorse: Performance" + label: "performance" + - title: ":rotating_light: Testing" + label: "testing" + - title: ":construction_worker: Continuous Integration" + label: "ci" + - title: ":books: Documentation" + label: "documentation" + - title: ":hammer: Refactoring" + label: "refactoring" + - title: ":lipstick: Style" + label: "style" + - title: ":package: Dependencies" + labels: + - "dependencies" + - "build" +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..ae157d924 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: Labeler + +on: + push: + branches: + - main + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Run Labeler + uses: crazy-max/ghaction-github-labeler@v4 + with: + skip-delete: true diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..b73d9d4f2 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,15 @@ +--- +name: Release Drafter + +"on": + push: + branches: + - main + +jobs: + draft_release: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}