-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Release versioning helper script(s) #3110
Release versioning helper script(s) #3110
Conversation
Introduces bump.sh which supports moving from version to version but only within delimiting marker tags in the target file. This script currently doesn't do validations or anything fancy.
cc @OpenAPITools/generator-core-team |
* master: [Java][okhttp-gson] Update dependencies (OpenAPITools#3103) Link query parameter to model object (OpenAPITools#2710) scala-play-server: fix enum names for reserved words (OpenAPITools#3080) Add @Sunn to openapi generator core team (OpenAPITools#3105) fix NPE in go generator (OpenAPITools#3104) scala-play-server: fix API doc url (OpenAPITools#3096) [maven-plugin] fix strictSpec parameter without alias (OpenAPITools#3095) Ruby: Avoid double escaping path items (OpenAPITools#3093) [Golang][client] Allow generating go client code as a submodule. (OpenAPITools#3012) [CI] Test maven plugin in Travis, move jobs from Shippable to Circle CI (OpenAPITools#3087) general support to add scopes for bearer auth too (OpenAPITools#1984) feat(java-jersey2): Making response headers case-insensitive (OpenAPITools#3072) [KOTLIN Spring] fix generation with modelNamePrefix/Suffix (OpenAPITools#3038) Mark nodejs-server as deprecated (OpenAPITools#3083) Use 4.0.2-SNAPSHOT version in gradle samples (OpenAPITools#3085)
@jimschubert Please resolve the merge conflicts when you've time. We'll use it for the next release (4.0.3) |
@wing328 this doesn't show me any merge conflicts. I do see a CircleCI failure which is unrelated. What process did you follow to see merge conflicts? I'll follow the same and evaluate. edit: nevermind, I see it now. |
* master: (25 commits) Add #send to ruby reserved word list (OpenAPITools#3146) Merge java8 doc for spring (OpenAPITools#3122) added api key authentication to aspnetcore 2.1 (OpenAPITools#3089) Add "yue9944882" to Perl technical committee (OpenAPITools#3194) [csharp-netcore]: Adding http response details in api_docs and making example snippet compilable (OpenAPITools#3128) generate travis configuration (OpenAPITools#3193) Perl: Basic bearer auth support (OpenAPITools#3192) [R] feat(r) : Alternate PR for serialization fixes along with WithHttpInfo method enhancement (OpenAPITools#3099) improve release checkout script (OpenAPITools#3184) Prepare 4.0.3-SNAPSHOT (OpenAPITools#3185) 4.0.2 release (OpenAPITools#3181) Fix rubocop obsolescence (OpenAPITools#3175) Add Fuse to the company list (OpenAPITools#3164) Idiomatic Rust returns for Error conversions (OpenAPITools#2812) Add API timeout handling (OpenAPITools#3078) Import inner items for map (OpenAPITools#3123) update core team in pom.xml (OpenAPITools#3126) [gradle] Document consuming via gradle plugin portal (OpenAPITools#3125) Bump up babel-cli version to fix security alert (OpenAPITools#3121) [C++] [cpprestsdk] Add examples and test for cpprestsdk (OpenAPITools#3109) ...
@wing328 I've merged master. I'll try to check back in a bit and see if the verification suite has passed before merging. Here are the recommended updates to https://github.com/OpenAPITools/openapi-generator/wiki/Release-Checklist, for "File a PR" step in the "before release" section:
And the snapshot preparation in the "After Release" section:
|
* master: Ruby-client: Don't encode slashes if strict-spec false (OpenAPITools#3204) [openapi-yaml] Config option outputFile was ignored by the generator. (OpenAPITools#3199) Add missing javax dependencies for Java > 8 (OpenAPITools#3188) update kotlin samples Minor fix to presentation link Add Flow import to kotlin spring reactive (OpenAPITools#3107) Ktor Fix KtorExperimentalAPI import (OpenAPITools#3108) Add a link to the speaker deck at Kubernetes Contributor Summit (OpenAPITools#3205) [csharp] Adding http response details on api_docs and making example snippet compilable (OpenAPITools#3129) [java][jesery2]: "InjectionManagerFactory not found" issue (OpenAPITools#3153)
I think this broke the release table in the readme.
Filed #3221 to fix it |
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.master
,4.1.x
,5.0.x
. Default:master
.Description of the PR
This is an attempt to make the release versioning scripts a little clearer. I've moved the scripts under
./bin/utils/release
so they can live alongside related/supplemental scripts.Rather than requiring release engineers to specify from/to target versions, I've made
release_version_update.sh
accept one ofmajor
,minor
,build
, orsnapshot
. This pulls the version from pom.xml. We could go one step further and if version ends in-SNAPSHOT
then default tobuild
and if not default tosnapshot
for the bump version type.If this gets merged, we'd need to update the wiki as well.
Examples
build
minor
major
snapshot
Docs update
Options
release_version_update.sh
release_version_update_docs.sh