Skip to content

Sync Sphinx stack - #10

Open
danieltoader-canonical wants to merge 1 commit into
canonical:mainfrom
danieltoader-canonical:update-sphinx-stack
Open

Sync Sphinx stack#10
danieltoader-canonical wants to merge 1 commit into
canonical:mainfrom
danieltoader-canonical:update-sphinx-stack

Conversation

@danieltoader-canonical

Copy link
Copy Markdown
Contributor
  • Have you updated CHANGELOG.md with relevant non-documentation file changes?
  • Have you updated the documentation for this change?

Copilot AI lite review requested due to automatic review settings August 18, 2026 07:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Synchronizes parts of the Sphinx/docs maintenance stack by updating developer tooling and CI workflows, including extracting the “removed URLs” logic into a dedicated script.

Changes:

  • Added a standalone check_removed_urls.py helper script and updated the workflow to call it (instead of inline Python).
  • Updated the removed-URLs workflow checkout logic (now PR-context driven).
  • Tightened GitHub Actions permissions for the CLA check workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
docs/_dev/update_sp.py Updates the developer-facing invocation example path.
docs/_dev/check_removed_urls.py Adds a reusable script to detect removed URLs missing redirects.
.github/workflows/cla-check.yml Adds explicit GITHUB_TOKEN permissions for the CLA workflow.
.github/workflows/check-removed-urls.yml Removes workflow_call inputs and switches URL comparison to the new script.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 3 to 6
on:
workflow_call:
inputs:
base_ref:
required: false
type: string
base_repo:
required: false
type: string
pull_request:
branches: [main]
@@ -0,0 +1,98 @@
#! /usr/bin/env python
Comment thread docs/_dev/update_sp.py
#
# For debugging, please run this script with DEBUGGING=1
# e.g. user@device:~/git/Canonical/sphinx-stack/docs$ DEBUGGING=1 python .sphinx/update_sp.py
# e.g. user@device:~/git/Canonical/sphinx-stack/docs$ DEBUGGING=1 python _dev/update_sp.py
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.

2 participants