diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 00000000..cf8142e4 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,7 @@ +add-missing-labels: true +clear-prexisting: false +include-commits: true +label-mapping: + bugfix: [ 'fix', 'bug' ] + feature: [ 'feat', 'feature' ] + misc: [ 'chore','performance','refactor','style' ] diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..1743fa10 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,26 @@ +name-template: "v$RESOLVED_VERSION 🚜" +tag-template: "v$RESOLVED_VERSION" +sort-direction: ascending +prerelease-identifier: edge +categories: + - title: "⚠ Breaking changes" + label: "breaking change" + - title: "🚀 Features" + labels: + - "feature" + - title: "🔧 Code enhancements" + labels: + - "enhancement" + - title: "🐛 Bug Fixes" + labels: + - "fix" + - "bugfix" + - "bug" + - title: "🈵 Translations" + label: "translation" + - title: "📄 Documentation" + label: "documentation" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +template: | + $CHANGES diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index ac260e23..3069e5ad 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -8,12 +8,12 @@ on: - 'main' - 'releases/**' tags: - - 'v*.*.*' + - 'v*' pull_request: branches: - 'main' -# Allow to stop obsolete workflows +# Allow stopping obsolete workflows concurrency: group: ci-buildtrain-${{ github.ref }}-1 cancel-in-progress: true diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-prs.yml new file mode 100644 index 00000000..2fe7135d --- /dev/null +++ b/.github/workflows/label-prs.yml @@ -0,0 +1,11 @@ +name: 'Label PR' +on: + pull_request: + +jobs: + label-pr: + runs-on: ubuntu-latest + steps: + - uses: grafana/pr-labeler-action@v0.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..a18e1774 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: read + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v6 + with: + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}