check-sync-provider
Checks if the downstream provider repository is aligned with the correct Magic Modules base commit.
来源信息
- 仓库
- GoogleCloudPlatform/magic-modules
- 最近来源活动
- 2026年5月14日 21:22
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 975
- Forks
- 2,589
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- check-sync-provider
- description
- Checks if the downstream provider repository is aligned with the correct Magic Modules base commit.
# `check-sync-provider`
Use this skill to verify if the downstream repository is at the correct baseline commit before generating code or running tests.
## Execution Steps
### 1. Identify Magic Modules Base Commit
* Identify the official `GoogleCloudPlatform/magic-modules` remote (usually `upstream`).
* Calculate the target base commit:
* If on `main`: Use current commit (`HEAD`).
* If on a feature branch: Run `git merge-base HEAD <canonical-remote>/main` to find where the branch diverged.
### 2. Find the Matching Downstream Commit
* Search the downstream repository's log for a commit that references this Magic Modules base commit hash in its commit message.
### 3. Compare and Report
* Verify if the `HEAD` of the downstream repository matches that found commit.
* If they match, report **Synced**.
* If they do not match, or the commit cannot be found, report **Out of Sync** and provide the details.
在 GitHub 查看