Skip to content

chore: add agent rule to base new branches on upstream/main#3849

Merged
rickeylev merged 6 commits into
bazel-contrib:mainfrom
rickeylev:auto-set-upstream-main
Jun 26, 2026
Merged

chore: add agent rule to base new branches on upstream/main#3849
rickeylev merged 6 commits into
bazel-contrib:mainfrom
rickeylev:auto-set-upstream-main

Conversation

@rickeylev

@rickeylev rickeylev commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Add a workspace-specific agent rule to ensure that new conversations/sessions and branches are always based on the latest upstream code to avoid using outdated code states.

This comes about after having several sessions go haywire at the start because they
didn't see the latest changes.

Add a workspace-specific agent rule to ensure that new conversations/sessions and branches are always based on the latest upstream code to avoid using outdated code states.
@rickeylev rickeylev requested a review from aignas as a code owner June 26, 2026 04:40

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new workspace rules file (.agents/rules/workspace.md) to guide agents on setting up their local branches. The feedback highlights a potential issue with setting the upstream tracking branch directly to upstream/main in a fork-and-PR workflow, suggesting the use of --no-track to prevent push permission failures.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread .agents/rules/workspace.md Outdated
Add a workspace-specific agent rule and a helper script to ensure new conversations/sessions and branches are based on the latest upstream code and track it safely.
Rename the upstream tracking helper script to setup_triangle_branch.sh to better reflect the triangular Git workflow, and update the workspace rules accordingly.
Rename the upstream tracking helper script to create_triangle_branch.sh to better align with branch creation terminology, and update the workspace rules.
Rename the upstream tracking helper script back to setup_triangle_branch.sh to align with preferred naming, and update the workspace rules.
@rickeylev rickeylev requested a review from dougthor42 June 26, 2026 05:01
@rickeylev rickeylev enabled auto-merge June 26, 2026 05:12
@rickeylev rickeylev added this pull request to the merge queue Jun 26, 2026
Merged via the queue into bazel-contrib:main with commit ee53e46 Jun 26, 2026
5 checks passed
@rickeylev rickeylev deleted the auto-set-upstream-main branch June 26, 2026 07:59
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