Skip to content

feat!: support multiple GitHub repositories with array-based configuration#6

Merged
rpidanny merged 2 commits intomainfrom
support-repo-arrays
Oct 2, 2025
Merged

feat!: support multiple GitHub repositories with array-based configuration#6
rpidanny merged 2 commits intomainfrom
support-repo-arrays

Conversation

@rpidanny
Copy link
Owner

@rpidanny rpidanny commented Oct 2, 2025

Summary

This PR enhances the module to support multiple GitHub repositories through an array-based configuration, replacing the single repository approach.

Changes

  • Breaking Change: Replace github_repo (string) with github_repos (list of strings)
  • IAM Policy Enhancement: Update IAM role policy to generate individual statements for each repository using Terraform's for expression
  • Fallback Support: Add automatic fallback to allow all organization repositories when github_repos is empty
  • Documentation: Simplify and clarify documentation with updated examples and variable descriptions
  • Example Update: Update dog_food example to use new github_repos parameter

Migration

Users need to update their configuration from:

github_repo = "my-repo"

To:

github_repos = ["my-repo"]

Backward Compatibility

While this is a breaking change in terms of variable names, the functionality is enhanced:

  • Single repo: github_repos = ["repo1"]
  • Multiple repos: github_repos = ["repo1", "repo2", "repo3"]
  • All repos: omit github_repos parameter (same as before)

…tion

- Replace github_repo (string) with github_repos (list) for multiple repository support
- Update IAM role policy to generate statements for each repository using for expression
- Add fallback to allow all organization repos when github_repos is empty
- Update documentation with simplified examples and clearer variable descriptions
- Update example configuration to use new github_repos parameter
@rpidanny rpidanny changed the title feat: support multiple GitHub repositories with array-based configuration feat!: support multiple GitHub repositories with array-based configuration Oct 2, 2025
@rpidanny rpidanny merged commit deaa548 into main Oct 2, 2025
1 check passed
@rpidanny rpidanny deleted the support-repo-arrays branch October 2, 2025 15:03
github-actions bot pushed a commit that referenced this pull request Oct 2, 2025
## [2.0.0](v1.0.1...v2.0.0) (2025-10-02)

### ⚠ BREAKING CHANGES

* support multiple GitHub repositories with array-based configuration (#6)

### Features

* support multiple GitHub repositories with array-based configuration ([#6](#6)) ([deaa548](deaa548))

### Bug Fixes

* missing terraform ([69d87ca](69d87ca))
* remove unnecessary npm cache ([#7](#7)) ([cd85a06](cd85a06))
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