Skip to content

Commit

Permalink
Allow missing team release controller (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodimarco-dfinity committed May 30, 2024
1 parent 91f9853 commit 0fb2096
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion release-controller/release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Team:
"runtime-owners": "Runtime",
"trust-team": "Trust",
"sdk-team": "SDK",
"utopia": "Utopia"
}


Expand Down Expand Up @@ -455,7 +456,7 @@ def release_notes(first_commit, last_commit, release_name) -> str:

for change in sorted(change_infos[current_type], key=lambda x: ",".join(x["team"])):
commit_part = "[`{0}`](https://github.com/dfinity/ic/commit/{0})".format(change["commit"][:9])
team_part = ",".join([TEAM_PRETTY_MAP[team] for team in change["team"]])
team_part = ",".join([TEAM_PRETTY_MAP.get(team, team) for team in change["team"]])
team_part = team_part if team_part else "General"
scope_part = (
":"
Expand Down
3 changes: 2 additions & 1 deletion scripts/host-os-release-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"runtime-owners": "Runtime",
"trust-team": "Trust",
"sdk-team": "SDK",
"utopia": "Utopia"
}


Expand Down Expand Up @@ -435,7 +436,7 @@ def main():
commit_part = '[<a href="https://github.com/dfinity/ic/commit/{0}">{0}</a>]'.format(
change["commit"][:9]
)
team_part = ",".join([TEAM_PRETTY_MAP[team] for team in change["team"]])
team_part = ",".join([TEAM_PRETTY_MAP.get(team, team) for team in change["team"]])
team_part = team_part if team_part else "General"
scope_part = (
":"
Expand Down
3 changes: 2 additions & 1 deletion scripts/release-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"prodsec": "Prodsec",
"runtime-owners": "Runtime",
"trust-team": "Trust",
"utopia": "Utopia"
}


Expand Down Expand Up @@ -457,7 +458,7 @@ def main():
commit_part = '[<a href="https://github.com/dfinity/ic/commit/{0}">{0}</a>]'.format(
change["commit"][:9]
)
team_part = ",".join([TEAM_PRETTY_MAP[team] for team in change["team"]])
team_part = ",".join([TEAM_PRETTY_MAP.get(team, team) for team in change["team"]])
team_part = team_part if team_part else "General"
scope_part = (
":"
Expand Down

0 comments on commit 0fb2096

Please sign in to comment.