Remove deprecated repository attributes#39
Conversation
The GitHub API has deprecated the has_downloads attribute for repositories. Remove it from the variable definition, resource configuration, test fixtures, and regenerate docs.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRemoved three repository fields — Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Important Do not edit the Please update the Could you fix it @johncblandii? 🙏 |
There was a problem hiding this comment.
Pull request overview
Removes support for the deprecated has_downloads repository attribute from this Terraform component’s input schema, wiring, and fixtures to align with the GitHub API deprecation.
Changes:
- Dropped
has_downloadsfrom therepositoryinput object type (src/variables.tf). - Removed
has_downloadsfrom the underlying repository module wiring (src/main.tf). - Updated generated READMEs and a test fixture to no longer reference
has_downloads.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/fixtures/stacks/catalog/usecase/basic.yaml | Removes has_downloads from a test fixture stack config. |
| src/variables.tf | Removes has_downloads from the repository variable object type. |
| src/main.tf | Stops passing has_downloads into the cloudposse/repository/github module. |
| src/README.md | Regenerated docs to reflect the updated repository input type. |
| README.md | Regenerated top-level docs to reflect the updated repository input type. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/terratest |
…y_alerts_during_read Both attributes are deprecated in the GitHub Terraform provider. default_branch should use the github_branch_default resource instead, and ignore_vulnerability_alerts_during_read is no longer needed as the provider handles permissions automatically.
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: goruha <[email protected]>
Resolved and merged |
|
@johncblandii I think we should leave |
|
The other deprications are already merged. Pls reopen if you think we need it |
But why leave a deprecated var?
|
what
repositoryvariable:has_downloads,default_branch, andignore_vulnerability_alerts_during_readwhy
has_downloadsis deprecated in the GitHub API and no longer functionaldefault_branchis deprecated in the GitHub provider in favor of thegithub_branch_defaultresourceignore_vulnerability_alerts_during_readis no longer needed as the provider now handles permissions automaticallyreferences
Summary by CodeRabbit
Breaking Changes
Documentation
Chores