Skip to content

Add VS validation requirement for feature branch merges - #84809

Closed
JoeRobich wants to merge 2 commits into
mainfrom
JoeRobich-patch-4
Closed

Add VS validation requirement for feature branch merges#84809
JoeRobich wants to merge 2 commits into
mainfrom
JoeRobich-patch-4

Conversation

@JoeRobich

Copy link
Copy Markdown
Member

Added a new requirement for VS validation insertion for feature branch merges and updated existing event responder tasks.

Added a new requirement for VS validation insertion for feature branch merges and updated existing event responder tasks.
Copilot AI review requested due to automatic review settings August 7, 2026 20:16
@JoeRobich
JoeRobich requested a review from a team as a code owner August 7, 2026 20:16
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the repository’s GitOps policy configuration to introduce a new event responder task intended to enforce a VS validation insertion requirement for pull requests that merge features/* branches into main.

Changes:

  • Added a new eventResponderTasks rule that requests changes on PR open when the source branch matches features/* and the target is main.
  • Updated the existing policy task list structure to include the new rule (but currently with invalid indentation/trailing whitespace that must be corrected).
Show a summary per file
File Description
.github/policies/resourceManagement.yml Adds a new event responder task to block feature-branch-to-main merges unless VS validation insertion requirements are met (needs indentation fix to be valid YAML).

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread .github/policies/resourceManagement.yml Outdated
Comment on lines +47 to +61

- description: Require VS validation insertion for feature branch merges
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- isPullRequest
- targetsBranch:
branch: main
- sourceBranch:
branch: features/*
- isAction:
action: Opened
then:
- requestChangesPullRequest:
comment: Merges from feature branches require a passing VS validation insertion to complete.
Copilot AI review requested due to automatic review settings August 7, 2026 20:18
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

1 file(s) have code issues.

File Issues
.github/policies/resourceManagement.yml While parsing a block mapping, did not find expected key.

Total execution time: 0.01 seconds

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

1 file(s) have code issues.

File Issues
.github/policies/resourceManagement.yml Exception during deserialization. Unknown condition specified.

Total execution time: 0.01 seconds

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

Suppressed comments (1)

.github/policies/resourceManagement.yml:47

  • Line contains whitespace on an otherwise blank separator line. The repo’s style guidance requires blank lines to be completely empty (no spaces/tabs), and whitespace-only lines can cause formatting/lint failures.
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new

@JoeRobich

Copy link
Copy Markdown
Member Author

Cancelling as you can't actually filter on the source branch name.

@JoeRobich JoeRobich closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants