Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

PR Size, Shared Conditions and Reviews

Choose a tag to compare

@TGTGamer TGTGamer released this 12 Nov 12:17
· 0 commits to e18812980fd8b1c2cdafdedc3a6c7e460a569e45 since this release
925b5d4

PR Size, Shared Conditions and Reviews

  • Adds section for Shared Conditions
  • Adds conditions changesSize, requestedChanges, isApproved and pendingReview.
  • 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
}