From cfbf6318f7830f633649a3c785291de941ce3e36 Mon Sep 17 00:00:00 2001 From: saimekala07 Date: Thu, 18 Apr 2024 15:26:53 -0400 Subject: [PATCH] adding new action --- .github/workflows/ticket-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ticket-check.yml 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+)'