• 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 matches = re.search("PiperOrigin-RevId: ([0-9]+)$", output)
110 " ([commit](https://github.com/grpc/grpc/commit/"
127 "--pretty=oneline",
131 return subprocess.check_output(glg_command).decode("utf-8", "ignore")
135 """Get the PR data from github. Return 'error' on exception"""
142 "GET", url, headers={"Authorization": "token %s" % TOKEN}
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+)"
170 # PRs using Github's squash & merge feature
171 match_sq = "^([a-fA-F0-9]+) .*\(#(\d+)\)$"
183 print(("---------- getting data for PR " + pr_num))
208 "- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))"
210 detail = "- " + pr["user"]["login"] + "@ " + prline
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")
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")
389 "--token",
392 help="GitHub API token to avoid being rate limited",
400 global TOKEN
411 TOKEN = args.token
412 if TOKEN == "":
414 TOKEN = os.environ["GITHUB_TOKEN"]
417 if TOKEN == "":
419 "Error: Github API token required. Either include param"
420 " --token=<your github token> or set environment variable"
421 " GITHUB_TOKEN to your github token"