mirror of
https://github.com/cypress-io/cypress.git
synced 2025-12-31 11:39:48 -06:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: "Semantic Pull Request"
|
|
# @see https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
|
permissions:
|
|
actions: none
|
|
checks: none
|
|
# to check out & read the repository
|
|
contents: read
|
|
deployments: none
|
|
id-token: none
|
|
issues: none
|
|
discussions: none
|
|
packages: none
|
|
pages: none
|
|
# to read pull-request data, including commits/issues linked
|
|
pull-requests: read
|
|
repository-projects: none
|
|
security-events: none
|
|
statuses: none
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
branches:
|
|
- develop
|
|
- release/*
|
|
|
|
jobs:
|
|
main:
|
|
name: Semantic Pull Request
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.ref }}
|
|
repository: ${{ github.event.pull_request.base.repo.full_name }}
|
|
- run: npm install
|
|
working-directory: scripts/github-actions/semantic-pull-request/
|
|
- name: Lint PR Title and Cypress Changelog Entry
|
|
if: github.event_name == 'pull_request_target'
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const verifyPullRequest = require('./scripts/github-actions/semantic-pull-request')
|
|
|
|
await verifyPullRequest({ context, core, github })
|