GitHub Action for creating topics on published releases

AI-generated summary

benword introduces a GitHub Action that automatically creates Discourse topics when new releases are published to a GitHub repository. The action allows configuration of the topic author, category, and tags, and is currently used by organizations like Roots to manage release announcements. sunjam highlights an example topic and asks if the title can be customized.

In a follow-up, benword announces version 1.1.0, which introduces GitHub-to-Discourse username mapping. This feature allows release topics to be posted under the specific maintainer’s mapped Discourse username rather than a fixed generic account, facilitating better attribution for projects with multiple contributors. The mapping is configured via a discourse.yml file in the organization’s .github repository. Benword also notes that the action is being used by other communities, including Jenkins, NetBird, and Aleph.

Finally, satonotdead suggests potential adaptations of the action for updating Discourse documentation topics based on changes to Markdown files in GitHub.

Howdy :wave:

Just wanted to share something that we’re now using for our community! We created a GitHub Action to automatically create new topics on our Discourse instance for when a new release is published on a GitHub repository.

https://github.com/roots/discourse-topic-github-release-action

You can configure the topic author, category, and tags.

Example of how our org uses it: Topics tagged releases

12 Likes

That is amazing! Here is an example.

Is it possible to customize the topic title?

1 Like

Heads up: v1.1.0 was just released with GitHub-to-Discourse username mapping

This is useful for projects with multiple maintainers. Release topics can now be posted as the release author’s mapped Discourse username, instead of always using a fixed discourse-author-username (or system as fallback).

Details are in the README, but the mapping comes from a discourse.yml file in your org’s .github repository.

When working on this update, I noticed some of y’all have been using it :heart:

3 Likes

I wonder if it can be used or adapted for updating Discourse Docs topics from Github MD Files?