-
Notifications
You must be signed in to change notification settings - Fork 547
feat(github): Add github_repository_branches table
#10044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(github): Add github_repository_branches table
#10044
Conversation
This PR has the following changes to source plugin(s) tables:
|
github_repository_branches table
|
Hi @patriknordlen! Thanks for the PR! Kindly, ensure the following:
|
Thanks for the review! I've addressed the format issues highlighted by |
|
Hi @patriknordlen thanks for the PR and @candiduslynx for the review. FYI However since the change was to an internal struct that we serialize to JSON as a key value map, and the values seem to be the same, this seems non breaking for us. |
I see! The reason for bumping to v49 in this PR was that it addressed a breaking change in Github's API endpoint for fetching branch protections. google/go-github#2612 |
Nice! Thanks for the context, makes sense. I'm glad it all worked out (worst case we'd be making a major bump of the plugin, but it's not necessary here) |
🤖 I have created a release *beep* *boop* --- ## [5.1.0](plugins-source-github-v5.0.1...plugins-source-github-v5.1.0) (2023-04-25) ### This Release has the Following Changes to Tables - Table `github_repository_branches` was added ### Features * **github:** Add `github_repository_branches` table ([#10044](#10044)) ([c5eade6](c5eade6)) * **github:** Upgrade to `github.com/cloudquery/plugin-sdk/v2` ([#10052](#10052)) ([44744e8](44744e8)), closes [#10026](#10026) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.0 ([#10135](#10135)) ([cf33b89](cf33b89)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.2 ([#10143](#10143)) ([8f887e0](8f887e0)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.0 ([#10163](#10163)) ([9a7f214](9a7f214)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.1 ([#10175](#10175)) ([5b53423](5b53423)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.3 ([#10187](#10187)) ([b185248](b185248)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.4 ([#10196](#10196)) ([c6d2f59](c6d2f59)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.5 ([#10200](#10200)) ([5a33693](5a33693)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.6 ([#10208](#10208)) ([91c80a7](91c80a7)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.8 ([#10213](#10213)) ([f358666](f358666)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.4.0 ([#10278](#10278)) ([a0a713e](a0a713e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
This PR addresses #10020 by adding the table
github_repository_branchescontaining information retrieved from the/repos/{owner}/{repo}/branchesand/repos/{owner}/{repo}/branches/{branch}/protectionendpoints for each repository and branch.make lintto ensure the proposed changes follow the coding style 🚨 (install golangci-lint here)make testto ensure the proposed changes pass the tests 🧪make gento ensure docs are up to date 📝