Commit graph

20 commits

Author SHA1 Message Date
ManManavadaria
d21544c085 fix(project/item-edit): preserve title/body when editing draft issue with partial flags 2026-02-26 16:23:37 +05:30
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
Heath Stewart
cf483770c9
Remove project JSON formatting objects (#8541) 2024-01-17 17:56:58 +00: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
Andy Feller
c8b465269e
Bubble up return value from inner function calls in runEditItem 2023-10-02 11:42:34 -07:00
Arun
45e4bf7fc0
Split clearing item, updating draft item and updating item values into individual functions for better readability; refactor field ID and project ID presence check into a separate function 2023-09-29 12:15:35 -07:00
Arun
eebef99b1c
Document clear flag in long form help as well 2023-09-29 11:56:19 -07:00
Arun
9d81ca0e44
Add clear flag usage example 2023-09-29 11:54:26 -07:00
Arun
6f6e179c49
Move field value flag and clear flag exclusivity one level higher up to RunE 2023-09-29 11:54:14 -07:00
Arun
31fd8dfc45
Tests for the new clear flag 2023-09-19 19:57:25 -07:00
Arun
dde84c27a3
Driveby unrelated update: when both field ID and project ID are missing, specify that it's necessary to update the field value 2023-09-19 19:04:43 -07:00
Arun
55b41d8fa6
Introduce clear flag on 'project item-edit' command to remove field value 2023-09-19 19:03:57 -07:00
John Keech
93e1511bae
Codespaces: Use the host name from the logged in server for commands (#7795)
* Use the host name from the logged in server for codespace commands

* Fix existing tests

* Add tests for server url configuration

* Rename defaultApiUrl to defaultAPIURL and comment cleanup

* Switch to t.Setenv in codespaces api tests

* Switch to t.Setenv in other tests

* Support custom server in web flows for list and create

* Rename GetServerURL() to ServerURL()
2023-08-08 09:32:06 -07: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