chore: set up semantic-pull-request GitHub Action (#20091)

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
This commit is contained in:
Zach Bloomquist
2022-02-08 16:03:10 -05:00
committed by GitHub
parent 62d109cee2
commit bc6d240a50
2 changed files with 21 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
# Always validate the PR title, and ignore the commits
titleOnly: true

View File

@@ -0,0 +1,21 @@
name: "Semantic Pull Request"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Lint Title
runs-on: ubuntu-latest
steps:
# use a fork of the GitHub action - we cannot pull in untrusted third party actions
# see https://github.com/cypress-io/cypress/pull/20091#discussion_r801799647
- uses: cypress-io/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true