Skip to content

Conversation

@deiga
Copy link
Collaborator

@deiga deiga commented Jan 21, 2026

Implements #2996 #3070 for github_repository_file


Before the change?

After the change?

  • github_repository_file uses Context-aware provider functions
  • Importer is extracted to it's own function
  • Added top-level Description field
  • Refactored to use tflog instead of log
  • Extracted a createBranch function to reduce duplication
  • Update validation logic to remove some conditional code

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga deiga added r/repository_file Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR labels Jan 21, 2026
@deiga deiga added this to the v6.11.0 Release milestone Jan 25, 2026
deiga added 8 commits January 29, 2026 22:37
…easier debugging

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@deiga deiga force-pushed the refactor-repository_file-to-be-context-aware branch from a79ec1c to 60c547a Compare January 29, 2026 20:38
Copy link
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @deiga this looks good. Just a couple of minor nits.

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@deiga deiga requested a review from stevehipwell January 30, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r/repository_file Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants