Commit graph

52 commits

Author SHA1 Message Date
Heath Stewart
9e00f1e4f2
Resolve PR feedback 2024-10-14 15:08:23 -07:00
Heath Stewart
70b14215ec
Print filtered gists similar to code search 2024-10-12 23:17:56 -07:00
Andy Feller
779a1203b6
Merge pull request #9471 from heaths/issue9470
Always print URL scheme to stdout
2024-08-21 14:46:52 -04:00
Heath Stewart
81f3526740
Fix tests 2024-08-16 10:11:52 -07:00
Tyler McGoffin
c838da9ee1 Update gh search issues --project flag doc to specify owner/number syntax
There are no code changes required to make this work. I added a test
specifying `<owner>/<number>` and nothing failed. Any syntax issues are
returned by the api with a generic message:

```
Invalid search query "project:\"<string>\" type:issue".
An invalid project was specified.
```

This, combined with the updated docstring, should be sufficient for users
to troubleshoot any issues with the `--project` flag syntax
2024-08-12 14:51:27 -07:00
Tyler McGoffin
e5248b8fd4 Update gh search prs --project flag doc to specify owner/number syntax
There are no code changes required to make this work. I added a test
specifying `<owner>/<number>` and nothing failed. Any syntax issues are
returned by the api with a generic message:

```
Invalid search query "project:\"<string>\" type:pr".
An invalid project was specified.
```

This, combined with the updated docstring, should be sufficient for users
to troubleshoot any issues with the `--project` flag syntax
2024-08-12 14:51:03 -07:00
Yukai Chou
d7b8ecf33d Unify use of tab indent in non-test source files
Found with
    rg '(^ | \t|\t )' -g '*.go' -g '!*_test.go'

Mixed indent exceptions:
- wrapped long list items with extra 2-space indent
- code snippets using space indent
- commented code lines having "\t*// \t+" prefix
2024-08-03 00:35:30 +08:00
William Martin
1d38230675
Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
Stuart Leitch
cfd2d645b2 Clarify helptext for gh search issues and gh search repos regarding archived repos 2024-02-29 22:38:55 +00:00
Stuart Leitch
19367c6458 fixed whitespace 2024-02-21 23:31:57 +00:00
Stuart Leitch
25c1610e37 Clarify helptext for search prs regarding archived repos 2024-02-21 23:17:19 +00:00
Shion Ichikawa
29bd9dc6eb
search repos command add usage example for --archived=false (#8391) 2024-01-17 19:53:26 +00:00
Yukai Chou
21bf1babdf Proof-reading 2023-11-17 02:04:35 +08:00
Heath Stewart
7738b6187c
Add headers to all tables (#8157) 2023-10-20 11:20:02 +02:00
Mislav Marohnić
94a6312eaf
💅 json export 2023-06-09 17:36:19 +02:00
Mislav Marohnić
e2b2bc0071
fix tests 2023-05-10 16:20:51 +02:00
Mislav Marohnić
e2c8b16c4b
Print empty line between file headers 2023-05-10 16:04:57 +02:00
Mislav Marohnić
9d5eb0b784
💅 improve code search output 2023-05-10 15:51:53 +02:00
Josh Kraft
88887c8d55 incorporate code review feedback 2023-05-08 18:04:52 -06:00
Josh Kraft
43d5345b8b remove empty line 2023-04-26 19:55:27 -06:00
Josh Kraft
d82c65ac2f change highlight color 2023-04-26 19:15:31 -06:00
Josh Kraft
b0396d9af2 adopt changes to User 2023-04-26 18:55:33 -06:00
Josh Kraft
b8f86f54ad Merge branch 'trunk' into gh-search-code 2023-04-26 18:48:24 -06:00
Josh Kraft
65720e498e implement code search
updates
2023-04-26 18:38:35 -06:00
Kousik Mitra
7ee35e43cc
Enable owner flag to take multiple values for searching 2023-04-12 10:37:09 +05:30
Kenichi Kocha
89caedf181
Add -R as shorthand of --repo flag for search commands (#7274) 2023-04-07 17:41:51 +10:00
Benjamin Chadwick
82662685e3
Autocomplete branch flags (#6031)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods (#7049) 2023-02-28 00:24:45 +00:00
Sam Coe
55578208a6
Migrate search commands to new table printer and add headers (#6869) 2023-01-18 09:40:10 -08:00
Kevin Lee
9a1056fc87
Add search commits command (#6817) 2023-01-17 19:35:09 +00:00
Matthew Gabeler-Lee
eadc8e8372
Add isDraft to search prs json options, matching pr view (#6704) 2022-12-09 07:57:27 +00:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh (#6346) 2022-10-17 15:15:39 +02:00
Natthakit Susanthitanon
4c3b123db6
Return empty error before starting a pager program (#6419)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-13 19:08:13 +02:00
Ariel Deitcher
331dc24f07
show pull request merged state on search (#6411) 2022-10-11 14:40:16 +02:00
Sam Coe
de83df12d2
Stub out time.Now for search tests (#6299) 2022-09-19 14:54:18 +04:00
Sam Coe
e14d14cef2
Add support for issue state reason (#6245) 2022-09-14 12:39:15 +04:00
Sam Coe
e7102f9d84
Migrate to go-gh text package (#6236) 2022-09-14 09:23:55 +04:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages (#6084) 2022-08-18 09:04:13 +03:00
Sam Coe
cacff4ad6d
Use go-gh config package (#5771) 2022-06-23 11:50:04 +00:00
Mislav Marohnić
89886eeaf8 Fix repo visibility label in search repos output
The `Visibility` field will be empty for `search` results when made
against GHES versions < 3.3. If that is the case, fall back to
constructing the label using `IsPrivate` field.
2022-06-07 17:09:17 +02:00
Sam Coe
ebbf2ac096
Fix owner qualifier for search queries (#5693) 2022-05-23 13:00:32 +00:00
Sam Coe
60ea13b39e
Fix whitespace in search prs examples (#5650) 2022-05-16 10:35:27 +02:00
colby thomas
02357c0063
Removing confusing user search text (#5620) 2022-05-12 08:48:22 +00:00
Damien Sedgwick
b24e4c09d9
Fix: 5501 - Added examples of negated qualifiers to search commands (#5562) 2022-05-03 07:48:24 +00:00
ffalor
b57746a878
Add the ability to pass teams to review-requested (#5538) 2022-05-02 19:07:16 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found (#5479)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00
Sam Coe
c99c47f34d
Fix displayed header for search prs command (#5488) 2022-04-20 12:06:45 +02:00
Sam Coe
8a0c1f903c
Change issue close color from red to purple (#5436) 2022-04-11 11:50:55 +02:00
Sam Coe
6fbe6d9c20
Add ability to filter issue and pr searches by app (#5370) 2022-03-29 21:58:29 +02:00