Skip to content

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Jun 17, 2025

Update new actions to only bug build-ops for PRs against main

This pull request updates the .github/policies/resourceManagement.yml file to refine the conditions for dependency update policies. The changes introduce a new targetsBranch condition to ensure the policies apply specifically to the main branch.

Dependency update policy refinements:

@wtgodbe wtgodbe requested review from joperezr and Copilot June 17, 2025 20:13
@wtgodbe wtgodbe requested a review from a team as a code owner June 17, 2025 20:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refines dependency update policies to ensure that build-ops are only notified for PRs targeting the main branch.

  • Added targetsBranch condition for policies with noActivitySince of 1 day.
  • Added targetsBranch condition for policies with noActivitySince of 3 days.

@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 17, 2025
action: Opened
- isActivitySender:
user: dotnet-maestro[bot]
issueAuthor: False
Copy link
Member

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?

Copy link
Member Author

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).

@@ -709,6 +733,8 @@ configuration:
label: area-infrastructure
- addLabel:
label: 'Type: Dependency Update :arrow_up_small:'
- addLabel:
label: 'build-ops'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see several uses like right above this one for the Type: Dependency Update... labels. Do we still need them or is it okay to just use build-ops label going forward? And if so, can we remove the old labels?

Copy link
Member Author

Choose a reason for hiding this comment

The 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)

Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments but looks good otherwise

@wtgodbe
Copy link
Member Author

wtgodbe commented Jun 17, 2025

/ba-g config-only change

@wtgodbe wtgodbe merged commit 7641b9f into main Jun 17, 2025
7 of 8 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/blopmain branch June 17, 2025 20:48
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview7 milestone Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants