Skip to content

Commit

Permalink
Revert "Include URL in Discord bot changelog to link to the Github PR…
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 authored Dec 14, 2023
1 parent bba158d commit 808d59d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Tools/actions_changelogs_since_last_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ def send_to_discord(entries: Iterable[ChangelogEntry]) -> None:
for entry in group:
for change in entry["changes"]:
emoji = TYPES_TO_EMOJI.get(change['type'], "❓")
url = entry["url"]
message = change['message']
content.write(f"[{emoji}]({url}) {message}\n")
content.write(f"{emoji} {message}\n")

body = {
"content": content.getvalue(),
Expand All @@ -131,4 +130,4 @@ def send_to_discord(entries: Iterable[ChangelogEntry]) -> None:
requests.post(DISCORD_WEBHOOK_URL, json=body)


main()
main()
3 changes: 1 addition & 2 deletions Tools/update_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def main():
"time", datetime.datetime.now(datetime.timezone.utc).isoformat()
)
changes = partyaml["changes"]
url = partyaml["url"]

if not isinstance(changes, list):
changes = [changes]
Expand All @@ -72,7 +71,7 @@ def main():
new_id = max_id

entries_list.append(
{"author": author, "time": time, "changes": changes, "id": new_id, "url": url}
{"author": author, "time": time, "changes": changes, "id": new_id}
)

os.remove(partpath)
Expand Down

0 comments on commit 808d59d

Please sign in to comment.