chore: migrate to self: operator once available #3

Open
opened 2026-03-17 23:16:46 +00:00 by shakefu · 0 comments
shakefu commented 2026-03-17 23:16:46 +00:00 (Migrated from github.com)

Context

We currently use a separate .common-repo-upstream.yaml config file to inherit shared dev tooling from common-repo/cr-upstream-repo because source and consumer operations can't coexist in a single .common-repo.yaml without leaking upstream files to downstream consumers.

When

Once common-repo/common-repo#253 (self: operator) is released.

What to do

  1. Move the consumer operations from .common-repo-upstream.yaml into .common-repo.yaml under a self: block
  2. Delete .common-repo-upstream.yaml
  3. Update .github/workflows/common-repo-check.yaml to remove --config .common-repo-upstream.yaml flags
  4. Verify common-repo apply handles both self and source operations correctly

Target config

- self:
    - repo:
        url: https://github.com/common-repo/cr-upstream-repo
        ref: v1
    - exclude:
        - ".releaserc.yaml"
        - "commitlint.config.cjs"
        - ".github/workflows/release.yaml"
        - ".github/workflows/commitlint.yml"

- include:
    - "src/**"
    - "src/.*"
    - "src/.*/**"
- template:
    - "src/.github/workflows/release.yaml"
- template-vars:
    GH_APP_ID_VAR: CHRISTMAS_ISLAND_APP_ID
    GH_APP_KEY_SECRET: CHRISTMAS_ISLAND_PRIVATE_KEY
    GH_APP_OWNER: christmas-island
- rename:
    - "^src/(.*)$": "$1"
## Context We currently use a separate `.common-repo-upstream.yaml` config file to inherit shared dev tooling from `common-repo/cr-upstream-repo` because source and consumer operations can't coexist in a single `.common-repo.yaml` without leaking upstream files to downstream consumers. ## When Once common-repo/common-repo#253 (`self:` operator) is released. ## What to do 1. Move the consumer operations from `.common-repo-upstream.yaml` into `.common-repo.yaml` under a `self:` block 2. Delete `.common-repo-upstream.yaml` 3. Update `.github/workflows/common-repo-check.yaml` to remove `--config .common-repo-upstream.yaml` flags 4. Verify `common-repo apply` handles both self and source operations correctly ### Target config ```yaml - self: - repo: url: https://github.com/common-repo/cr-upstream-repo ref: v1 - exclude: - ".releaserc.yaml" - "commitlint.config.cjs" - ".github/workflows/release.yaml" - ".github/workflows/commitlint.yml" - include: - "src/**" - "src/.*" - "src/.*/**" - template: - "src/.github/workflows/release.yaml" - template-vars: GH_APP_ID_VAR: CHRISTMAS_ISLAND_APP_ID GH_APP_KEY_SECRET: CHRISTMAS_ISLAND_PRIVATE_KEY GH_APP_OWNER: christmas-island - rename: - "^src/(.*)$": "$1" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: christmas-island/cr-semantic-release#3