From 1c62506267756c06b4423eaa3543aa00cd2c866a Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 14:01:08 +0200 Subject: [PATCH] Add an automatic PR reminder (#9) --- .github/workflows/pr-reminder.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..b4b2681 --- /dev/null +++ b/.github/workflows/pr-reminder.yml @@ -0,0 +1,24 @@ +name: PR Reminder + +permissions: + pull-requests: write + +on: + pull_request: + types: + - opened + +jobs: + pr-reminder: + runs-on: ubuntu-latest + steps: + - 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).' + })