• Home
  • Raw
  • Download

Lines Matching +full:draft +full:- +full:release

7 #     http://www.apache.org/licenses/LICENSE-2.0
14 """Generate draft and release notes in Markdown from Github PRs.
16 You'll need a github API token to avoid being rate-limited. See
17 https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
20 tags or release branch names of previous and current releases respectively.
21 Typically, notes are generated before the release branch is labelled so Y is
22 almost always the name of the release branch. X is the previous release branch
23 if this is not a patch release. Otherwise, it is the previous release tag.
24 For example, for release v1.17.0, X will be origin/v1.16.x and for release v1.17.3,
39 content_header = """Draft Release Notes For {version}
40 --
41release notes will be generated from the PR titles that have *"release notes:yes"* label. If you h…
43 …ike fixing the title) to the PR in Github. Final release notes will be generated just before the r…
46 --
49 -
53 -
57 -
60 Objective-C
61 -
65 -
69 -
73 -
78 rl_header = """This is release {version} ([{name}](https://github.com/grpc/grpc/blob/master/doc/g_s…
82 This release contains refinements, improvements, and bug fixes, with highlights listed below.
92 …mit and CL info for the commits that are submitted with CL-first workflow and warn the release man…
96 "-n 1",
99 output = subprocess.check_output(glg_command).decode("utf-8", "ignore")
102 detail = "- " + author + " "
104 detail += "- " + title
107 matches = re.search("PiperOrigin-RevId: ([0-9]+)$", output)
127 "--pretty=oneline",
131 return subprocess.check_output(glg_command).decode("utf-8", "ignore")
147 return json.loads(response.data.decode("utf-8"))
154 match_commit = "^([a-fA-F0-9]+) "
159 match_merge_pr = "^([a-fA-F0-9]+) .*Merge pull request #(\d+)"
171 match_sq = "^([a-fA-F0-9]+) .*\(#(\d+)\)$"
183 print(("---------- getting data for PR " + pr_num))
195 if label["name"] == "release notes: yes":
197 elif label["name"] == "release notes: no":
208 "- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))"
210 detail = "- " + pr["user"]["login"] + "@ " + prline
214 print(("Release notes label missing for " + pr_num))
220 print(("'Release notes:no' found for " + pr_num))
225 "'Release notes:yes' found for "
233 commits_wo_pr = all_commits_set - merge_commits_set - sq_commits_set
243 …"Commits with missing PR number - please lookup the PR info in the corresponding CL and add to the…
245 file.write("---\n")
250 file.write("- None")
253 file.write("PRs with missing release notes label - please fix in Github\n")
254 file.write("---\n")
260 file.write("- None")
263 file.write("PRs with missing lang label - please fix in Github\n")
264 file.write("---\n")
270 file.write("- None")
274 "PRs going into release notes - please check title and fix in Github."
277 file.write("---\n")
283 file.write("- None")
286 file.write("PRs not going into release notes\n")
287 file.write("---\n")
293 file.write("- None")
301 file.write("Core\n---\n\n")
306 file.write("C++\n---\n\n")
311 file.write("C#\n---\n\n")
316 file.write("Go\n---\n\n")
321 file.write("Java\n---\n\n")
326 file.write("Node\n---\n\n")
331 file.write("Objective-C\n---\n\n")
336 file.write("PHP\n---\n\n")
341 file.write("Python\n---\n\n")
346 file.write("Ruby\n---\n\n")
351 file.write("Other\n---\n\n")
362 "release_version", type=str, help="New release version e.g. 1.14.0"
365 "release_name", type=str, help="New release name e.g. gladiolus"
368 "release_date", type=str, help="Release date e.g. 7/30/18"
373 help="Previous release branch/tag e.g. v1.13.x",
378 help="Current release branch e.g. origin/v1.14.x",
381 "draft_filename", type=str, help="Name of the draft file e.g. draft.md"
386 help="Name of the release notes file e.g. relnotes.md",
389 "--token",
420 " --token=<your github token> or set environment variable"