Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/publish_release_notes_to_discourse.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def format_release_content(config: dict[str, str]) -> tuple[str, str]:

- **Version:** `{config["RELEASE_TAG"]}`
- **Repository:** [{config["REPO_NAME"]}](https://github.com/{config["REPO_NAME"]})
- **Release Page:** [View on GitHub]({config["RELEASE_URL"]})
- **Release Page:** {config["RELEASE_URL"]}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't like the View on Github, no reason to lose info from a readable URL like this

- Note: It may take some time for the release to appear on PyPI and conda-forge.

## 📋 Release Notes
Expand Down Expand Up @@ -105,7 +105,7 @@ def publish_release_to_discourse(config: dict[str, str]) -> bool:
url = f"{config['DISCOURSE_URL']}/posts.json"

try:
response = requests.post(url, headers=headers, data=topic_data)
response = requests.post(url, headers=headers, json=topic_data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha!

response.raise_for_status()

data = response.json()
Expand Down