forked from shaka-project/shaka-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.23 KB
/
validate-pr-title.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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:
- name: Checkout code
uses: actions/checkout@v2
- uses: "./.github/actions/action-semantic-pull-request-4.6.0"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}