Fix codegen failing because of bad GitOps.ResourceManagement onboarding
This commit is contained in:
Родитель
da15d0f423
Коммит
77a581fb1b
|
@ -1,252 +1,252 @@
|
|||
id:
|
||||
name: GitOps.PullRequestIssueManagement
|
||||
description: GitOps.PullRequestIssueManagement primitive
|
||||
owner:
|
||||
resource: repository
|
||||
disabled: false
|
||||
where:
|
||||
configuration:
|
||||
resourceManagementConfiguration:
|
||||
scheduledSearches:
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
- noActivitySince:
|
||||
days: 3
|
||||
actions:
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- noActivitySince:
|
||||
days: 4
|
||||
- isNotLabeledWith:
|
||||
label: Status no recent activity
|
||||
actions:
|
||||
- addLabel:
|
||||
label: Status no recent activity
|
||||
- addReply:
|
||||
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: duplicate
|
||||
- noActivitySince:
|
||||
days: 1
|
||||
actions:
|
||||
- addReply:
|
||||
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isPullRequest
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: Needs Author Feedback
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
- noActivitySince:
|
||||
days: 7
|
||||
actions:
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isPullRequest
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- noActivitySince:
|
||||
days: 7
|
||||
- isNotLabeledWith:
|
||||
label: Status no recent activity
|
||||
actions:
|
||||
- addLabel:
|
||||
label: Status no recent activity
|
||||
- addReply:
|
||||
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 **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.
|
||||
eventResponderTasks:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- isAction:
|
||||
action: Opened
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Triage :mag:'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- isAction:
|
||||
action: Created
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- isOpen
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Attention :wave:'
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
then:
|
||||
- inPrLabel:
|
||||
label: 'Status: In PR'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- isAction:
|
||||
action: Opened
|
||||
then:
|
||||
- addCodeFlowLink
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- isAction:
|
||||
action: Submitted
|
||||
- isReviewState:
|
||||
reviewState: Changes_requested
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- hasLabel:
|
||||
label: auto merge
|
||||
then:
|
||||
- enableAutoMerge:
|
||||
mergeMethod: Squash
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- labelRemoved:
|
||||
label: auto merge
|
||||
then:
|
||||
- disableAutoMerge
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- labelAdded:
|
||||
label: 'Needs: Environment Info'
|
||||
then:
|
||||
- addReply:
|
||||
reply: >-
|
||||
This issue lacks the environment info requested in the bug template. Please edit your issue report to add this information.
|
||||
|
||||
|
||||
1. `npx react-native --version`:
|
||||
|
||||
2. `npx react-native run-windows --info`:
|
||||
- addLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- removeLabel:
|
||||
label: 'Needs: Triage :mag:'
|
||||
description:
|
||||
onFailure:
|
||||
onSuccess:
|
||||
id:
|
||||
name: GitOps.PullRequestIssueManagement
|
||||
description: GitOps.PullRequestIssueManagement primitive
|
||||
owner:
|
||||
resource: repository
|
||||
disabled: false
|
||||
where:
|
||||
configuration:
|
||||
resourceManagementConfiguration:
|
||||
scheduledSearches:
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
- noActivitySince:
|
||||
days: 3
|
||||
actions:
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- noActivitySince:
|
||||
days: 4
|
||||
- isNotLabeledWith:
|
||||
label: Status no recent activity
|
||||
actions:
|
||||
- addLabel:
|
||||
label: Status no recent activity
|
||||
- addReply:
|
||||
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isIssue
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: duplicate
|
||||
- noActivitySince:
|
||||
days: 1
|
||||
actions:
|
||||
- addReply:
|
||||
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isPullRequest
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: Needs Author Feedback
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
- noActivitySince:
|
||||
days: 7
|
||||
actions:
|
||||
- closeIssue
|
||||
- description:
|
||||
frequencies:
|
||||
- hourly:
|
||||
hour: 6
|
||||
filters:
|
||||
- isPullRequest
|
||||
- isOpen
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- noActivitySince:
|
||||
days: 7
|
||||
- isNotLabeledWith:
|
||||
label: Status no recent activity
|
||||
actions:
|
||||
- addLabel:
|
||||
label: Status no recent activity
|
||||
- addReply:
|
||||
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 **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.
|
||||
eventResponderTasks:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- isAction:
|
||||
action: Opened
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Triage :mag:'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- isAction:
|
||||
action: Created
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- isOpen
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Attention :wave:'
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
then:
|
||||
- inPrLabel:
|
||||
label: 'Status: In PR'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- isAction:
|
||||
action: Opened
|
||||
then:
|
||||
- addCodeFlowLink
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- isAction:
|
||||
action: Submitted
|
||||
- isReviewState:
|
||||
reviewState: Changes_requested
|
||||
then:
|
||||
- addLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- isActivitySender:
|
||||
issueAuthor: True
|
||||
- hasLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
then:
|
||||
- removeLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- not:
|
||||
isAction:
|
||||
action: Closed
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issue_Comment
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request_Review
|
||||
- hasLabel:
|
||||
label: Status no recent activity
|
||||
then:
|
||||
- removeLabel:
|
||||
label: Status no recent activity
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- hasLabel:
|
||||
label: auto merge
|
||||
then:
|
||||
- enableAutoMerge:
|
||||
mergeMethod: Squash
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Pull_Request
|
||||
- labelRemoved:
|
||||
label: auto merge
|
||||
then:
|
||||
- disableAutoMerge
|
||||
description:
|
||||
- if:
|
||||
- payloadType: Issues
|
||||
- labelAdded:
|
||||
label: 'Needs: Environment Info'
|
||||
then:
|
||||
- addReply:
|
||||
reply: >-
|
||||
This issue lacks the environment info requested in the bug template. Please edit your issue report to add this information.
|
||||
|
||||
|
||||
1. `npx react-native --version`:
|
||||
|
||||
2. `npx react-native run-windows --info`:
|
||||
- addLabel:
|
||||
label: 'Needs: Author Feedback'
|
||||
- removeLabel:
|
||||
label: 'Needs: Triage :mag:'
|
||||
description:
|
||||
onFailure:
|
||||
onSuccess:
|
||||
|
|
|
@ -38,6 +38,6 @@ jobs:
|
|||
- name: verify no changes from CodeGen
|
||||
shell: powershell
|
||||
run: |
|
||||
$changed = git status --porcelain=v1
|
||||
$changed = git status --porcelain=v1 package/
|
||||
$changed
|
||||
if ($changed -ne $null) { throw "CodeGen detected changes" }
|
Загрузка…
Ссылка в новой задаче