From 222ae8fffe628789cbc381a4c2cdf81c5b887373 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Tue, 5 Mar 2024 03:27:18 +0100 Subject: [PATCH 1/3] Manually sync check-pr-title workflow --- .github/workflows/check-pr-title.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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..c1e5227418 --- /dev/null +++ b/.github/workflows/check-pr-title.yml @@ -0,0 +1,21 @@ +# 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 Changelog" +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited] + +jobs: + 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@master + with: + regex: R[A-Z]{2,5}-[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 From ee44eee056ef64341f8e910ebe09c19e3c1c9790 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Tue, 5 Mar 2024 03:30:47 +0100 Subject: [PATCH 2/3] Target @main --- .github/workflows/check-pr-title.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index c1e5227418..cac60a5124 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -14,7 +14,7 @@ jobs: with: submodules: false - name: Enforce PR title - uses: realm/ci-actions/title-checker@master + uses: realm/ci-actions/title-checker@main with: regex: R[A-Z]{2,5}-[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. From 601d3054f1f1afb48c6110e118a94ee7c5a6234d Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Tue, 5 Mar 2024 03:34:32 +0100 Subject: [PATCH 3/3] Rename workflow --- .github/workflows/check-pr-title.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index cac60a5124..40c3c3a4dc 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -1,13 +1,14 @@ # 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 Changelog" +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