diff --git a/.github/workflows/pull_request_linting.yaml b/.github/workflows/pull_request_linting.yaml index 600a95bde..13119ebce 100644 --- a/.github/workflows/pull_request_linting.yaml +++ b/.github/workflows/pull_request_linting.yaml @@ -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-(?\d+)' - titleFormat: '%title% (%prefix%%id%)' - branchRegex: 'PROJQUAY-(?\d+)' - bodyRegex: 'PROJQUAY-(?\d+)' - bodyURLRegex: 'http(s?):\/\/(issues.redhat.com)(\/browse)\/(PROJQUAY\-)(?\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: '(.*)?'