mauroalderete/Verify Labels in Pull Request
It verifies that the pull request has the expected labels
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 2, 2024
- License
- MIT
Pinned Snippet
uses: mauroalderete/action-verify-labels@ba07c8f589bef9b243ba3a522216a4bbc7bdb152 # v1.3.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| all | List of the labels. The pull request must be assigned with all of these labels listed. | no | "" |
| none | List of the labels. The pull request must not be assigned with any of these labels listed. | no | "" |
| some | List of the labels. The pull request must be assigned with one or more of these labels listed. | no | "" |
| just-one | List of the labels. The pull request must be assigned only one of these labels listed. | no | "" |
| request-review | Boolean flag. False by default. Should send a request review to notify whether the pull request passed or not this verification. | no | false |
| request-review-header | A string that is attached to the beginning of the review comment. Supports GitHub Flavored Markdown. | no | "" |
| github-token | The Github token. Only is required if request-review == true. | no | "" |
| pull-request-number | The pull request number to verify. Only is required if this action isn't run on a pull_request event or pull_request_target event. | no | "" |
| emit-error-if-verify-fail | The verification end with an error if the pull request not satisfy the verification. If this is enabled and the process end without any issue, then the approved == 'false', action-status == 'END' and action-message contains a description of the reason for the fail. By default is true. | no | true |
Outputs
| name | description |
|---|---|
| approved | Boolean that indicates if the pull request approved this verification or not. |
| action-status | Execution status of the action |
| action-message | Message associated to the current status of the action |