Skip to content

ci: add auto doc tag workflow#730

Draft
UtkarshBhatthere wants to merge 1 commit into
mainfrom
feat/auto-doc-tag-workflow
Draft

ci: add auto doc tag workflow#730
UtkarshBhatthere wants to merge 1 commit into
mainfrom
feat/auto-doc-tag-workflow

Conversation

@UtkarshBhatthere
Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/auto-doc-tag.yml. Cron every 6h plus workflow_dispatch (with dry-run input).
  • Bumps vX.Y.Z+doc based on commits since the last +doc tag: ^feat(scope)?: → minor, else patch.
  • Scope-gated: only fires when docs/ has commits since the previous tag. No-op otherwise.
  • Idempotent: skips if HEAD already has a v*+doc tag.
  • Triggers Read the Docs build via the existing tag-push webhook.

Why

Today's stable docs publish path is manual (tag + RTD dashboard activate). This automates the tag step so each docs change on main produces a fresh stable version on RTD without operator intervention.

Tag scheme

  • Format: v<major>.<minor>.<patch>+doc
  • First tag (already pushed manually): v20.1.0+doc0007d2c
  • Bump rule: feat: since last tag → minor; otherwise patch. No automatic major bumps.

Test plan

  • Run via workflow_dispatch with dry-run=true after merge; confirm summary shows expected next tag and no push.
  • Make a trivial docs/ commit on main; trigger workflow manually with dry-run=false; confirm tag pushed and RTD build kicks off.
  • Trigger again immediately on same HEAD; confirm idempotency guard skips.
  • Land a feat: commit and a docs: commit; confirm minor bump.

🤖 Generated with Claude Code

Adds .github/workflows/auto-doc-tag.yml. Runs every 6h on main and
publishes a new vX.Y.Z+doc tag when docs/ has changed since the last
tag. Bumps minor when any commit subject since the previous tag matches
^feat(scope)?:, otherwise bumps patch. Idempotent on unchanged HEAD.
Read the Docs builds the new version via its existing webhook on tag
push.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@UtkarshBhatthere UtkarshBhatthere marked this pull request as draft May 26, 2026 09:51
@UtkarshBhatthere
Copy link
Copy Markdown
Contributor Author

converting to draft as it needs changes.

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