Skip to content
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 api-v0.7.1 #13

Merged
merged 10 commits into from
Nov 26, 2020
3 changes: 2 additions & 1 deletion build/GitUtils.nxt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
"",
"data = {",
" \"tag_name\": \"${version_tag}\",",
" \"target_commitish\": \"master\",",
" \"target_commitish\": \"release\",",
" \"name\": \"${version_name} v${version_str}\",",
" \"body\": ${body},",
" \"draft\": True,",
Expand All @@ -288,6 +288,7 @@
" print('making new release')",
" new_rel_resp = requests.post(url, auth=self.secret, data=json.dumps(data))",
" if new_rel_resp.status_code != 201:",
" print(new_rel_resp)",
" print('unsuccessful release')",
" print(new_rel_resp.status_code)",
" sys.exit()",
Expand Down
19 changes: 16 additions & 3 deletions build/release.nxt
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"import shutil",
"# Internal",
"import nxt",
"from nxt.constants import API_VERSION",
"from nxt.constants import API_VERSION, GRAPH_VERSION",
""
]
},
Expand Down Expand Up @@ -526,6 +526,12 @@
"OpenReleaseURL"
],
"comment": "Create the draft release and open it in your browser.",
"attrs": {
"graph_version": {
"type": "raw",
"value": "unknown"
}
},
"code": [
"print(\"Beginning release...\")"
]
Expand Down Expand Up @@ -601,9 +607,15 @@
"/ReleaseLoop": {
"execute_in": "/GenerateChangelog",
"comment": "Calls /CreateRelease",
"attrs": {
"release_types": {
"type": "tuple",
"value": "(${/versions.API}, ${/versions.GRAPH})"
}
},
"code": [
"# Parse return from versions sub-graph",
"for version_info in (${/versions.API}, ${/versions.GRAPH}):",
"for version_info in ${release_types}:",
" # TODO: Don't make a release for graphs, just open a tab to create a tag",
" if not version_info:",
" continue",
Expand All @@ -612,7 +624,8 @@
" version_name = version_cat.capitalize()",
" parameters = {'/CreateRelease.version_tag': version_tag,",
" '/CreateRelease.version_name': version_name,",
" '/CreateRelease.version_str': version_str}",
" '/CreateRelease.version_str': version_str,",
" '/CreateRelease.graph_version': GRAPH_VERSION.VERSION_STR}",
" execute(start='/CreateRelease', parameters=parameters)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion nxt/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"API": {
"MAJOR": 0,
"MINOR": 7,
"PATCH": 0
"PATCH": 1
},
"GRAPH": {
"MAJOR": 1,
Expand Down