Rename frontmatter field fingerprint to campaign#3737
Merged
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rename frontmatter field fingerprint to campaign
Rename frontmatter field Nov 12, 2025
fingerprint to campaign
mnkiefer
approved these changes
Nov 12, 2025
mnkiefer
approved these changes
Nov 12, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR renames the fingerprint frontmatter field to campaign throughout the codebase for improved semantic clarity. The change is comprehensive and systematic, touching all relevant components including schemas, Go code, JavaScript modules, tests, documentation, and workflow examples.
Key Changes:
- Renamed frontmatter field from
fingerprinttocampaignwith consistent validation rules (8+ chars, alphanumeric + hyphens/underscores) - Updated environment variable from
GH_AW_FINGERPRINTtoGH_AW_CAMPAIGN - Changed HTML comment format from
<!-- fingerprint: value -->to<!-- campaign: value -->
Reviewed Changes
Copilot reviewed 93 out of 93 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/safe_outputs.go |
Renamed helper functions and environment variable references |
pkg/workflow/compiler.go |
Updated WorkflowData struct field and extraction logic |
pkg/workflow/frontmatter_extraction.go |
Renamed extraction function and error messages |
pkg/workflow/js/get_campaign.cjs |
New JavaScript module (renamed from get_fingerprint.cjs) |
pkg/workflow/js/get_campaign.test.cjs |
New test file with updated test cases |
pkg/workflow/js/*.cjs |
Updated require statements in safe output scripts |
pkg/workflow/js.go |
Updated embedded script variable names |
pkg/workflow/campaign_test.go |
New test file (renamed from fingerprint_test.go) |
pkg/workflow/campaign_integration_test.go |
Updated integration tests |
pkg/parser/schemas/main_workflow_schema.json |
Updated JSON schema property name and description |
docs/src/content/docs/reference/frontmatter-full.md |
Updated documentation |
.github/workflows/*.md |
Updated workflow examples to use new field name |
.github/workflows/*.lock.yml |
Regenerated compiled workflows with new env vars and functions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the
fingerprintfrontmatter field tocampaignthroughout the codebase for improved semantic clarity.Changes
Schema & Types
fingerprint→campaignWorkflowDataextractFingerprint()→extractCampaign(),buildWorkflowMetadataEnvVarsWithFingerprint()→buildWorkflowMetadataEnvVarsWithCampaign()JavaScript/CJS Files
get_fingerprint.cjs→get_campaign.cjsgetFingerprint()→getCampaign()require()statements in safe output scriptsEnvironment & Output Format
GH_AW_FINGERPRINT→GH_AW_CAMPAIGN<!-- fingerprint: value -->→<!-- campaign: value -->Tests & Documentation
Example
Compiled workflows now expose
GH_AW_CAMPAIGNand inject<!-- campaign: team-alpha-2024 -->into created assets.Breaking Change
fingerprint:must update tocampaign:. Validation rules (min 8 chars, alphanumeric + hyphens/underscores) remain unchanged.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.