From 362a2a5dd1a61230b747b207809755bef712f315 Mon Sep 17 00:00:00 2001 From: Shaka Bot <13107131+shaka-bot@users.noreply.github.com> Date: Fri, 25 Feb 2022 10:12:44 -0800 Subject: [PATCH] chore: Sync common workflows (#1037) This is an automated sync of common workflows for this organization. The upstream source is: https://github.com/joeyparrish/shaka-github-tools/commit/9517df8f73122d9d237b9d01b0bf249404504eb5 Co-authored-by: Shaka Bot --- .github/workflows/validate-pr-title.yaml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/validate-pr-title.yaml diff --git a/.github/workflows/validate-pr-title.yaml b/.github/workflows/validate-pr-title.yaml new file mode 100644 index 0000000000..2136465319 --- /dev/null +++ b/.github/workflows/validate-pr-title.yaml @@ -0,0 +1,35 @@ +name: Validate PR Title + +# We recommend that maintainers use this Chrome/Firefox extension so that +# squashed PRs will have the merged commit message default to the PR title and +# description: https://github.com/zachwhaley/squashed-merge-message +# +# This avoids the need to amend commits after the fact to match the desired PR +# syntax. As long as the PR itself is properly-formatted, this extension will +# help you commit the right format to the repo, too. This, in turn, feeds the +# changelog and release workflows. + +on: + # NOTE: The automated PRs from release-please-action do not seem to trigger + # any of the default PR triggers (opened, synchronize, reopened). So we need + # additional types. This is a good set that makes it easy to trigger the + # workflow manually if needed. + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + - assigned + - labeled + - ready_for_review + - review_requested + +jobs: + main: + name: Validate PR Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}