-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Only ping build-ops for main #62381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only ping build-ops for main #62381
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ configuration: | |
- isPullRequest | ||
- isOpen | ||
- hasLabel: | ||
label: 'Type: Dependency Update :arrow_up_small:' | ||
label: 'build-ops' | ||
- noActivitySince: | ||
days: 1 | ||
actions: | ||
|
@@ -201,7 +201,7 @@ configuration: | |
- isPullRequest | ||
- isOpen | ||
- hasLabel: | ||
label: 'Type: Dependency Update :arrow_up_small:' | ||
label: 'build-ops' | ||
- noActivitySince: | ||
days: 3 | ||
actions: | ||
|
@@ -286,6 +286,26 @@ configuration: | |
- approvePullRequest: | ||
comment: Auto-approving dependency update. | ||
description: '[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests' | ||
- if: | ||
- payloadType: Pull_Request | ||
- isAction: | ||
action: Opened | ||
- isActivitySender: | ||
user: dotnet-maestro[bot] | ||
issueAuthor: False | ||
- targetsBranch: | ||
branch: main | ||
- or: | ||
- titleContains: | ||
pattern: Update dependencies | ||
isRegex: False | ||
- titleContains: | ||
pattern: Source code updates | ||
isRegex: False | ||
then: | ||
- addLabel: | ||
label: 'build-ops' | ||
description: '[Infrastructure PRs] Add build-ops label to dependency update Pull Requests against main' | ||
- if: | ||
- payloadType: Pull_Request | ||
- isAction: | ||
|
@@ -303,6 +323,8 @@ configuration: | |
label: area-infrastructure | ||
- addLabel: | ||
label: 'Type: Merge Forward :fast_forward:' | ||
- addLabel: | ||
label: 'build-ops' | ||
- approvePullRequest: | ||
comment: Auto-approving branch merge. | ||
description: '[Infrastructure PRs] Add area-infrastructure label to auto-merge Pull Requests' | ||
|
@@ -534,16 +556,16 @@ configuration: | |
- isAction: | ||
action: Opened | ||
- targetsBranch: | ||
branch: release/2.1 | ||
branch: release/2.3 | ||
then: | ||
- addMilestone: | ||
milestone: 2.1.x | ||
milestone: 2.3.x | ||
- addReply: | ||
reply: >- | ||
Hi @${issueAuthor}. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the [servicing process](https://aka.ms/aspnet/servicing) document. | ||
|
||
Otherwise, please add `tell-mode` label. | ||
description: Add release/2.1 targeting PRs to the servicing project | ||
description: Add release/2.3 targeting PRs to the servicing project | ||
- if: | ||
- payloadType: Pull_Request | ||
- labelAdded: | ||
|
@@ -690,6 +712,8 @@ configuration: | |
label: area-infrastructure | ||
- addLabel: | ||
label: 'Type: Dependency Update :arrow_up_small:' | ||
- addLabel: | ||
label: 'build-ops' | ||
- approvePullRequest: | ||
comment: Auto-approving SDK update. | ||
- enableAutoMerge: | ||
|
@@ -709,6 +733,8 @@ configuration: | |
label: area-infrastructure | ||
- addLabel: | ||
label: 'Type: Dependency Update :arrow_up_small:' | ||
- addLabel: | ||
label: 'build-ops' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still see several uses like right above this one for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like having the different types of labels to differentiate between the different types of automated PRs. Also the split isn't uniform (e.g. build-ops looks at a set of auto-merge & dependency PRs, but they don't look at all auto-merge & dependency PRs - they don't look at servicing) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fair enough, just wanted to check in case they weren't needed any longer. |
||
- approvePullRequest: | ||
comment: Auto-approving dependabot update. | ||
- enableAutoMerge: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, what does issueAuthor mean in this case? wouldn't dotnet-maestro be the author of the PR if this is an opened action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs aren't super clear, but my understanding is that you use that when you want to trigger on an action taken by the author of the issue/PR, rather than on one specific user (see line 389).