You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When tagpr generates a PullRequest for a release, is it possible to get the following information from the shell specified in the commnad?
Next version number
Current version number
The reason for wanting to get the version number is that, apart from CHANGELOG, we want to automatically output the changes in the OpenAPI specification between release versions
I performed the following verification in the shell of tagpr.command, but could not get the version information.
Checked for version information in environment variables.
I guessed the version information from the information in event.json( $GITHUB_EVENT_PATH )
I used the gh command to get the latest version.
I could check the version of latest, but the next version has to be calculated, but I can't determine if it is major, minor, or patch
Extract from the version listed in CHANGELOG.md
The tagpr.command cannot identify this version because the execution is done before the CHANGELOG.md is updated.
If we can get the version in tagpr.command, we can update multiple versions of the following Issue. #152
The text was updated successfully, but these errors were encountered:
I have read the tagpr source and feel that it is not possible to get the version information from the shell specified in the commnad.
This is a suggestion for improvement, but which of the following suggestions would be preferable?
Set environment variables so that version information can be referenced when commnad is executed.
The timing when commnad is executed should be after the updated CHANGELOG.md is committed.
Add post-command separately from existing commnad, considering the impact on existing commnad.
Personally, I would recommend the first option as it has a limited scope of modification and less impact.
k2tzumi
added a commit
to k2tzumi/tagpr
that referenced
this issue
Dec 29, 2023
When tagpr generates a PullRequest for a release, is it possible to get the following information from the shell specified in the commnad?
The reason for wanting to get the version number is that, apart from CHANGELOG, we want to automatically output the changes in the OpenAPI specification between release versions
I performed the following verification in the shell of tagpr.command, but could not get the version information.
$GITHUB_EVENT_PATH
)I could check the version of latest, but the next version has to be calculated, but I can't determine if it is major, minor, or patch
The tagpr.command cannot identify this version because the execution is done before the CHANGELOG.md is updated.
If we can get the version in tagpr.command, we can update multiple versions of the following Issue.
#152
The text was updated successfully, but these errors were encountered: