Skip to content

Pass the project option ID as a string in project-metadata - #436

Merged
theletterf merged 2 commits into
mainfrom
fix/project-metadata-option-id-string
Oct 26, 2026
Merged

theletterf merged 2 commits into
mainfrom
fix/project-metadata-option-id-string

Conversation

@theletterf

@theletterf theletterf commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Project-metadata failed on one issue in docs-content-internal (run 40307027423, issue #2080) with Variable $option of type String! was provided invalid value.

The cause is gh api graphql -F option=.... -F casts a value that looks like a number to an integer, and the option ID of "Streams: Central Mgmt" is all digits (69897712). The mutation expects a String!, so GitHub rejected it. Any option whose ID has only digits fails the same way, which is why it showed up only now and a rerun on another issue passed.

This changes that one argument to -f, so the ID always goes through as a string, and recompiles the lock. I checked the other -F arguments in the workflow: they carry owner, repo, issue number, project number and node IDs, which are not affected. Nothing to do with the Agent Router move.

No tracking issue exists for this change, at the user's request.

The pre-commit job also failed on a stale docs-review lock, unrelated to the option ID. elastic-docs-skills#169 merged after docs-actions#432, so the compiler now produces a different lock. The second commit recompiles it, with no source change.

🤖 Generated with Claude Code

gh -F casts an all-digit value to an integer, so a single-select option ID such as 69897712 failed the updateProjectV2ItemFieldValue mutation with 'Variable $option of type String! was provided invalid value'. Use -f so the ID always stays a string.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner October 26, 2026 10:39
@theletterf
theletterf requested a review from technige October 26, 2026 10:39
@theletterf theletterf self-assigned this Oct 26, 2026
@theletterf theletterf added the fix label Oct 26, 2026
elastic-docs-skills#169 merged after #432, so the docs-review lock no longer matched what the compiler produces and the pre-commit compile hook failed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@theletterf
theletterf merged commit 3a56ac6 into main Oct 26, 2026
6 checks passed
@theletterf
theletterf deleted the fix/project-metadata-option-id-string branch October 26, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant