-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#15544 from barrettj12/docs-check
juju#15544 juju#15406 introduced a Docs workflow which syncs CLI docs to Discourse on `push` to `develop`. No feedback was provided on PRs - so merging a PR could potentially cause this workflow to fail without warning. This PR adds a pre-merge check on PRs to ensure that the doc sync will succeed after merging. The `discourse-sync` script has been majorly refactored, and now has four commands: - `check`: ensures that each doc has an entry in the `$TOPIC_IDS` yaml file, and that the corresponding topic exists on Discourse. - `sync`: syncs the generated documentation to Discourse. - `create <doc-names> ...`: create new Discourse topics for the provided docs, and add the new topic IDs to the `$TOPIC_IDS` file. - `delete`: delete all topics in the `$TOPIC_IDS` file. The Docs workflow has been updated to match. The `check` command will now be run on `pull_request`, while `sync` will be run on `push`. If a PR adds a new Juju command, then the `check` command will find that there is no corresponding topic ID, and fail. This will warn the PR author and allow them to manually create the new topic (using the `create` command) and check in the changes.
- Loading branch information
Showing
3 changed files
with
215 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters