From e8652a8a0a170a71430f199ec0680eb23b919bbf Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 13:02:28 +0200 Subject: [PATCH 1/3] Create pr-reminder.yml --- .github/workflows/pr-reminder.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-reminder.yml diff --git a/.github/workflows/pr-reminder.yml b/.github/workflows/pr-reminder.yml new file mode 100644 index 0000000..83e76e0 --- /dev/null +++ b/.github/workflows/pr-reminder.yml @@ -0,0 +1,22 @@ +name: PR Reminder + +on: + pull_request: + types: + - opened + +jobs: + pr-reminder: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Comment a reminder on a new PR + uses: actions/github-script@v6 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Hello, this is an automatic reminder that any code changes should be made to [the source](https://github.com/paritytech/polkadot-sdk/tree/master/templates/solochain).' + }) From a01a037d042dde973cc4f8e4cd75066dd081a033 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 13:10:17 +0200 Subject: [PATCH 2/3] Update pr-reminder.yml --- .github/workflows/pr-reminder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-reminder.yml b/.github/workflows/pr-reminder.yml index 83e76e0..01b0a76 100644 --- a/.github/workflows/pr-reminder.yml +++ b/.github/workflows/pr-reminder.yml @@ -1,5 +1,8 @@ name: PR Reminder +permissions: + pull-requests: write + on: pull_request: types: From 9b1298bcb7809637dd65d768377e4a1441a587ce Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 13:23:01 +0200 Subject: [PATCH 3/3] Update .github/workflows/pr-reminder.yml --- .github/workflows/pr-reminder.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-reminder.yml b/.github/workflows/pr-reminder.yml index 01b0a76..b4b2681 100644 --- a/.github/workflows/pr-reminder.yml +++ b/.github/workflows/pr-reminder.yml @@ -12,7 +12,6 @@ jobs: pr-reminder: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - name: Comment a reminder on a new PR uses: actions/github-script@v6 with: