From 58f9c9941288f9ca2a287d6f4586ff4ff5cfe082 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 15:06:27 +0200 Subject: [PATCH] Add an automatic PR reminder (#14) --- .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..06a6a3d --- /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/parachain).' + })