fix(ci): trigger Coding CI on main branch instead of stale master#149
Merged
Conversation
工蜂(TGit)侧的默认分支已从 master 改为 main(master 已删除),但 .coding-ci.yaml 的 trigger.branches.include 和 mr.branches.include 仍写死为 master,导致 push main / MR 到 main 均不再触发 validate (lint+test)/build/e2e 检查。 Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 3, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The TGit (git.woa.com) mirror's default branch was renamed from
mastertomain(masterwas deleted), but.coding-ci.yamlstill hardcodesmasterin two places:Since the rename, pushes and MRs targeting
mainon TGit no longer trigger the validate/build/e2e pipeline. Tag-triggered publish (e.g. the v0.17.0 release) is unaffected since it matches an independenttags.includepattern.This file has no effect on GitHub CI (which uses
.github/workflows/), but it's kept in sync via the periodic TGit↔GitHub sync process, so fixing it here prevents it from being reverted back tomasternext time TGit syncs frommain.Change
Replace
masterwithmainintrigger.branches.includeandmr.branches.include.Made with Cursor