ci: add PR check job (#1604)

This commit is contained in:
Robin Salen 2024-06-26 13:36:22 -04:00 committed by GitHub
parent 4813d563d0
commit 0c21c327df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

22
.github/pr_checking.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: PR check
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
title:
name: Validate PR
runs-on: ubuntu-latest
if: ${{
github.event.pull_request.author_association != 'CONTRIBUTOR' &&
github.event.pull_request.author_association != 'MEMBER' &&
(
contains(fromJSON(secrets.RESTRICTED_KEYWORDS), github.event.pull_request.title) ||
contains(fromJSON(secrets.RESTRICTED_KEYWORDS), github.event.pull_request.description
) }}
steps:
- run: gh pr close