Skip to content

feat: accept workspace publish requests - #9339

Merged
BYK merged 5 commits into
mainfrom
feat/workspace-acceptance
Sep 8, 2026
Merged

BYK merged 5 commits into
mainfrom
feat/workspace-acceptance

Conversation

@BYK

@BYK BYK commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Parse and validate workspace-qualified publish request titles.
  • Propagate the selected workspace into Craft and isolate secure publish-resume state by workspace.
  • Restore failed target state only from the workflow-created XDG state file.

Validation

  • pnpm test: 6 files, 25 tests passed.
  • Focused workflow-state regression: 3 files, 18 tests passed.
  • Prettier and changed-file ESLint passed.

Deployment

Deploy this controller before Craft PR #872. It adds the title parser and secure state contract required for workspace-qualified requests.

@BYK
BYK requested a review from a team as a code owner August 26, 2026 14:20
Comment thread src/modules/details-from-context.js Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 52ef600. Configure here.

Comment thread .github/workflows/publish.yml Resolved

@BYK BYK left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was hoping that we could replace all regexp based parsing with peggy at this point.

Comment thread .github/workflows/ci-poller.yml Outdated
owner: getsentry # create token with access to all getsentry repos

- name: Check out publish controller
uses: actions/checkout@v5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
uses: actions/checkout@v5
uses: actions/checkout@v7

Let's go with latest version

Comment thread .github/workflows/publish.yml Outdated
Comment on lines +175 to +179
requires_workspace_discovery="$(node -e '
const { needsWorkspaceDiscovery } = require("./.__publish__/src/modules/publish-location");
const input = JSON.parse(process.env.PUBLISH_ARGS || "");
process.stdout.write(String(needsWorkspaceDiscovery(input)));
')"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why not put this into a file too? Even better, make it a runnable node script to avoid passing JS through YAML and bash?

Comment thread src/modules/publish-issue-title.peggy Resolved
Comment thread src/modules/release-revision.js Outdated
@@ -0,0 +1,29 @@
const CHECK_RUNS_LINK =

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I wonder if this can be part of the peggy parser/language too?

Comment thread src/publish/resolve-location.js Resolved
Comment thread src/publish/resolve-location.js Resolved
@BYK
BYK requested a balanced review from Copilot September 8, 2026 16:33

This comment was marked as resolved.

@BYK
BYK merged commit 7c60ddb into main Sep 8, 2026
14 checks passed
@BYK
BYK deleted the feat/workspace-acceptance branch September 8, 2026 17:37
BYK added a commit to getsentry/craft that referenced this pull request Sep 8, 2026
## Summary

- Accept and validate workspace input before every action side effect.
- Pass the selected workspace through prepare, target discovery, publish
issue identity, and controller execution.
- Preserve legacy unscoped publish issue titles and use controller
checkout identity only for secure state lookup.

## Validation

- pnpm test: 60 files, 1,138 passed, 1 skipped.
- pnpm lint: 0 errors; 7 existing unused-variable warnings.
- Prettier check and build passed.
- Independent adversarial review: MERGE.

## Dependency

Draft until getsentry/publish#9339 deploys. The Publish controller must
accept workspace-qualified titles and provide the secure state-file
contract before this action emits them.
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.

2 participants