Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow for replacing a single post's content #11

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

wwerner
Copy link
Contributor

@wwerner wwerner commented Jan 27, 2025

In discourse, a topic can have several posts: The initial one and multiple replies.

Previously, this action could only add replies to the given topic.
Now it can also replace a post's content to allow for updates.

To do so, pass discourse_post_id to the action instead of discourse_topic_id.
I don't consider it super intuitive, but it allows for supporting it without breaking existing users.

It also no longer adds the Changelog <date> title:

  • the action can be used for other purposes than changelogs
  • it's redundant anyway: The topic for changelogs contains, well, changelogs and each post has a date that is visible anyway
  • if you need it, you are free to add it to the content file to post in a previous build step

WDYT?

@wwerner wwerner merged commit 18e854a into main Jan 29, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant