Skip to content

feat(github): adopt the scm repository - #285

Open
UnstoppableMango wants to merge 1 commit into
chore/pulumi-project-scmfrom
feat/adopt-scm-repo
Open

UnstoppableMango wants to merge 1 commit into
chore/pulumi-project-scmfrom
feat/adopt-scm-repo

Conversation

@UnstoppableMango

@UnstoppableMango UnstoppableMango commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Layer 3 of 4.

Imports unmango/github and its main ruleset (github:1269371) as resource scm, with repoName: 'github' and ignoreChanges on settings that differ from PublicRepo defaults. Adds rulesetOptions to PublicRepo, matching repoOptions.

Local preview (against the pre-rename stack): 2 imports, 2 creates (component, vulnerability alerts), 1 state-only update (licenseTemplate), 127 unchanged.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Repository Updates
    • Updated the GitHub repository’s description and topics.
    • Added a required check to the repository’s protection rules.
    • Updated repository management to support customized ruleset options, allowing repository-specific settings to be applied.

@UnstoppableMango
UnstoppableMango added this pull request to stack #287 October 5, 2026 01:23
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c53d1842-bdc9-4ec3-ba44-4db35347fdf9



📥 Commits

Reviewing files that changed from the base of the PR and between a9d913b and 39db3a8.




📒 Files selected for processing (2)
  • github/components/publicRepo.ts
  • github/repos.ts



Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.





📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

PublicRepo now accepts custom options for its main ruleset. github/repos.ts adds the scm resource for the existing github repository and configures its description, topics, and required check.

Changes

Public repository setup

Layer / File(s) Summary
Pass options to the main ruleset
github/components/publicRepo.ts
PublicRepoArgs adds rulesetOptions. PublicRepo passes these options to the main ruleset resource after setting the component as parent.
Configure the imported scm repository
github/repos.ts
The new scm resource imports the existing github repository and ruleset. It ignores changes to selected imported settings and sets the description, topics, and required pulumi check.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature





Merge Risk: ⚪ Minimal · up to 39db3

The reviewed changes show no actionable merge blocker. Confirm the import behavior through the normal Pulumi preview before deployment.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main change: adopting the SCM repository in GitHub configuration.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR




🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR





  • 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

Comment @coderabbitai help to get the list of available commands.

@UnstoppableMango
UnstoppableMango force-pushed the feat/adopt-scm-repo branch 2 times, most recently from 25d585d to a32caf4 Compare October 5, 2026 03:56
@UnstoppableMango
UnstoppableMango marked this pull request as ready for review October 5, 2026 03:58
@UnstoppableMango
UnstoppableMango force-pushed the feat/adopt-scm-repo branch 4 times, most recently from fdf102b to 39db3a8 Compare October 10, 2026 22:48
Import unmango/github and its main ruleset so this repository's
settings are code like every other repo. The resource is named scm and
repoName keeps the current GitHub name until the rename. ignoreChanges
covers the settings that differ from PublicRepo defaults so the import
succeeds.

PublicRepo gains rulesetOptions, matching repoOptions, so an existing
ruleset can be imported.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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