Skip to content

Commit

Permalink
Merge pull request #30 from hidaytrahman/chore-improve-commit
Browse files Browse the repository at this point in the history
config: pr decorator
  • Loading branch information
hidaytrahman authored Nov 21, 2023
2 parents dc99749 + 5d26b93 commit 2af9d08
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/pull_request_template.md
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 --->
34 changes: 34 additions & 0 deletions .github/workflows/pr-decorator.yml
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 }}

0 comments on commit 2af9d08

Please sign in to comment.