Skip to content

[MAINT] Modernize github_repository resource#3310

Open
deiga wants to merge 15 commits intointegrations:mainfrom
F-Secure-web:refactor-github-repository
Open

[MAINT] Modernize github_repository resource#3310
deiga wants to merge 15 commits intointegrations:mainfrom
F-Secure-web:refactor-github-repository

Conversation

@deiga
Copy link
Copy Markdown
Collaborator

@deiga deiga commented Mar 28, 2026

Resolves #2604
Resolves #2264
Addresses many parts of #3133


Before the change?

  • Tests used legacy testing checks
  • Tests weren't being run in parallel
  • Resource was still using log
  • There was an deprecated gate against archived in the Read func
  • Create would call Update and Update would call Read which is an anti-pattern

After the change?

  • Ensure that each CRUD function is fully self-contained
  • Tests use modern ConfigStateChecks
  • Tests can run in parallel, which reduces time to run tests immensely
  • Logging has been refactored to use tflog
  • After verification the "if not archived" gate in Read could be removed

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

deiga added 5 commits March 27, 2026 22:37
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
All these fields are being returned by the API even for archived repos

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>
@github-actions
Copy link
Copy Markdown

👋 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 requested a review from stevehipwell March 28, 2026 18:41
@deiga deiga marked this pull request as draft March 28, 2026 19:02
deiga added 10 commits March 28, 2026 21:25
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>
`RequiredWith` doesn't work with `Default` values

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 marked this pull request as ready for review March 30, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant