Commit graph

69 commits

Author SHA1 Message Date
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
f8d855f502 Simplify error message 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
515bb96b2f Update project help text; fix unlink usage 2025-02-27 17:51:05 +05:00
Azeem Sajid
33c30d5bd1 Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
William Martin
94b50caa19 Add test for item-edit --number 0 2025-02-19 12:39:14 +01:00
Aryan Bhosale
bf37ac9a69 Support setting project item number to 0 2025-02-19 12:31:17 +01:00
Azeem Sajid
8b7fb231ec Remove trailing whitespace 2025-02-13 11:06:27 +05:00
Azeem Sajid
277f27442c Update tests 2025-02-05 19:51:52 +05:00
Azeem Sajid
64b63f61f6 [gh project item-edit] Fix number type 2025-02-05 16:30:57 +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
William Martin
1d38230675
Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02: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
66fb5738a3 chore: simplify parameter owner 2024-02-15 23:24:32 +08:00
benebsiny
7dfaa328aa Support for [HOST/]OWNER/REPO format 2024-02-15 23:16:00 +08:00
benebsiny
874da37a24 Replace assert with require in testing 2024-02-15 18:38:50 +08: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
28c8376b56 Fix printed project number
Fix the error regarding the printed error number when selecting the project number in interactive mode
2024-01-27 11:53:10 +08:00
benebsiny
adc0abe5da Support for directory based repo and GH_REPO env variable 2024-01-27 11:44:07 +08:00
benebsiny
0ce66347b9 Change the output of link and unlink` 2024-01-26 00:54:42 +08:00
benebsiny
b44ed7433d Refactor OrganizationTeam 2024-01-26 00:21:52 +08:00
benebsiny
7abf1c05bc Replace httpmock with gock in testing 2024-01-25 23:22:48 +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
7fd91f593c fix wording, move conditional blocks to functions, and add api to retrieve the ID of a team 2024-01-24 14:37:28 +08:00
benebsiny
aaa41ca6a9 Fix wording 2024-01-21 21:41:58 +08:00
benebsiny
918443f32b Add testing for link and unlink 2024-01-21 21:30:09 +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
bb1ab90a9a Remove support for team 2024-01-19 23:23:26 +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
Yukai Chou
17d336e005 Wrap cli flags in backticks uniformly 2023-11-16 22:54:27 +08:00
ffalor
f4535004c2 clearer error message 2023-10-23 00:39:25 -05:00
Sam Coe
d70d798ebf
Fix up NoHeaders linter errors in project commands (#8223) 2023-10-20 15:30:13 +02:00
Heath Stewart
7738b6187c
Add headers to all tables (#8157) 2023-10-20 11:20:02 +02:00