diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index 4168a3cdee..0000000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,2 +0,0 @@ -# Always validate the PR title, and ignore the commits -titleOnly: true diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml new file mode 100644 index 0000000000..469b50ef54 --- /dev/null +++ b/.github/workflows/semantic-pull-request.yml @@ -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 \ No newline at end of file