Skip to content

Commit

Permalink
Merge pull request #33 from 0xPolygonZero/ci-pr-check
Browse files Browse the repository at this point in the history
ci: add PR check job
  • Loading branch information
Nashtare authored Jun 26, 2024
2 parents 72c5fdf + 0814323 commit efac834
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/pr_checking.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit efac834

Please sign in to comment.