Skip to content

task: Automate external distribution repo publishing [202605012125-PXYEPC]#736

Merged
densmirnov merged 2 commits intomainfrom
task/202605012125-PXYEPC/external-distribution-publish
May 1, 2026
Merged

task: Automate external distribution repo publishing [202605012125-PXYEPC]#736
densmirnov merged 2 commits intomainfrom
task/202605012125-PXYEPC/external-distribution-publish

Conversation

@densmirnov
Copy link
Copy Markdown
Contributor

Task: 202605012125-PXYEPC
Title: Automate external distribution repo publishing

Summary

Automate external distribution repo publishing

Publish Homebrew, Scoop, and setup-agentplane outputs to their external repositories from the release workflow when credentials are configured.

Scope

  • In scope: Publish Homebrew, Scoop, and setup-agentplane outputs to their external repositories from the release workflow when credentials are configured.
  • Out of scope: unrelated refactors not required for "Automate external distribution repo publishing".

Verification

  • State: ok
  • Note: External distribution publishing automation verified.
  • Full verification checklist lives in local review.md.

Handoff Notes

  • No handoff notes recorded yet. Use agentplane pr note ... to append one.
Raw evidence
  • Updated: 2026-05-01T21:31:57.672Z
  • Branch: task/202605012125-PXYEPC/external-distribution-publish
  • Head: 9b6156d
 .github/workflows/publish.yml                      |  49 ++++
 .../publish-external-distribution-script.test.ts   | 121 ++++++++++
 .../release/publish-workflow-contract.test.ts      |  31 +++
 scripts/publish-external-distribution.mjs          | 251 +++++++++++++++++++++
 4 files changed, 452 insertions(+)

@densmirnov densmirnov merged commit 19d401f into main May 1, 2026
10 checks passed
@densmirnov densmirnov deleted the task/202605012125-PXYEPC/external-distribution-publish branch May 1, 2026 21:34
github-actions Bot added a commit that referenced this pull request May 1, 2026
…,workflow] (#737)

Scope: ci, release, workflow
Verify: External distribution publishing automation verified.
Key files: scripts/publish-external-distribution.mjs, packages/agentplane/src/commands/release/publish-external-distribution-script.test.ts, .github/workflows/publish.yml, packages/agentplane/src/commands/release/publish-workflow-contract.test.ts

Co-authored-by: DEUS <deus@agentplane.org>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ac506a658

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return {
module: String(flags.module ?? "").trim(),
repo: String(flags.repo ?? "").trim(),
sourceDir: path.resolve(repoRoot, String(flags.source ?? "")),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Require raw --source instead of resolved fallback

parseArgs resolves --source with path.resolve(repoRoot, String(flags.source ?? "")), so omitting --source produces a non-empty path (repoRoot) and bypasses the required-argument check in publishExternal. In that case the script can copy from the repository root instead of failing fast, which can publish unintended files to external repos if a caller forgets or drops --source during workflow edits.

Useful? React with 👍 / 👎.

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