Skip to content

Commit

Permalink
chore(ci): add self-test procedure (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Namchee authored Dec 21, 2023
1 parent b31518c commit 4246c03
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/cpr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check PR semantics
name: Check pull request semantics

on:
pull_request_target:
Expand All @@ -7,10 +7,8 @@ jobs:
cpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check PR semantics
uses: ./
uses: Namchee/conventional-pr@latest
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
edit: true
verbose: true

17 changes: 17 additions & 0 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Do self test

on:
pull_request:

jobs:
cpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test validation to self
uses: ./
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
edit: true
verbose: true

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cpr:
runs-on: ubuntu-latest
steps:
- name: Validates the pull request
- name: Validate the pull request
uses: Namchee/conventional-pr@v(version)
with:
access_token: YOUR_GITHUB_ACCESS_TOKEN_HERE
Expand Down Expand Up @@ -253,7 +253,7 @@ You can customize this actions with these following options (fill it on `with` s
| `maximum_changes` | `false` | `0` | Limits file changes per one pull request. Fill with zero to disable this feature. |
| `ignored_users` | `false` | `''` | GitHub usernames to be whitelisted from pull request validation. Must be a comma-separated string. Example: `Namchee, foo, bar` will bypass pull request validation for users `Namchee`, `foo`, `bar`. Case-sensitive. |
| `verbose` | `false` | `false` | Post validation report on every pull request validation flow. |
| `edit` | `false` | `false` | Edit existing validation report instead of submitting a new comment. |
| `edit` | `false` | `false` | Edit existing validation report instead of submitting a new comment. Does not do anything if `verbose` is `false`. |

## Supported Events

Expand Down

0 comments on commit 4246c03

Please sign in to comment.