Skip to content

Commit cdc142a

Browse files
authored
🤖 ci: remove push trigger on main to avoid duplicate runs (#105)
## Changes - Remove `push: branches: [main]` from CI and Build workflows - Keep only `merge_group` and `pull_request` triggers - Docs workflow keeps push trigger (has path filters, only deploys) ## Why Currently, workflows run twice for every merge: 1. Once when PR enters merge queue (`merge_group` event) 2. Again after merging to main (`push` event) This change eliminates the redundant post-merge runs, reducing CI costs and execution time. ## Testing After merge, verify that: - ✅ Workflows run on PR creation/updates - ✅ Workflows run when PR enters merge queue - ❌ Workflows do NOT run after merge to main (except Docs when docs change) --- ## Bonus: propose_plan tool improvement Also updated the `propose_plan` tool description to instruct the agent to always provide a recommendation when presenting options to the user. _Generated with `cmux`_
1 parent 5b27f80 commit cdc142a

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build
22

33
on:
4-
push:
5-
branches: ["main"]
64
pull_request:
75
branches: ["**"]
86
merge_group:

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: ["main"]
64
pull_request:
75
branches: ["**"]
86
merge_group:

src/utils/tools/toolDefinitions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export const TOOL_DEFINITIONS = {
143143
"Scale the detail to match the task complexity: for straightforward changes, briefly state what and why; " +
144144
"for complex changes, explain approach, key decisions, risks/tradeoffs; " +
145145
"for uncertain changes, clarify options and what needs user input. " +
146+
"When presenting options, always provide your recommendation for the overall best option for the user. " +
146147
"For highly complex concepts, use mermaid diagrams where they'd clarify better than text. " +
147148
"Cover what's necessary to understand and approve the approach. Omit obvious details or ceremony."
148149
),

0 commit comments

Comments
 (0)