mirror of
https://github.com/CodelyTV/pr-size-labeler.git
synced 2025-02-18 19:12:50 -05:00
More explicit and self-explanatory message_if_xl
default parameter value
- New value based on what an AWS team suggest: https://github.com/awslabs/fhir-works-on-aws-authz-rbac/pull/24
This commit is contained in:
parent
d56e9ca5fe
commit
4b80a92212
3 changed files with 16 additions and 6 deletions
5
.github/workflows/labeler.yml
vendored
5
.github/workflows/labeler.yml
vendored
|
@ -16,5 +16,8 @@ jobs:
|
|||
m_max_size: '200'
|
||||
l_max_size: '450'
|
||||
fail_if_xl: 'true'
|
||||
message_if_xl: 'This PR is sooooo big!! 😳'
|
||||
message_if_xl: >
|
||||
'This PR exceeds the recommended size of 1000 lines.
|
||||
Please make sure you are NOT addressing multiple issues with one PR.
|
||||
Note this PR might be rejected due to its size.’
|
||||
github_api_url: 'api.github.com' # It would be ideal to test this out pointing to a GitHub Enterprise server, but there are no testing environments available
|
||||
|
|
|
@ -40,7 +40,11 @@ jobs:
|
|||
m_max_size: '500'
|
||||
l_max_size: '1000'
|
||||
fail_if_xl: 'false'
|
||||
message_if_xl: 'This PR is so big! Please, split it 😊'
|
||||
message_if_xl: >
|
||||
'This PR exceeds the recommended size of 1000 lines.
|
||||
Please make sure you are NOT addressing multiple issues with one PR.
|
||||
Note this PR might be rejected due to its size.’
|
||||
github_api_url: 'api.github.com'
|
||||
```
|
||||
|
||||
> If you want, you can customize all `*_max_size` with the size that fits in your project.
|
||||
|
|
11
action.yml
11
action.yml
|
@ -21,15 +21,18 @@ inputs:
|
|||
required: false
|
||||
default: '1000'
|
||||
fail_if_xl:
|
||||
description: 'Fail if the PR is of xl size'
|
||||
description: 'Report GitHub Workflow failure if the PR size is xl allowing to forbid PR merge'
|
||||
required: false
|
||||
default: 'false'
|
||||
message_if_xl:
|
||||
description: 'Message to show if the PR is xl size'
|
||||
description: 'Message to show if the PR size is xl'
|
||||
required: false
|
||||
default: ''
|
||||
default: >
|
||||
'This PR exceeds the recommended size of 1000 lines.
|
||||
Please make sure you are NOT addressing multiple issues with one PR.
|
||||
Note this PR might be rejected due to its size.’
|
||||
github_api_url:
|
||||
description: 'URI to the API of your Github Server, necessary for Github Enterprise customers'
|
||||
description: 'URI to the API of your Github Server, only necessary for Github Enterprise customers'
|
||||
required: false
|
||||
default: 'api.github.com'
|
||||
runs:
|
||||
|
|
Loading…
Add table
Reference in a new issue