Skip to content

Commit

Permalink
chore: copy pull_request_linting workflow from quay/quay
Browse files Browse the repository at this point in the history
  • Loading branch information
dmage committed Sep 21, 2023
1 parent dc071ee commit 4e93210
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/pull_request_linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,16 @@ on:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
ticket-check:
name: ticket check
runs-on: ubuntu-latest
steps:
- name: Check for ticket
uses: neofinancial/ticket-check-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ticketLink: 'https://issues.redhat.com/browse/PROJQUAY-%ticketNumber%'
ticketPrefix: 'PROJQUAY-'
titleRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
titleFormat: '%title% (%prefix%%id%)'
branchRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
bodyRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
bodyURLRegex: 'http(s?):\/\/(issues.redhat.com)(\/browse)\/(PROJQUAY\-)(?<ticketNumber>\d+)'
exemptUsers: 'dependabot'

conventional-commit:
runs-on: ubuntu-latest
name: conventional commit check
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: check conventional commit
id: check-for-cc
uses: agenthunt/conventional-commit-checker-action@v1.0.0
uses: agenthunt/conventional-commit-checker-action@v2.0.0
with:
pr-title-regex: '^(?:\[[^\]]+\] )?(?:[a-z]+(?:\([^)]+\))?: .+ \(PROJQUAY-[0-9]+\)|(?:chore|build\(deps\)|build\(deps-dev\)): .+)$'
pr-body-regex: '(.*)?'

0 comments on commit 4e93210

Please sign in to comment.