Skip to content

ci: mirror pull requests to GitCode (test) - #1436

Closed
liuzidi wants to merge 4 commits into
hw-native-sys:testfrom
liuzidi:codex/gitcode-pr-mirror
Closed

ci: mirror pull requests to GitCode (test)#1436
liuzidi wants to merge 4 commits into
hw-native-sys:testfrom
liuzidi:codex/gitcode-pr-mirror

Conversation

@liuzidi

@liuzidi liuzidi commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • test the personal GitHub Fork → GitCode Fork mirror workflow on test
  • keep main unchanged
  • use each contributor's own GitCode Fork, token, SSH key, and commit identity
  • resolve the matching upstream PR from the personal GitHub Fork push branch

Test setup

The workflow defaults to GITHUB_UPSTREAM_BRANCH=test while this PR is being validated. Set the repository variable to main only after the test is accepted.

See docs/gitcode-pr-mirror.md for per-Fork setup.

liuzidi added 4 commits September 1, 2026 19:30
Keep the GitCode mirror for hw-native-sys/PTOAS synchronized from GitHub PR updates.
Run the mirror from each contributor fork with personal GitCode credentials.
@liuzidi

liuzidi commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

测试范围

本 PR 只合入 test 分支,不修改 main

当前 workflow 默认读取:

GITHUB_UPSTREAM_BRANCH=test

验证通过后,管理员可在仓库 Variables 中设置:

GITHUB_UPSTREAM_BRANCH=main

然后再将同一 workflow 合入 main,进入正式使用。

个人 Fork 模式下,每位同事应将 workflow 放在自己的 GitHub Fork 默认分支,并在该 Fork 配置自己的 GitCode Fork、Token、SSH Key 和 commit email。

@liuzidi liuzidi closed this Sep 2, 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.

1 participant