Skip to content

feat(cli): run plugins as origin <name> - #153

Open
PiquelChips wants to merge 1 commit into
feat/ci-process-groupsfrom
feat/ci-plugins
Open

PiquelChips wants to merge 1 commit into
feat/ci-process-groupsfrom
feat/ci-plugins

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

origin's extensions, CI first, live outside the origin binary, and should run as origin <name>, the way cargo and git run theirs.

origin <name> now replaces itself with origin-<name> from PATH when <name> isn't a built-in, so the plugin's output, exit code and signals are the command's. Run inside a working copy, it records the working copy's draft first and sets ORIGIN_REPOSITORY, ORIGIN_REVISION and ORIGIN_REMOTE, which Context::from_env reads back. Outside one, none of them is set, even if an outer plugin had them.

The end-to-end helpers find origin beside the test binary when another package's tests include them, and put the plugins built with it on PATH. The plugin test compares canonical paths, since macOS's temporary directory is a link.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2e26f373-e01e-47a1-9bce-32723ab9c894
Commits

Reviewing files that changed from the base of the PR and between 7918de6 and 144bb86.

Files selected for processing: 8

  • AGENTS.md
  • README.md
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/lib.rs
  • apps/origin-src/src/plugin.rs
  • apps/origin-src/src/workspace/mod.rs
  • apps/origin-src/tests/cli.rs
  • apps/origin-src/tests/common/mod.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/ci-plugins branch 2 times, most recently from 20eebde to ba70c86 Compare November 22, 2026 18:54
origin's extensions, CI first, live outside the `origin` binary, and
should run as `origin <name>` the way cargo and git run theirs.

Any command that isn't built in now replaces the `origin` process with
`origin-<name>` from `PATH`, so its standard streams, exit code and
signals are the command's. Run in a working copy, origin records its
draft first and passes the plugin `ORIGIN_REPOSITORY`, `ORIGIN_REVISION`
and `ORIGIN_REMOTE`, which `Context::from_env` reads back. Outside one,
none of them is set, even if an outer plugin had them.

The end-to-end helpers now find `origin` beside the test binary when
another package's tests include them, and put the plugins built with it
on `PATH`.
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