diff --git a/.github/workflows/naming.yaml b/.github/workflows/naming.yaml index f0ed2e3..42b15b4 100644 --- a/.github/workflows/naming.yaml +++ b/.github/workflows/naming.yaml @@ -1,28 +1,10 @@ -name: 'Naming' +name: Naming + on: pull_request jobs: - check-branch-name: - name: Branch-Name - runs-on: ubuntu-latest - if: (github.actor != 'dependabot[bot]') - steps: - # Check that branch starts with a ticket number - # e.g. PAY-123-some_branch_name - # master and develop are the only 2 exceptions - # see: https://github.com/marketplace/actions/branch-name-rules - - uses: deepakputhraya/action-branch-name@master - with: - regex: '^[A-Z]+-[0-9]+-.*$' - ignore: master,develop - check-pr-title: - name: PR-Title - runs-on: ubuntu-latest - if: (github.actor != 'dependabot[bot]') - steps: - # Check that PR title starts with a ticket number - # e.g. PAY-123: some commit message - # see: https://github.com/marketplace/actions/check-pull-request-title - - uses: Slashgear/action-check-pr-title@v4.3.0 - with: - regexp: '^[A-Z]+-[0-9]+:.*$' + naming: + name: Reusable + uses: payrails/actions/.github/workflows/reusable-naming.yaml@main + secrets: + jira_token: ${{ secrets.JIRA_TOKEN }}