Skip to content

release: resolve repository delivery configuration - #5

Open
fqjony wants to merge 1 commit into
mainfrom
release/v0.1.3
Open

release: resolve repository delivery configuration#5
fqjony wants to merge 1 commit into
mainfrom
release/v0.1.3

Conversation

@fqjony

@fqjony fqjony commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Problem

rabbit.ci 0.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

  • prepare @udx/rabbit-repo 0.1.3
  • generate repoResolution with branch rules, environments, and workflows
  • resolve environment branch policy, approvals, wait timers, admin bypass, and secret/variable names without values
  • keep workflows to paths, triggers, and workflow-level permissions
  • replace the old repository-contract documentation and fixture

Validation

  • make test
  • npm pack --dry-run --json

Copilot AI review requested due to automatic review settings August 5, 2026 18:49

Copilot AI 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.

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/v1 with 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 thread README.md
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.
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