Commit graph

47 commits

Author SHA1 Message Date
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
Sam Coe
5916439d22
Remove template field from projects exporting (#8160) 2023-10-17 09:54:12 +02: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
Ariel Deitcher
52a2a72210
rename template to mark-template cmd (#7923) 2023-09-05 03:58:07 +02:00
Ariel Deitcher
1fef870916 fix tests 2023-08-30 09:55:58 -07:00
Ariel Deitcher
f5d5e2ed1b no other descriptions have a period 2023-08-30 09:48:17 -07:00
Ariel Deitcher
a94240e1e0 mark and unmark project as template 2023-08-30 09:00:24 -07:00
cawfeecake
aa231319ca
Add missing "ls" aliases to list commands (#7818) 2023-08-10 09:08:15 -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
Sam Coe
b59f3dc29f
Rewrite issue develop command to fix numerous issues 2023-07-03 14:18:25 +09:00
Kamil Zuzda
5a0f892d4a
Add title to iteration and milestone fields for projects (#7621) 2023-06-29 11:10:01 +09:00
Ariel Deitcher
1b497221bc
output URL on project commands (#7578)
* output URL on project commands

* do not put useless URL in output
2023-06-20 10:09:26 +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