This repository was archived by the owner on Oct 27, 2022. It is now read-only.
PR Size, Shared Conditions and Reviews
PR Size, Shared Conditions and Reviews
- Adds section for Shared Conditions
- Adds conditions
changesSize,requestedChanges,isApprovedandpendingReview. - Adds additional logging data
- Adds support for Videndum/manage-github-secrets
Shared Conditions
The new shared conditions section is extremely useful to reduce the clutter within the configuration file. It allows for any of the common conditions. This includes creatorMatches, descriptionMatches, and titleMatches.
To use:
{
"shared": {
"bugfix": {
"requires": 1,
"conditions": [
{
"type": "titleMatches",
"pattern": "^bugfix"
}
]
}
}
}Note: If shared label (bugfix in example) is also found in pr or issue then the shared label conditions are ignored
New Conditions Help
isApproved
Checks if a pull request has requested a review.
Example:
{
"type": "isApproved",
"value": true,
"required": 1
}requestedChanges
Checks if a pull request has requested a review.
Example:
{
"type": "requestedChanges",
"value": true
}pendingReview
Checks if a pull request has requested a review.
Example:
{
"type": "pendingReview",
"value": true
}changesSize
Checks if an pull request's changes against min & max values. Note: if max is undefined assumed value is unlimited
Example:
{
"type": "changesSize",
"min": 0,
"max": 100
}