Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
PRManagement.yml227 linesDownload Raw Back to policies
1id: PRManagement2name: GitOps.PullRequestIssueManagement3description: Collection of PR bot triaging behaviors4owner:5resource: repository6disabled: false7where:8configuration:9  resourceManagementConfiguration:10    scheduledSearches:11    - description: If Stale label and waiting on author and no activity since 10 days then close the PR12      frequencies:13      - hourly:14          hour: 1215      filters:16      - isPullRequest17      - isOpen18      - hasLabel:19          label: Waiting on Author20      - hasLabel:21          label: Stale22      - noActivitySince:23          days: 1024      actions:25      - closeIssue26 27    - description: If PR has Waiting on Author label and no activity in 15 days label as stale.28      frequencies:29      - hourly:30          hour: 331      filters:32      - isPullRequest33      - isOpen34      - hasLabel:35          label: Waiting on Author36      - noActivitySince:37          days: 1538      - isNotLabeledWith:39          label: Stale40      actions:41      - addLabel:42          label: Stale43      - addReply:44          reply: This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **15 days**. It will be closed if no further activity occurs **within 10 days of this comment**.45    46    - description: Label Review - Needed if PR is opened an no activity in 7 days but no other labels on it47      frequencies:48      - hourly:49          hour: 1250      filters:51      - isPullRequest52      - isOpen53      - isNotLabeledWith:54          label: Waiting on Author55      - noActivitySince:56          days: 757      - isNotLabeledWith:58          label: Stale59      - isNotLabeledWith:60          label: Review - Needed61      - isNotLabeledWith:62          label: Review - Committee63      - isNotDraftPullRequest64      actions:65      - addLabel:66          label: Review - Needed67      - addReply:68          reply: >-69            This pull request has been automatically marked as Review Needed because it has been there has not been any activity for **7 days**.70 71            Maintainer, please provide feedback and/or mark it as `Waiting on Author`72    73    - description: Add waiting on Author label if is draft PR, if no activity label74      frequencies:75      - hourly:76          hour: 1277      filters:78      - isOpen79      - isDraftPullRequest80      - isNotLabeledWith:81          label: Review - Committee82      - isNotLabeledWith:83          label: Waiting on Author84      - isNotLabeledWith:85          label: Stale86      - noActivitySince:87          days: 388      actions:89      - addLabel:90          label: Waiting on Author91    eventResponderTasks:92    93    - description: If PR has AutoMerge Label then enable Automerge to squash94      if:95      - payloadType: Pull_Request96      - hasLabel:97          label: AutoMerge98      then:99      - enableAutoMerge:100          mergeMethod: Squash101    102    - description: If PR has label AutoMerge Removed then disable Automerge103      if:104      - payloadType: Pull_Request105      - labelRemoved:106          label: AutoMerge107      then:108      - disableAutoMerge109    110    - description: If PR review requests changes then add label waiting on Author and remove review needed111      if: 112      - payloadType: Pull_Request_Review113      - isAction:114          action: Submitted115      - isReviewState:116          reviewState: Changes_requested117      then:118      - addLabel:119          label: Waiting on Author120      - removeLabel:121          label: Review - Needed122    123    - description: Remove Waiting on author if has label and activity from author124      if:125      - payloadType: Pull_Request126      - isActivitySender:127          issueAuthor: True128      - not:129          isAction:130            action: Closed131      - hasLabel:132          label: Waiting on Author133      - not:134          titleContains:135            pattern: "(WIP|Work in progress|\U0001F6A7)"136            isRegex: True137      then:138      - removeLabel:139          label: Waiting on Author140    141    - description: remove waiting on author if review by author and has waiting on author142      if:143      - payloadType: Pull_Request_Review144      - isActivitySender:145          issueAuthor: True146      - hasLabel:147          label: Waiting on Author148      then:149      - removeLabel:150          label: Waiting on Author151    152    - description: Remove Stale label if PR has activity from author which is not closure153      if:154      - payloadType: Pull_Request155      - not:156          isAction:157            action: Closed158      - hasLabel:159          label: Stale160      - isActivitySender:161          issueAuthor: True162      then:163      - removeLabel:164          label: Stale165    166    - description: Remove Stale label if PR is reviewed167      if:168      - payloadType: Pull_Request_Review169      - hasLabel:170          label: Stale171      then:172      - removeLabel:173          label: Stale174    175    - description: Remove Review Needed if PR is created or done any action by Admins and iSazonov176      if:177      - payloadType: Pull_Request178      - hasLabel:179          label: Review - Needed180      - or:181        - isAction:182            action: Null183        - isAction:184            action: Closed185        - isAction:186            action: Reopened187        - isAction:188            action: Assigned189        - isAction:190            action: Unassigned191        - isAction:192            action: Unlabeled193      - or:194        - activitySenderHasPermission:195            permission: Admin196        - isActivitySender:197            user: iSazonov198            issueAuthor: False199      then:200      - removeLabel:201          label: Review - Needed202    203    - description: Remove Review - Needed if issue comment is by admin or iSazonov204      if:205      - payloadType: Issue_Comment206      - hasLabel:207          label: Review - Needed208      - or:209        - activitySenderHasPermission:210            permission: Admin211        - isActivitySender:212            user: iSazonov213            issueAuthor: False214      then:215      - removeLabel:216          label: Review - Needed217    218    - description: If inPRLabel then label in PR219      if:220      - payloadType: Pull_Request221      then:222      - inPrLabel:223          label: In-PR224    225onFailure:226onSuccess:227