diff --git a/.github/workflows/ticket-check.yml b/.github/workflows/ticket-check.yml new file mode 100644 index 0000000..d8287cf --- /dev/null +++ b/.github/workflows/ticket-check.yml @@ -0,0 +1,19 @@ +name: Ticket Check + +on: + pull_request: + types: ['opened', 'edited', 'reopened', 'synchronize'] + +jobs: + title: + 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://redmine.priv.dchbx.org/issues/%ticketNumber%' + bodyRegex: 'RM-(?\d+)' + bodyURLRegex: 'https?:\/\/redmine\.priv\.dchbx\.org\/issues\/(?\d+)'