-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from hidaytrahman/chore-improve-commit
config: pr decorator
- Loading branch information
Showing
2 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
### What ? | ||
#### What? | ||
<!--- in a few lines, what does this PR do? ---> | ||
|
||
<!-- Please describe about the changes --> | ||
#### How to test/validate? | ||
<!--- how can a tester validate this? ---> | ||
|
||
### How to test ? | ||
|
||
<!-- Please add steps to test --> | ||
|
||
### Screenshots (if UI changes) ? | ||
|
||
<!-- Please add screenshots --> | ||
#### Screenshots (if appropriate): | ||
<!--- add some screenshots, if they apply ---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Decorate PRs | ||
on: [pull_request] | ||
concurrency: | ||
group: pr-decorator-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
size: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: add a label to PR signifying size | ||
uses: codelytv/pr-size-labeler@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
xs_max_size: '100' | ||
s_max_size: '300' | ||
m_max_size: '800' | ||
l_max_size: '1200' | ||
fail_if_xl: 'false' | ||
message_if_xl: 'This PR is longer than the suggested (1200 lines). | ||
Please make sure that this PR only addresses one problem. | ||
_Note: Because of its size, this PR might require some time to review._' | ||
pr-stats: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run pull request stats | ||
uses: flowwer-dev/pull-request-stats@master | ||
with: | ||
charts: true | ||
period: 30 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|