Skip to content

Commit 40268a2

Browse files
miharpclaude
andcommitted
Use version tag, not SHA, in OpenBolt generated note
OpenBolt's 'generated from' note showed the resolved commit SHA while OpenVox and OpenFact show the clean version tag. Pass PuppetReferences.version_commit (the pinned tag) to generated_note instead of @commit (the SHA from Repo#checkout), matching the other collections. Closes #336 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Michael Harp <mike@mikeharp.com>
1 parent 0904477 commit 40268a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/puppet_references/openbolt

lib/puppet_references/openbolt/docs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def copy_reference_pages
5959
# leading H1 (the placement make_header uses for the other collections).
6060
# Falls back to after the YAML front matter, then to the top of the file.
6161
def insert_generated_note(content)
62-
note = PuppetReferences::Util.generated_note('OpenBolt', @commit)
62+
note = PuppetReferences::Util.generated_note('OpenBolt', PuppetReferences.version_commit)
6363
if (m = content.match(/\A(---\n.*?\n---\n\n)?(# [^\n]*\n)/m))
6464
"#{m[1]}#{m[2]}\n#{note}\n#{m.post_match}"
6565
elsif (m = content.match(/\A(---\n.*?\n---\n)/m))

0 commit comments

Comments
 (0)