From ac217e8a46cafbaaf3d5352895e713671442647f Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Wed, 21 Dec 2022 16:06:42 -0500 Subject: [PATCH] chore: Add meta workflows Signed-off-by: Devin Buhl --- .github/labeler.yaml | 11 +++++ .github/labels.yaml | 55 +++++++++++++++++++++++++ .github/release-drafter.yaml | 47 +++++++++++++++++++++ .github/workflows/meta-labeler.yaml | 19 +++++++++ .github/workflows/meta-sync-labels.yaml | 20 +++++++++ .github/workflows/release-drafter.yaml | 16 +++++++ 6 files changed, 168 insertions(+) create mode 100644 .github/labeler.yaml create mode 100644 .github/labels.yaml create mode 100644 .github/release-drafter.yaml create mode 100644 .github/workflows/meta-labeler.yaml create mode 100644 .github/workflows/meta-sync-labels.yaml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/labeler.yaml b/.github/labeler.yaml new file mode 100644 index 00000000..4ce4fcba --- /dev/null +++ b/.github/labeler.yaml @@ -0,0 +1,11 @@ +--- +area/ansible: + - "ansible/**/*" +area/github: + - ".github/**/*" +area/kubernetes: + - "kubernetes/**/*" +area/terraform: + - "terraform/**/*" +area/templates: + - "tmpl/**/*" diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 00000000..808463f5 --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,55 @@ +--- +# Area +- name: area/ansible + color: "72ccf3" + description: >- + Changes made in the ansible directory +- name: area/github + color: "72ccf3" + description: >- + Changes made in the github directory +- name: area/kubernetes + color: "72ccf3" + description: >- + Changes made in the kubernetes directory +- name: area/template + color: "72ccf3" + description: >- + Changes made in the tmpl directory +- name: area/terraform + color: "72ccf3" + description: >- + Changes made in the terraform directory +# Renovate +- name: renovate/ansible + color: "ffc300" +- name: renovate/container + color: "ffc300" +- name: renovate/github-action + color: "ffc300" +- name: renovate/github-release + color: "ffc300" +- name: renovate/helm + color: "ffc300" +- name: renovate/terraform + color: "ffc300" +# Semantic Type +- name: type/patch + color: "FFEC19" +- name: type/minor + color: "FF9800" +- name: type/major + color: "F6412D" +# Uncategorized +- name: bug + color: "ee0701" +- name: do-not-merge + color: "ee0701" +- name: docs + color: "F4D1B7" +- name: enhancement + color: "84b6eb" +- name: link-checker + color: "7B55D7" +- name: question + color: "cc317c" diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml new file mode 100644 index 00000000..e76e6523 --- /dev/null +++ b/.github/release-drafter.yaml @@ -0,0 +1,47 @@ +name-template: "Release v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +categories: + - title: "Community Contributions" + labels: + - "community" + - title: "Helm Chart(s)" + labels: + - "renovate/helm" + - title: "Github Actions" + labels: + - "renovate/github-action" + - title: "Container(s)" + labels: + - "renovate/container" + - title: "Features" + labels: + - "feature_request" + - "enhancement" + - title: "Bug Fixes" + labels: + - "bug" + - title: "Maintenance" + labels: + - "chore" + - "documentation" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +change-title-escapes: '\<*_&' +exclude-labels: + - "skip-changelog" +version-resolver: + major: + labels: + - "type/major" + minor: + labels: + - "type/minor" + patch: + labels: + - "type/patch" + default: patch +template: | + ## What's Changed + + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION diff --git a/.github/workflows/meta-labeler.yaml b/.github/workflows/meta-labeler.yaml new file mode 100644 index 00000000..c438522a --- /dev/null +++ b/.github/workflows/meta-labeler.yaml @@ -0,0 +1,19 @@ +--- +name: "Meta Labeler" + +on: + workflow_dispatch: + push: + branches: ["main"] + paths: [".github/labeler.yaml"] + +jobs: + labeler: + name: Labeler + runs-on: ubuntu-latest + steps: + - name: Labeler + uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 # renovate: tag=v4.0.2 + with: + configuration-path: .github/labeler.yaml + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/meta-sync-labels.yaml b/.github/workflows/meta-sync-labels.yaml new file mode 100644 index 00000000..db5bac27 --- /dev/null +++ b/.github/workflows/meta-sync-labels.yaml @@ -0,0 +1,20 @@ +--- +name: "Meta Sync labels" + +on: + workflow_dispatch: + push: + branches: ["main"] + paths: [".github/labels.yaml"] + +jobs: + labels: + name: Sync Labels + runs-on: ubuntu-latest + steps: + - name: Sync Labels + uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8 # renovate: tag=v2.3.2 + with: + config-file: .github/labels.yaml + token: "${{ secrets.GITHUB_TOKEN }}" + delete-other-labels: true diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 00000000..d96d7974 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,16 @@ +--- +name: "Draft Release" + +on: + push: + branches: ["main"] + +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@6df64e4ba4842c203c604c1f45246c5863410adb # v5.21.1 + with: + config-name: release-drafter.yaml + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"