release: resolve repository delivery configuration - #5
Open
fqjony wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates rabbit.ci from generating a minimal “contract” to generating a committed repository resolution (kind: repoResolution) that captures GitHub delivery shape details (branch rules, environments, workflows) and aligns docs/tests/fixtures with the new schema.
Changes:
- Update the CLI to generate/validate
rabbit.ci/repo-resolution/v1with branches/environments/workflows, and emit the same resolution for--json. - Refresh fixtures and integration tests to assert branch rules, environment secret names, and workflow triggers.
- Replace/rename documentation from “contract” to “resolution” and add a new
docs/repo-resolution.md.
Reviewed changes
Copilot reviewed 10 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
bin/rabbit.ci |
Implements repoResolution generation/validation, GitHub discovery for branches/rules/environments, and workflow parsing. |
tests/suite.sh |
Updates integration assertions for the new YAML/JSON resolution shape. |
tests/fixtures/bin/gh |
Expands mock GitHub API responses for branches, rules, environments, secrets, and variables. |
tests/fixtures/basic/.github/workflows/ci.yml |
Adds a workflow fixture to validate trigger/permissions extraction. |
README.md |
Updates repo description and usage language to “resolution” and new semantics. |
AGENTS.md |
Updates contributor guidance terminology and pointers to new docs. |
docs/repository-discovery.md |
Updates discovery semantics and downstream consumption language for resolution. |
docs/repo-resolution.md |
Adds new resolution format/extension rules documentation. |
docs/repo-contract.md |
Removes obsolete contract documentation. |
docs/dev-kit-migration.md |
Updates terminology and boundary text to “resolution”. |
package.json |
Bumps version to 0.1.3 and updates description/keywords. |
package-lock.json |
Updates lockfile version fields for 0.1.3. |
.rabbit/repo.yaml |
Updates committed generated artifact to repoResolution with branches/environments/workflows. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+41
to
+43
| `--json` returns the same resolution as `.rabbit/repo.yaml`. GitHub discovery | ||
| is read-only. Secret and variable values are never written; only their names | ||
| are included. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
rabbit.ci0.1.2 still generated the old identity-only.rabbit/repo.yaml. It omitted branch rules, environment configuration, secret/variable names, and workflow triggers; its JSON mixed the resolution with prose-only report fields.Change
@udx/rabbit-repo0.1.3repoResolutionwith branch rules, environments, and workflowsValidation
make testnpm pack --dry-run --json