Skip to content

feat(internal/gapicgen): support adding context to regen#3174

Merged
codyoss merged 6 commits intogoogleapis:masterfrom
codyoss:context-aware-commits
Dec 3, 2020
Merged

feat(internal/gapicgen): support adding context to regen#3174
codyoss merged 6 commits intogoogleapis:masterfrom
codyoss:context-aware-commits

Conversation

@codyoss
Copy link
Copy Markdown
Member

@codyoss codyoss commented Nov 9, 2020

Now all regen PRs will include a block that mentions all of the
changes that happened in googleapis/googleapis that caused the
files to be generated. This information will eventually be fed
into our automated releases via release-please. There these changes
will be parsed out to add extra context to our release PRs and
changelogs. No longer will we have to have a vague message about
many auto-generated changes.

  • Adds context to regen PRs.
  • Refactored generators so every method does not need so many
    parameters.
  • Updated goolge/protobuf to its new migrated repo
    protocolbuffers/protobuf.
  • Added some extra logging to the build.
  • Only run protoc on dirs that have changes.

codyoss and others added 2 commits November 9, 2020 13:17
Now all regen PRs will include a block that mentions all of the
changes that happened in googleapis/googleapis that caused the
files to be generated. This information will eventually be fed
into our automated releases via release-please. There these changes
will be parsed out to add extra context to our release PRs and
changelogs. No longer will we have to have a vague message about
many auto-generated changes.

- Adds context to regen PRs.
- Refactored generators so every method does not need so many
  parameters.
- Updated goolge/protobuf to its new migrated repo
  protocolbuffers/protobuf.
- Added some extra logging to the build.
- Only run protoc on dirs that have changes.
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2020
@codyoss codyoss marked this pull request as ready for review November 9, 2020 20:25
@codyoss codyoss requested a review from a team November 9, 2020 20:25
@codyoss
Copy link
Copy Markdown
Member Author

codyoss commented Nov 9, 2020

Here is a sample of what regen PRs look like with these changes: googleapis/go-genproto#486 & #3171. They were generated by building and running the dockerfile, genbot, with local changes mounted in.

Comment thread internal/gapicgen/cmd/genbot/generate.go Outdated
Comment thread internal/gapicgen/cmd/genbot/github.go Outdated
Comment thread internal/gapicgen/generator/generator.go Outdated
Comment thread internal/gapicgen/generator/config.go Outdated
Comment thread internal/gapicgen/generator/config.go Outdated
@codyoss codyoss requested a review from tbpg November 10, 2020 15:48
Comment thread internal/gapicgen/cmd/genbot/github.go Outdated
Comment thread internal/gapicgen/cmd/genbot/github.go Outdated
@codyoss codyoss merged commit 941ab02 into googleapis:master Dec 3, 2020
@codyoss codyoss deleted the context-aware-commits branch December 3, 2020 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants