From a2a9e6e2b649b1de3e5ef7a0c4383b21b1130070 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 27 Jul 2022 12:22:03 +0100 Subject: [PATCH] More GHA maintenance (#99) --- .github/FUNDING.yml | 3 ++ .github/release-drafter.yml | 54 ++------------------------- .github/workflows/ack.yml | 10 +++++ .github/workflows/labels.yml | 21 ----------- .github/workflows/release-drafter.yml | 18 --------- 5 files changed, 16 insertions(+), 90 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/ack.yml delete mode 100644 .github/workflows/labels.yml delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..f6abbd3 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: ssbarnea diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ee281fb..11fa614 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,51 +1,3 @@ -# Format and labels used aim to match those used by Ansible project -name-template: '$RESOLVED_VERSION' -tag-template: '$RESOLVED_VERSION' -categories: - - title: 'Major Changes' - labels: - - 'major' # c6476b - - title: 'Minor Changes' - labels: - - 'feature' # 006b75 - - 'enhancement' # ededed - - 'refactoring' - - title: 'Bugfixes' - labels: - - 'bug' # fbca04 - - title: 'Deprecations' - labels: - - 'deprecated' # fef2c0 -exclude-labels: - - 'skip-changelog' -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - - 'feature' - - 'enhancement' - - 'refactoring' - patch: - labels: - - 'patch' - - 'bug' - - 'deprecated' - default: patch -autolabeler: - - label: 'skip-changelog' - title: '/chore/i' - - label: 'bug' - title: '/fix/i' - - label: 'enhancement' - title: '/(enhance|improve)/i' - - label: 'feature' - title: '/feature/i' - - label: 'dreprecated' - title: '/deprecat/i' -template: | - $CHANGES - - Kudos goes to: $CONTRIBUTORS +--- +# see https://github.com/ansible/devtools +_extends: ansible/devtools diff --git a/.github/workflows/ack.yml b/.github/workflows/ack.yml new file mode 100644 index 0000000..58690bd --- /dev/null +++ b/.github/workflows/ack.yml @@ -0,0 +1,10 @@ +--- +# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml +name: ack +on: + pull_request_target: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + ack: + uses: ansible-community/devtools/.github/workflows/ack.yml@main diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml deleted file mode 100644 index 8fd70c2..0000000 --- a/.github/workflows/labels.yml +++ /dev/null @@ -1,21 +0,0 @@ -# See https://github.com/jesusvasquez333/verify-pr-label-action -name: labels -on: - pull_request_target: - types: [opened, labeled, unlabeled, synchronize] - -jobs: - check_pr_labels: - runs-on: ubuntu-latest - name: verify - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Verify PR label action - uses: jesusvasquez333/verify-pr-label-action@v1.4.0 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - valid-labels: 'bug, enhancement, feature, refactoring, major, deprecated, skip-changelog' - invalid-labels: 'help wanted, invalid, feedback-needed, incomplete' - pull-request-number: '${{ github.event.pull_request.number }}' - disable-reviews: true diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index a40633f..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: release-drafter - -on: - push: - # branches to consider in the event; optional, defaults to all - branches: - - main - - 'releases/**' - - 'stable/**' - -jobs: - update_release_draft: - runs-on: ubuntu-20.04 - steps: - # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}