Add common scripts to get original PR's information in other bot-sdk repositories #74
+88
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the bot-sdk repositories automatically create PRs based on updates to line-openapi.
The titles and descriptions of these automatically generated PRs are sometimes filled in by maintainers, but not always. I realized that when creating a PR in the SDK repositories, we can obtain information such as the title and description by retrieving the PR information from line-openapi.
I have implemented and tested a proof of concept for this. Since it seems practical, this change adds scripts to line-openapi. While we could write the same script in each SDK repository, placing it in line-openapi makes maintenance easier. Since line-openapi is registered as a submodule in the bot-sdk repositories, we can call the same script.
In each SDK repository, we need to write a GitHub workflow like the following:
As a result, we may automate PR title and description like this in each bot-sdk repository: