William Martin
d45acae604
Revert "refactor: deduplicate scope error handling between api/client.go and project queries"
2026-03-12 12:45:48 +01:00
yuvrajangadsingh
fdd6388086
refactor: deduplicate scope error handling between api/client.go and project queries
...
Consolidate duplicated INSUFFICIENT_SCOPES error handling into a single
implementation. The project queries package now calls
api.GenerateScopeErrorForGQL instead of reimplementing the same logic.
Removes duplicated requiredScopesFromServerMessage, scopesRE, and the
associated test (already covered by api/client_test.go).
Fixes #12823
2026-03-05 20:57:32 +05:30
ManManavadaria
d21544c085
fix(project/item-edit): preserve title/body when editing draft issue with partial flags
2026-02-26 16:23:37 +05:30
William Martin
4dd50cf60c
Fix project mutation query variable usage
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-23 07:13:07 -07:00
William Martin
ccfe693c46
Rename query for clarity
2026-02-18 17:34:42 +01:00
William Martin
f55656ca67
Remove pointer comments
2026-02-18 17:25:56 +01:00
William Martin
aeeb8a3d93
Remove DTO concept
2026-02-18 17:25:56 +01:00
William Martin
8dcfd330e7
Add --query flag to project item-list ( #12696 )
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Babak K. Shandiz <babakks@github.com>
2026-02-18 16:34:13 +01:00
Kynan Ware
5316f052d8
Merge branch 'trunk' into kw/accessible-prompter-and-disable-spinners-config
2025-04-23 07:30:54 -06:00
Kynan Ware
138bccd437
feat(config): add accessible prompter and spinner
2025-04-22 16:50:58 -06:00
Kynan Ware
c08425aef1
fix(projects): use iostreams progress indicator
2025-04-17 11:06:27 -06:00
Azeem Sajid
277f27442c
Update tests
2025-02-05 19:51:52 +05:00
Andy Feller
5f54201fc5
Ensure item iteration field is populated in tests
...
Updating tests to ensure `ProjectV2ItemFieldIterationValue` actually populates `IterationId` appropriately.
2025-02-03 15:25:15 -05:00
Azeem Sajid
029a5a577b
Update test
2025-01-30 19:23:07 +05:00
Azeem Sajid
8bab4b4753
[gh project item-list] Add iterationId field in ProjectV2ItemFieldIterationValue
2025-01-29 18:30:43 +05:00
yasunori
b54f7a3bde
Include draft ID in project item list JSON ( #8754 )
2024-03-20 12:58:51 +01:00
Harvey Sanders
9dd102ffd0
Support project view --web with TTY ( #8773 )
2024-03-01 17:45:29 +01:00
benebsiny
f9a54f678a
Remove --format flag and add description for not specifying --repo and --team flag
2024-01-30 23:06:05 +08:00
benebsiny
b57f4028c3
handle flags with cmdutil.MutuallyExclusive, and move mutation methods to queries.go
2024-01-24 17:00:37 +08:00
benebsiny
f98acb2d99
Support for team
2024-01-20 22:46:22 +08:00
benebsiny
e209d14516
Support for unlink
2024-01-19 23:35:18 +08:00
benebsiny
617ec61627
Link Project to Repository or Team Command
2024-01-19 02:37:23 +08:00
William Martin
89b5dbc2b7
Merge pull request #8589 from fpistm/typo_fix
...
Fix some typos raised by codespell
2024-01-18 12:42:05 +01:00
Heath Stewart
cf483770c9
Remove project JSON formatting objects ( #8541 )
2024-01-17 17:56:58 +00:00
Frederic Pillon
55d251ac51
Fix some typos raised by codespell
...
With .codespellignore containing:
aline
commitish
messag
noes
nwo
parth
prfiles
runn
timere
ue
welp
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2024-01-17 15:34:49 +01:00
Heath Stewart
0cf5d22ead
Support template, jq flags with standard format flag ( #7832 )
...
* Use standard JSON flags for project command
Deprecates the --format flag and adds the standard JSON flags to properly filter, template, and write JSON.
* Add format flags cmdutil
Resolves PR feedback
* Remove unnecessary fields from JSON format flags
* Add standard format help to remaining commands
* Add JSON format regression tests
Also fixed a number of `project` commands that didn't format the right object as JSON.
* Resolve PR feedback
2024-01-09 09:46:39 -08:00
ffalor
f4535004c2
clearer error message
2023-10-23 00:39:25 -05:00
Sam Coe
5916439d22
Remove template field from projects exporting ( #8160 )
2023-10-17 09:54:12 +02:00
Ariel Deitcher
1fef870916
fix tests
2023-08-30 09:55:58 -07:00
Ariel Deitcher
a94240e1e0
mark and unmark project as template
2023-08-30 09:00:24 -07:00
Kamil Zuzda
5a0f892d4a
Add title to iteration and milestone fields for projects ( #7621 )
2023-06-29 11:10:01 +09:00
Ariel Deitcher
ad4a489f8d
Introduce gh project commands ( #7375 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-06-09 16:57:01 +00:00