39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
id: labelAdded.scriptedApplication
|
|
name: GitOps.PullRequestIssueManagement
|
|
description: Handlers when "Scripted-Application" label is added
|
|
owner:
|
|
resource: repository
|
|
disabled: false
|
|
where:
|
|
configuration:
|
|
resourceManagementConfiguration:
|
|
eventResponderTasks:
|
|
- description: >-
|
|
When the label "Scripted-Application" is added to a pull request
|
|
* Add the PR specific reply notifying the issue author
|
|
* Assign to the Author
|
|
* Label with Blocking-Issue
|
|
* Label with Needs-Author-Feedback
|
|
if:
|
|
- payloadType: Pull_Request
|
|
- labelAdded:
|
|
label: Scripted-Application
|
|
then:
|
|
- addReply:
|
|
reply: >-
|
|
Hello ${issueAuthor},
|
|
|
|
|
|
This application was identified as having a script as either the executable or the installer. The policies of this repository do not allow scripts such as `.bat`, `.ps1`, `.sh`, et cetera. This package cannot be included in this repository until the publisher removes the script or moves to a compiled binary such as an exe, msi, or appx.
|
|
|
|
|
|
###### Template: msftbot/policy/noScripts
|
|
- assignTo:
|
|
author: True
|
|
- addLabel:
|
|
label: Needs-Author-Feedback
|
|
# The policy service should trigger even when the label was added by the policy service
|
|
triggerOnOwnActions: true
|
|
onFailure:
|
|
onSuccess:
|