From 627c1b977c84e7f2c4b37cae4e4fa7ccf66eb529 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Mon, 1 Jun 2026 17:48:50 -0400 Subject: [PATCH] Add standards check workflow Adds a few checks to reduce the noise of invalid pull requests. --- .github/workflows/pull-request-standards.yml | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pull-request-standards.yml diff --git a/.github/workflows/pull-request-standards.yml b/.github/workflows/pull-request-standards.yml new file mode 100644 index 0000000000..54f84ecf7a --- /dev/null +++ b/.github/workflows/pull-request-standards.yml @@ -0,0 +1,36 @@ +name: Standards Check +on: + pull_request: + paths: + - '**/CLAUDE.md' + - '**/AGENTS.md' + - 'docs/superpowers/**' + +jobs: + close: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'This PR does not follow our contributing guidelines. https://jellyfin.org/docs/general/contributing/' + }); + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['invalid'] + }); + await github.rest.pulls.update({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.issue.number, + state: 'closed' + }); +