发布
- 作者仓库星标 2,493
- 作者仓库 hoverfly
Hoverfly Release
Release version: $ARGUMENTS
Current state
- Current version: !
grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*' - Branch: !
git branch --show-current - Working tree clean: !
git status --porcelain | wc -l | xargs
Instructions
Execute the following phases in order. Confirm with the user before moving to each phase. Stop immediately if any step fails.
Phase 1 — Version bump & push
- Validate that
$ARGUMENTSmatches the patternvX.Y.Z(e.g.v1.13.0). If not, stop and ask the user for a valid version. - Verify the working tree is clean (
git status --porcelainis empty) and the current branch ismaster. If not, stop and tell the user. - Run:
make update-version VERSION=$ARGUMENTS - Push:
git push origin master
Tell the user the version commit has been pushed and that a CircleCI build has been triggered (no need to wait for it).
Phase 2 — Create GitHub release
- Create the release with auto-generated notes:
gh release create $ARGUMENTS --generate-notes --target master - Show the user the release URL.
- Tell the user this has triggered the CircleCI
deploy-releasejob, which will build cross-platform binaries and Docker images. This typically takes 20+ minutes.
Phase 3 — Wait for release assets
Poll once per minute until all 7 expected zip bundles appear in the release assets. The expected files are:
hoverfly_bundle_OSX_amd64.ziphoverfly_bundle_OSX_arm64.ziphoverfly_bundle_windows_amd64.ziphoverfly_bundle_windows_386.ziphoverfly_bundle_linux_amd64.ziphoverfly_bundle_linux_386.ziphoverfly_bundle_linux_arm64.zip
To check, run:
gh release view $ARGUMENTS --json assets --jq '.assets[].name'
Each poll iteration:
- Count how many of the 7 expected files are present
- Report progress to the user: "X/7 assets uploaded..."
- Sleep 60 seconds between checks
- After 45 minutes with no completion, warn the user and ask whether to keep waiting
Phase 4 — Trigger Homebrew update
Once all 7 assets are confirmed:
- Trigger the Homebrew formula bump workflow:
gh workflow run homebrew-bump-formula.yml -f version=$ARGUMENTS - Tell the user the workflow has been triggered and they need to manually merge the resulting PR in
SpectoLabs/homebrew-tap.
Done
Summarize what was completed:
- Version bumped to
$ARGUMENTS - GitHub release created with auto-generated notes
- All 7 platform bundles uploaded by CircleCI
- Homebrew formula update triggered
- Remaining manual step: merge the PR in
SpectoLabs/homebrew-tap
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @SpectoLabs · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需手动接入
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Validate that $ARGUMENTS matches the pattern vX.Y.Z (e.g. v1.13.0). If not, stop and ask the user for a valid version. Verify the working tree is clean (git status --porcelain is empty) and the current branch is master. If not, stop and tell the user.
Create the release with auto-generated notes: Show the user the release URL. Tell the user this has triggered the CircleCI deploy-release job, which will build cross-platform binaries and Docker images. This typically takes 20+ minutes.
Poll once per minute until all 7 expected zip bundles appear in the release assets. The expected files are: hoverflybundleOSXamd64.zip hoverflybundleOSXarm64.zip
Once all 7 assets are confirmed: Trigger the Homebrew formula bump workflow: Tell the user the workflow has been triggered and they need to manually merge the resulting PR in SpectoLabs/homebrew-tap.
# Hoverfly Release
Release version: **$ARGUMENTS**
## Current state
- Current version: !`grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*'`
- Branch: !`git branch --show-current`
- Working tree clean: !`git status --porcelain | wc -l | xargs`
## Instructions
Execute the following phases in order. Confirm with the user before moving to each phase. Stop immediately if any step fails.
### Phase 1 — Version bump & push
1. **Validate** that `$ARGUMENTS` matches the pattern `vX.Y.Z` (e.g. `v1.13.0`). If not, stop and ask the user for a valid version.
2. **Verify** the working tree is clean (`git status --porcelain` is empty) and the current branch is `master`. If not, stop and tell the user.
3. Run: `make update-version VERSION=$ARGUMENTS`
4. Push: `git push origin master`
Tell the user the version commit has been pushed and that a CircleCI build has been triggered (no need to wait for it).
### Phase 2 — Create GitHub release
1. Create the release with auto-generated notes:
```
gh release create $ARGUMENTS --generate-notes --target master
```
2. Show the user the release URL.
3. Tell the user this has triggered the CircleCI `deploy-release` job, which will build cross-platform binaries and Docker images. This typically takes 20+ minutes.
### Phase 3 — Wait for release assets
Poll once per minute until **all 7** expected zip bundles appear in the release assets. The expected files are:
- `hoverfly_bundle_OSX_amd64.zip`
- `hoverfly_bundle_OSX_arm64.zip`
- `hoverfly_bundle_windows_amd64.zip`
- `hoverfly_bundle_windows_386.zip`
- `hoverfly_bundle_linux_amd64.zip`
- `hoverfly_bundle_linux_386.zip`
- `hoverfly_bundle_linux_arm64.zip`
To check, run:
```
gh release view $ARGUMENTS --json assets --jq '.assets[].name'
```
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Current state → Instructions → Phase 1 — Version bump & push → Phase 2 — Create GitHub release → Phase 3 — Wait for release assets → Phase 4 — Trigger Homebrew update
要点 -> $ARGUMENTS · Validate · Verify · all 7
文件/命令 -> grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]\.[0-9]\.[0-9]' · git branch --show-current · git status --porcelain | wc -l | xargs · $ARGUMENTS · vX.Y.Z · v1.13.0 · git status --porcelain · master
内容 SHA-256 -> d828881576cf
方法与流程
适用与边界
原文中的明确线索
grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]\.[0-9]\.[0-9]'、git branch --show-current、git status --porcelain | wc -l | xargs、$ARGUMENTS、vX.Y.Z、v1.13.0、git status --porcelain、master