• Home
  • Raw
  • Download

Lines Matching +full:github +full:- +full:token

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/
40 --
41 … auto generated release notes. Previous release notes are [here](https://github.com/grpc/grpc/rele…
43 …bels and make necessary corrections (like fixing the title) to the PR in Github. Final release not…
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…
80 …rpc.io](https://grpc.io/). For previous releases, see [Releases](https://github.com/grpc/grpc/rele…
87 HTML_URL = "https://github.com/grpc/grpc/pull/"
88 API_URL = "https://api.github.com/repos/grpc/grpc/pulls/"
92 …"""Print commit and CL info for the commits that are submitted with CL-first workflow and warn the…
96 "-n 1",
99 output = subprocess.check_output(glg_command).decode("utf-8", "ignore")
102 detail = "- " + author + " "
104 detail += "- " + title
107 detail += " ([commit](https://github.com/grpc/grpc/commit/{}))".format(
110 matches = re.search("PiperOrigin-RevId: ([0-9]+)$", output)
111 # backport commits might not have PiperOrigin-RevId
128 "--pretty=oneline",
132 return subprocess.check_output(glg_command).decode("utf-8", "ignore")
136 """Get the PR data from github. Return 'error' on exception"""
143 "GET", url, headers={"Authorization": "token %s" % TOKEN}
148 return json.loads(response.data.decode("utf-8"))
155 match_commit = "^([a-fA-F0-9]+) "
160 match_merge_pr = "^([a-fA-F0-9]+) .*Merge pull request #(\d+)"
171 # PRs using Github's squash & merge feature
172 match_sq = "^([a-fA-F0-9]+) .*\(#(\d+)\)$"
184 print(("---------- getting data for PR " + pr_num))
209 "- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))"
211 detail = "- " + pr["user"]["login"] + "@ " + prline
234 commits_wo_pr = all_commits_set - merge_commits_set - sq_commits_set
244 …"Commits with missing PR number - please lookup the PR info in the corresponding CL and add to the…
246 file.write("---\n")
251 file.write("- None")
254 file.write("PRs with missing release notes label - please fix in Github\n")
255 file.write("---\n")
261 file.write("- None")
264 file.write("PRs with missing lang label - please fix in Github\n")
265 file.write("---\n")
271 file.write("- None")
275 "PRs going into release notes - please check title and fix in Github."
278 file.write("---\n")
284 file.write("- None")
288 file.write("---\n")
294 file.write("- None")
302 file.write("Core\n---\n\n")
307 file.write("C++\n---\n\n")
312 file.write("C#\n---\n\n")
317 file.write("Go\n---\n\n")
322 file.write("Java\n---\n\n")
327 file.write("Node\n---\n\n")
332 file.write("Objective-C\n---\n\n")
337 file.write("PHP\n---\n\n")
342 file.write("Python\n---\n\n")
347 file.write("Ruby\n---\n\n")
352 file.write("Other\n---\n\n")
390 "--token",
393 help="GitHub API token to avoid being rate limited",
401 global TOKEN
412 TOKEN = args.token
413 if TOKEN == "":
415 TOKEN = os.environ["GITHUB_TOKEN"]
418 if TOKEN == "":
420 "Error: Github API token required. Either include param"
421 " --token=<your github token> or set environment variable"
422 " GITHUB_TOKEN to your github token"