From d095601c11146ed2a85052cceb435f4e389d9a98 Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Thu, 7 Mar 2024 16:11:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Synced=20file(s)=20with=20realm/?= =?UTF-8?q?ci-actions=20(#7876)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔄 Synced local '.github/workflows/issue-labeler.yml' with remote 'synced-files/.github/workflows/issue-labeler.yml' * 🔄 Created local '.github/workflows/check-pr-title.yml' from remote 'synced-files/.github/workflows/check-pr-title.yml' --------- Co-authored-by: realm-ci --- .github/workflows/check-pr-title.yml | 22 ++++++++++++++++++++++ .github/workflows/issue-labeler.yml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-pr-title.yml diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml new file mode 100644 index 0000000000..1842f5bf39 --- /dev/null +++ b/.github/workflows/check-pr-title.yml @@ -0,0 +1,22 @@ +# NOTE: This is a common file that is overwritten by realm/ci-actions sync service +# and should only be modified in that repository. + +name: "Check PR Title" +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited] + +jobs: + check-pr-title: + name: Check PR Title + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: false + - name: Enforce PR title + uses: realm/ci-actions/title-checker@main + with: + regex: R[A-Z]{2,6}-[0-9]{1,6} + error-hint: Invalid PR title. Make sure it's prefixed with the JIRA ticket the PR addresses or add the no-jira-ticket label. + ignore-labels: 'no-jira-ticket' \ No newline at end of file diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml index 5c9af500c0..a93e0c8c02 100644 --- a/.github/workflows/issue-labeler.yml +++ b/.github/workflows/issue-labeler.yml @@ -19,7 +19,7 @@ jobs: template: [ bug.yml, feature.yml ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Parse issue form uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 # v3.0.1