winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

labelManagement.issueUpdated.yml (3278B)


      1 id: labelManagement.issueUpdated
      2 name: GitOps.PullRequestIssueManagement
      3 description: >-
      4   Handlers for when an issue is updated and not closed
      5   This primarily includes handlers for comments, reviews, and re-runs
      6 owner:
      7 resource: repository
      8 disabled: false
      9 where:
     10 configuration:
     11   resourceManagementConfiguration:
     12     eventResponderTasks:
     13       - description: Remove "No-Recent-Activity" when a pull request or issue is updated
     14         if:
     15           - or:
     16               - payloadType: Pull_Request
     17               - payloadType: Pull_Request_Review
     18               - payloadType: Pull_Request_Review_Comment
     19               - payloadType: Issue_Comment
     20               - payloadType: Issues
     21           - not:
     22               isAction:
     23                 action: Closed
     24           - hasLabel:
     25               label: No-Recent-Activity
     26         then:
     27           - removeLabel:
     28               label: No-Recent-Activity
     29         # The policy service should not trigger itself here, or else the label would be removed immediately after being added
     30         triggerOnOwnActions: False
     31       - description: Clean email replies on every comment
     32         if:
     33           - payloadType: Issue_Comment
     34         then:
     35           - cleanEmailReply
     36       - description: Remove "Help-Wanted" label when an issue goes into PR
     37         if:
     38           - payloadType: Issues
     39           - labelAdded:
     40               label: In-PR
     41           - hasLabel:
     42               label: Help-Wanted
     43         then:
     44           - removeLabel:
     45               label: Help-Wanted
     46       - description: >-
     47           If an author responds to an issue which needs author feedback
     48           * Remove the Needs-Author-Feedback Label
     49           * Add the Needs-Attention Label
     50         if:
     51           - or:
     52               - payloadType: Pull_Request_Review
     53               - payloadType: Pull_Request_Review_Comment
     54               - payloadType: Issue_Comment
     55           - isActivitySender:
     56               issueAuthor: True
     57           - hasLabel:
     58               label: Needs-Author-Feedback
     59           - not:
     60               isAction:
     61                 action: Synchronize
     62         then:
     63           - removeLabel:
     64               label: Needs-Author-Feedback
     65           - addLabel:
     66               label: Needs-Attention
     67       - description: >-
     68           When changes are requested on a pull request
     69           * Disable automerge
     70           * Assign to the author
     71           * Label with Needs-Author-Feedback
     72         if:
     73           - payloadType: Pull_Request_Review
     74           - isAction:
     75               action: Submitted
     76           - isReviewState:
     77               reviewState: Changes_requested
     78         then:
     79           - disableAutoMerge
     80           - assignTo:
     81               author: True
     82           - addLabel:
     83               label: Needs-Author-Feedback
     84       - description: Sync labels from issues on all pull request events
     85         if:
     86           - payloadType: Pull_Request
     87         then:
     88           - labelSync:
     89               pattern: Issue-
     90           - labelSync:
     91               pattern: Area-
     92           - labelSync:
     93               pattern: Priority-
     94           - labelSync:
     95               pattern: Product-
     96           - labelSync:
     97               pattern: Severity-
     98           - labelSync:
     99               pattern: Impact-
    100           - inPrLabel:
    101               label: In-PR
    102 onFailure:
    103 onSuccess: