Commit Graph

5 Commits

Author SHA1 Message Date
5607a33976 fix: remove incorrect excludes and inherit all upstream-owned files
The upstream repo's src/ defines what gets distributed — all of those
files should be inherited. Override template vars for christmas-island
credentials.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 16:46:03 -07:00
ee44a7bfbe feat: inherit shared dev tooling from cr-upstream-repo
Add consumer config (.common-repo-upstream.yaml) to sync pre-commit
hooks and CI workflow from common-repo/cr-upstream-repo. Uses a
separate config file as a workaround until common-repo supports the
`self:` operator (common-repo/common-repo#253).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 16:16:08 -07:00
jakeclaw-ai[bot]
9c4c15d722 feat: restore template vars for GitHub App customization (#1)
* feat: restore template vars for GitHub App customization

All upstream blockers resolved:
- common-repo/common-repo#235: source-declared template-vars passthrough (0.28.0)
- common-repo/common-repo#239: ${{ }} GHA expression collision fix (0.28.3)
- common-repo/common-repo#249: consumer override cache key fix (0.28.4)

Requires common-repo >= 0.28.4.

CI sync check skips release.yaml since src/ uses template vars
while top-level uses hardcoded christmas-island defaults.

Consumers can override GH App credentials:
```yaml
- repo:
    url: https://github.com/christmas-island/cr-semantic-release
    ref: v2.0.0
    with:
      - template-vars:
          GH_APP_ID_VAR: MY_APP_ID
          GH_APP_KEY_SECRET: MY_APP_KEY
          GH_APP_OWNER: my-org
```

* docs: document template-vars consumer overrides for GitHub App

Update README:
- Bump minimum common-repo version to 0.28.4
- Add 'Using a different GitHub App' section with override example
- Note release.yaml sync exception in repo structure

* fix: correct wagoid/commitlint-github-action pinned SHA for v6

The previous SHA b948419...cb3d was invalid (404 on GitHub API).
Updated to the actual v6 tag commit: b948419...f3ed.

* fix: rename commitlint.config.js to .cjs for ESM compatibility

wagoid/commitlint-github-action v6.2.1 runs with "type": "module"
in package.json, causing .js files to be treated as ESM. The
module.exports syntax requires CommonJS, so rename to .cjs.

---------

Co-authored-by: Jacob Alheid <shakefu@gmail.com>
2026-03-15 04:23:09 -07:00
aa94b0a057 refactor: move distributed files to src/, add sync check CI
- Distributed files now live in src/ — consumers use `path: src/`
- Top-level files are identical copies (repo eats its own dog food)
- CI sync-check job validates top-level and src/ stay in sync
- Removed .common-repo.yaml (path: scoping replaces source excludes)
- Updated README with new structure and usage
2026-03-15 01:26:38 -07:00
170f4c7b5f feat: initial common-repo source template for semantic releases
Includes:
- .releaserc.yaml (conventionalcommits preset, changelog, git, github, major-tag)
- commitlint.config.js (@commitlint/config-conventional)
- .github/workflows/commitlint.yml (PR commit linting via wagoid/commitlint-github-action)
- .github/workflows/release.yaml (semantic-release on push to main, GitHub App token auth)
- .common-repo.yaml (source-level excludes for README, LICENSE, self-config)
2026-03-15 01:21:31 -07:00