diff --git a/.github/workflows/verify-release-notes.yml b/.github/workflows/verify-release-notes.yml new file mode 100644 index 0000000..51bdb00 --- /dev/null +++ b/.github/workflows/verify-release-notes.yml @@ -0,0 +1,23 @@ +# Copyright (c) Cratis. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +name: Verify Release Notes + +# Installed through a reviewed change: the organization bootstrap ignores this repository. +# Read current labels and description; edited/labeled/unlabeled events refresh the gate. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: [opened, edited, reopened, synchronize, labeled, unlabeled, ready_for_review] + +permissions: + contents: read + pull-requests: read + +jobs: + release-notes: + uses: Cratis/Workflows/.github/workflows/verify-release-notes.yml@main + with: + runs-on: ${{ vars.RUNNER_GATE || 'ubuntu-latest' }} diff --git a/.github/workflows/verify-semver-label.yml b/.github/workflows/verify-semver-label.yml index 755f30b..0700180 100644 --- a/.github/workflows/verify-semver-label.yml +++ b/.github/workflows/verify-semver-label.yml @@ -19,5 +19,17 @@ permissions: contents: read jobs: - verify: + dependabot-labels: + if: github.event.pull_request.user.login == 'dependabot[bot]' + uses: Cratis/Workflows/.github/workflows/normalize-dependabot-labels.yml@main + permissions: + pull-requests: write + + release-intent: + needs: dependabot-labels + # Also after a failed or skipped correction: the gate reports the live labels. + if: ${{ !cancelled() }} uses: Cratis/Workflows/.github/workflows/verify-release-intent.yml@main + permissions: + contents: read + pull-requests: read