winget-cli

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

scheduledSearch.closeNoRecentActivity.yml (1919B)


      1 id: scheduledSearch.closeNoRecentActivity
      2 name: GitOps.PullRequestIssueManagement
      3 description: Closes issues that are inactive
      4 owner:
      5 resource: repository
      6 disabled: false
      7 where:
      8 configuration:
      9   resourceManagementConfiguration:
     10     scheduledSearches:
     11       - description: >-
     12           Search for PR where -
     13           * Pull Request is Open
     14           * Pull request has the label No-Recent-Activity
     15           * Pull request has the label Needs-Author-Feedback
     16           * Pull request does not have the label Blocking-Issue
     17           * Has not had activity in the last 7 days
     18 
     19           Then -
     20           * Close the PR
     21         frequencies:
     22           - hourly:
     23               hour: 6
     24         filters:
     25           - isPullRequest
     26           - isOpen
     27           - hasLabel:
     28               label: No-Recent-Activity
     29           - hasLabel:
     30               label: Needs-Author-Feedback
     31           - isNotLabeledWith:
     32               label: Blocking-Issue
     33           - noActivitySince:
     34               days: 7
     35         actions:
     36           - closeIssue
     37       - description: >-
     38           Search for Issues where -
     39           * Issue is Open
     40           * Issue has the label No-Recent-Activity
     41           * Issue has the label Needs-Author-Feedback
     42           * Issue does not have the label Blocking-Issue
     43           * Issue does not have the label Issue-Feature
     44           * Has not had activity in the last 7 days
     45 
     46           Then -
     47           * Close the Issue
     48         frequencies:
     49           - hourly:
     50               hour: 6
     51         filters:
     52           - isIssue
     53           - isOpen
     54           - hasLabel:
     55               label: No-Recent-Activity
     56           - hasLabel:
     57               label: Needs-Author-Feedback
     58           - isNotLabeledWith:
     59               label: Blocking-Issue
     60           - isNotLabeledWith:
     61               label: Issue-Feature
     62           - noActivitySince:
     63               days: 7
     64         actions:
     65           - closeIssue
     66 onFailure:
     67 onSuccess: