From e2b8e3ff9d52547f1d73f996ddd49034f85fd687 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 9 Jul 2021 19:49:08 +0000 Subject: [PATCH] ci(config): apply CI actions configs (#4) Apply configurations from cryostatio/cryostat#550, cryostatio/cryostat#553 --- .github/release-drafter.yml | 46 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 23 ++++++++++++++ .github/workflows/semantic-pr.yml | 17 ++++++++++ 3 files changed, 86 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..3d80228 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,46 @@ +categories: + - title: 'Features' + label: 'feat' + - title: 'Fixes' + label: 'fix' + - title: 'Documentation' + label: 'docs' + - title: 'Maintenance' + labels: + - 'chore' + - 'ci' + - 'cleanup' + - 'perf' + - 'refactor' + - 'style' + - 'test' + +autolabeler: + - label: 'feat' + title: '/^feat:/' + - label: 'fix' + title: '/^fix:/' + - label: 'docs' + title: '/^docs:/' + + - label: 'chore' + title: '/^chore:/' + - label: 'ci' + title: '/^ci:/' + - label: 'cleanup' + title: '/^cleanup:/' + - label: 'perf' + title: '/^perf:/' + - label: 'refactor' + title: '/^refactor:/' + - label: 'style' + title: '/^style:/' + - label: 'test' + title: '/^test:/' + +template: | + ## Contributors + $CONTRIBUTORS + ## What's Changed + $CHANGES + diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..5abf152 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: + - opened + - reopened + - synchronize + +jobs: + update_release_draft: + runs-on: ubuntu-latest + 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 }} diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 0000000..c5c8a5d --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -0,0 +1,17 @@ +name: semantic-pull-request + +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v3.4.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}