Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
26003835
Commit
26003835
authored
Sep 10, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If cannot fetch people.yaml, entire script should fail
parent
1c4d1605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
scripts/release.py
+7
-15
No files found.
scripts/release.py
View file @
26003835
...
...
@@ -382,21 +382,13 @@ def prs_by_email(start_ref, end_ref):
}
# `emails` maps from other_emails to primary email, based on people.yaml.
emails
=
{}
try
:
people_resp
=
requests
.
get
(
PEOPLE_YAML
,
headers
=
headers
)
people_resp
.
raise_for_status
()
people
=
yaml
.
safe_load
(
people_resp
.
text
)
except
requests
.
exceptions
.
RequestException
as
e
:
# Hmm, muddle through without canonicalized emails...
message
=
(
"Warning: could not fetch people.yaml: {message}"
.
format
(
message
=
e
.
message
)
)
print
(
colorize
(
"red"
,
message
),
file
=
sys
.
stderr
)
else
:
for
person
in
people
.
itervalues
():
if
'other_emails'
in
person
:
for
other_email
in
person
[
'other_emails'
]:
emails
[
other_email
]
=
person
[
'email'
]
people_resp
=
requests
.
get
(
PEOPLE_YAML
,
headers
=
headers
)
people_resp
.
raise_for_status
()
people
=
yaml
.
safe_load
(
people_resp
.
text
)
for
person
in
people
.
itervalues
():
if
'other_emails'
in
person
:
for
other_email
in
person
[
'other_emails'
]:
emails
[
other_email
]
=
person
[
'email'
]
unordered_data
=
collections
.
defaultdict
(
set
)
for
pr_num
in
get_merged_prs
(
start_ref
,
end_ref
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment