This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Releases: canonical/discourse-gatekeeper
Releases · canonical/discourse-gatekeeper
Release list
v0.9.1
Fixed
- Skip commented line further down the checking pipeline
v0.9.0
Added
- Separate comment lines (
<!-- ... -->) from index lines in comment structure.
v0.8.1
Fixed
- Migration error where discourse is in-line with the default branch but the
base content tag is behind. This no longer attempts migration and now also
moves the tag to the latest commit on the default branch.
v0.8.0
Added
- Support for migrating the navigation table to the contents index
- Checks that external references on the contents index return a 2XX response to
HEAD requests
Fixed
- Whitespace buildup between generated and input content
v0.7.0
Added
- Support for defining a contents index in the
index.mdfile. - Support for hidden items on the contentx index.
- Support for external items on the contents index
- Automatically moving the
discourse-gatekeeper/contenttag when the
documentation is up to date with discourse
Fixed
- Navigation table not getting removed if the contents was hidden using the
[details=...]...[/details]tag. - No longer use empty values from
INPUT_COMMIT_SHAinstead of reading the
event/ environment - Removing leading and trailing whitespace in base content for comparison
- Correct failing pre-flight checks due to shallowly checked out repos
v0.6.0 - Protecting Community Contributions
Added
- Raising PRs with community contributions on discourse
- Signing commits if required by a repository
Changed
- Conflict detection logic no longer uses git to merge for page conflicts.
Instead any differences between discourse and the feature branch on a specific
page lead to a failed run.
Fixed
- Improved logging of conflicts
v0.5.0 Remove base_branch Input
Changed
- Removed
base_branchinput.
Fixed
- Add support for handling tags that are directly linked to a commit which
resulted in a failure before.
v0.4.0 Use Tag to Track Latest Content
Changed
- The base for the content comparison is no longer based on using a branch.
Instead, the action will look for a tag with a default value of
upload-charm-docs/base-contentwhich can be changed using the
base_tag_nameinput. This ensures that the comparison can be made even if
the action is run on the default branch. The action will now fail if the
base_tag_nameis not found on the repository. - On a successful run in reconciliation mode with dry run not enabled, the
action will automatically add thebase_tag_nametag to the commit on which
it was run. - The
base_branchinput has been deprecated and will be removed in a future
release. It is no longer in use.
v0.3.0: Community Contribution Conflict Check
Changed
- The action now checks for conflicts with any edits directly on discourse and
will fail the content update if there are conflicts. The git merge algorithm
is used to merge content where there are no conflicts with the new content in
git and the changed content on discourse. Thebase_branchinput can be used
to set the branch that contains the content for the base of the comparison for
conflicts. It should be the branch targeted by pull requests and from which
releases are usually done. This input is optional and defaults to the default
branch of the repository. - The
github_tokeninput has been changed to be required as it is now also
required during reconciliation to retrieve the content that was last pushed
from git to discousrse as a base for checking for content conflicts and
merging content.
v0.2.3 Bug Fixes
Added
- Check to ensure that a topic URL resolves on discourse after allowing for any
redirects.
Changed
- URL checks are now after allowing for any discourse redirects rather than
before letting topic URLs pass that do not include the slug or do not include
the topic id as long as the URL after redirects is valid. - The check for whether the current branch clashes with the branch being created
has been removed. This is no longer required because the migration branch is
now from the default branch and there is an existing check that looks for any
clashes with existing branches. - The action no longer goes back to detached head mode after completing git
operations since the action now runs in a temporary directory meaning that no
changes persist beyond the action completing.
Fixed
- Bug where the action required environment variables that aren't available on
all supported triggers.