Skip to content

chore: avoid updating doc pages when only the moddate changes#592

Merged
benPearce1 merged 2 commits intomainfrom
bp/docs-moddate
Apr 21, 2026
Merged

chore: avoid updating doc pages when only the moddate changes#592
benPearce1 merged 2 commits intomainfrom
bp/docs-moddate

Conversation

@benPearce1
Copy link
Copy Markdown
Contributor

@benPearce1 benPearce1 commented Apr 21, 2026

Before:
The modDate property on each doc page would always be updated resulting in a PR with every file touched

image

After:
I added a new parameter to a command and ran the gen-docs command, only that doc page was updated.

❯ gst
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   src/pages/docs/octopus-rest-api/cli/octopus-channel-create.mdx
diff --git a/src/pages/docs/octopus-rest-api/cli/octopus-channel-create.mdx b/src/pages/docs/octopus-rest-api/cli/octopus-channel-create.mdx
index 3fe624430..3b44fae4a 100644
--- a/src/pages/docs/octopus-rest-api/cli/octopus-channel-create.mdx
+++ b/src/pages/docs/octopus-rest-api/cli/octopus-channel-create.mdx
@@ -1,7 +1,7 @@
 ---
 layout: src/layouts/Default.astro
 pubDate: 2023-01-01
-modDate: 2026-04-19
+modDate: 2026-04-21
 title: octopus channel create
 description: Create a channel
 navOrder: 37
@@ -15,6 +15,7 @@ Usage:
   octopus channel create [flags]

 Flags:
+  -b, --blah string          The lifecycle to use for the channel
       --default              Set this channel as default
   -d, --description string   Description of the channel
   -l, --lifecycle string     The lifecycle to use for the channel

Comment on lines +4 to +6
push:
tags:
- 'v*'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this will now trigger every time a new release is created.

@benPearce1 benPearce1 requested review from a team and flin-8 April 21, 2026 01:01
@benPearce1 benPearce1 changed the title Bp/docs moddate Avoid updating doc pages when only the moddate changes Apr 21, 2026
@benPearce1 benPearce1 changed the title Avoid updating doc pages when only the moddate changes chore: avoid updating doc pages when only the moddate changes Apr 21, 2026
Copy link
Copy Markdown
Contributor

@flin-8 flin-8 left a comment

Choose a reason for hiding this comment

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

LGTM

@benPearce1 benPearce1 merged commit 7a74108 into main Apr 21, 2026
4 of 5 checks passed
@benPearce1 benPearce1 deleted the bp/docs-moddate branch April 21, 2026 03:32
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