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:
Javier Ferrer 2021-03-04 11:55:50 +01:00 committed by Rafa Gómez
parent d56e9ca5fe
commit 4b80a92212
3 changed files with 16 additions and 6 deletions

View file

@ -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

View file

@ -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.

View file

@ -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: