-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workinggh-projectrelating to the gh project commandrelating to the gh project commandhelp wantedContributions welcomeContributions welcome
Description
Describe the bug
I'm trying to issue the gh project item-edit command to set the value of an item field to a floating point value. The command looks like this:
gh project item-edit --project-id $projectId --id $itemId --field-id $fieldId --number 69.84
The command fails with this error:
GraphQL: Number values cannot exceed 8 decimal places (updateProjectV2ItemFieldValue)
which would be helpful if the value I passed had more than 8 decimal places, but it doesn't.
Affected version
Please run gh version and paste the output below.
gh version 2.65.0 (2025-01-06)
Steps to reproduce the behavior
- Create a project a define a number field in it.
- Add an item to the project
- Figure out the project ID, item ID, and field ID (no small feat).
- Issue the command above.
Expected vs actual behavior
The update should succeed when the value provided is valid.
Logs
Paste the activity from your command line. Redact if needed.
[mikekistler@macbookpro] ~>export GH_DEBUG=true
[mikekistler@macbookpro] ~>gh project item-edit --project-id $projectId --id $itemId --field-id $fieldId --number 69.84
- Request at 2025-01-30 21:57:28.393059 -0600 CST m=+0.122595376
- Request to https://api.github.com/graphql
- Request took 379.058041ms
GraphQL: Number values cannot exceed 8 decimal places (updateProjectV2ItemFieldValue)
[mikekistler@macbookpro] ~>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-projectrelating to the gh project commandrelating to the gh project commandhelp wantedContributions welcomeContributions welcome