Skip to content

Commit

Permalink
ci: add PR check job (0xPolygonZero#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jun 26, 2024
1 parent 4e80f84 commit a3bd131
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 a3bd131

Please sign in to comment.