From 218980f53a833a81e75828d4c5a7660158687b66 Mon Sep 17 00:00:00 2001 From: Sammy Hori Date: Sun, 5 Apr 2026 00:52:52 +0100 Subject: [PATCH] Make the invalid PR check more explicitly specific This also uses a new, more specific invalid PR label (invalid: README.md edited) --- .github/workflows/invalid.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/invalid.yml b/.github/workflows/invalid.yml index 92250e7..0ff082b 100644 --- a/.github/workflows/invalid.yml +++ b/.github/workflows/invalid.yml @@ -1,4 +1,4 @@ -name: Check on Invalid PR +name: Check README.md edit - invalid PR check on: pull_request_target: @@ -20,14 +20,14 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'This PR is not valid. Please read [contributing guidelines](https://github.com/MunGell/awesome-for-beginners/blob/main/CONTRIBUTING.md).' + body: 'This PR is not valid (README.md file should not be manually edited). Please read [contributing guidelines](https://github.com/MunGell/awesome-for-beginners/blob/main/CONTRIBUTING.md).' }); - if (context.payload.pull_request.labels.indexOf('Invalid') === -1) { + if (context.payload.pull_request.labels.indexOf('invalid: README.md edited') === -1) { await github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - labels: ['Invalid'] + labels: ['invalid: README.md edited'] }); } await github.rest.pulls.update({