50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
id: labelAdded.internalError_Any
|
|
name: GitOps.PullRequestIssueManagement
|
|
description: Handlers when validation encounters an internal error
|
|
owner:
|
|
resource: repository
|
|
disabled: false
|
|
where:
|
|
configuration:
|
|
resourceManagementConfiguration:
|
|
eventResponderTasks:
|
|
- description: >-
|
|
When the label "Internal-Error-*" is added to a pull request
|
|
* Add a reply notifying the issue author
|
|
* Assign the ICM users
|
|
* Label with Needs-Author-Feedback
|
|
if:
|
|
- payloadType: Pull_Request
|
|
- or:
|
|
- labelAdded:
|
|
label: Internal-Error
|
|
- labelAdded:
|
|
label: Internal-Error-PR
|
|
- labelAdded:
|
|
label: Internal-Error-Manifest
|
|
- labelAdded:
|
|
label: Internal-Error-URL
|
|
- labelAdded:
|
|
label: Internal-Error-Domain
|
|
- labelAdded:
|
|
label: Internal-Error-Keyword-Policy
|
|
- labelAdded:
|
|
label: Internal-Error-Static-Scan
|
|
- labelAdded:
|
|
label: Internal-Error-Dynamic-Scan
|
|
then:
|
|
- addReply:
|
|
reply: >-
|
|
The pull request encountered an internal error and has been assigned to a developer to investigate.
|
|
|
|
|
|
###### Template: msftbot/validationError/internalError
|
|
- addLabel:
|
|
label: Needs-Attention # This will automatically assign the ICM Users
|
|
- addLabel:
|
|
label: Validation-Guide
|
|
# The policy service should trigger even when the label was added by the policy service
|
|
triggerOnOwnActions: true
|
|
onFailure:
|
|
onSuccess:
|