Mislav Marohnić
619333adb6
Avoid using error values to pass information about the search cap
2021-09-06 16:09:18 +02:00
Des Preston
e8b015b80d
show warning when limit exceeds search api max
...
Fixes #3839
2021-09-06 16:05:11 +02:00
Mislav Marohnić
e0fa56dc29
Merge remote-tracking branch 'origin' into go-module-v2
2021-09-02 20:02:16 +02:00
Luke
1102de89be
add quotes around @me in documentation to ensure examples work on powershell
2021-08-30 09:13:43 -05:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Heath Stewart
e2973453b5
Add helper template functions for rendering tables ( #3519 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 21:00:25 +02:00
Mislav Marohnić
9a485ddfa2
💅 Cleanup local branch handling during pr checkout
2021-08-05 20:44:34 +02:00
Des Preston
294a029e70
add --branch flag to pr checkout
...
Allows renaming the checked out branch.
2021-08-05 20:44:20 +02:00
Mislav Marohnić
5d1d967c43
💅 Clean up pr merge admin logic
2021-08-03 15:49:55 +02:00
rsteube
baa18c164d
pr merge: added --admin flag
2021-08-02 13:02:32 +02:00
Mislav Marohnić
db8204dc56
Allow space to be added after completing issue/pr list --state values
...
The "nospace" directive instructs the shell completion logic to avoid
adding a space after completing the word. However, this feature was
broken in an older Cobra, and users still saw a space character added.
In most case we want the space because we anticipate that the user might
want to add extra arguments to the command.
2021-07-21 16:12:38 +02:00
Mislav Marohnić
a83c2924c5
Never prompt to delete branch if --auto was given
2021-07-20 19:49:19 +02:00
Mislav Marohnić
6e026412df
Add "UNSTABLE" to immediately mergeable statuses
...
This status describes a state where the head branch is mergeable and
technically not blocked per base branch requirements, but it does have
non-passing checks.
2021-07-20 19:42:53 +02:00
Mislav Marohnić
6f2dfd7eea
Adjust conditions for switching between regular and auto merge
...
Conditions prohibiting a regular merge: BLOCKED, BEHIND, DIRTY.
Conditions triggering a regular merge even if `--auto` was set: CLEAN,
HAS_HOOKS.
Note that UNKNOWN status does not trigger either of the conditions.
2021-07-20 19:34:32 +02:00
Mislav Marohnić
0ab9c70c3f
Merge remote-tracking branch 'origin' into improve-automerge
2021-07-20 18:45:47 +02:00
Cristian Dominguez
bec0a102c5
Fix tests
2021-07-05 12:47:48 -03:00
Cristian Dominguez
bcab8c0766
Only merge PRs if branch checks have passed
2021-07-05 12:46:36 -03:00
bchadwic
47314a6bbc
modified HexToRGB to check whether terminal and gh have color enabled, as well as created tests for HexToRGB
2021-07-03 17:09:25 -07:00
bchadwic
af2499cb69
renamed func RGB to HexToRGB
2021-06-29 22:35:23 -07:00
bchadwic
4c412bc88c
Added in label rgb functionality for both prs and issues
2021-06-29 22:26:41 -07:00
Sam Coe
1302b71fa7
linter
2021-06-22 11:41:22 -07:00
Sam Coe
e0468dbb29
whitespace
2021-06-22 11:39:47 -07:00
Sam Coe
665f552def
Small reordering
2021-06-22 11:37:56 -07:00
autopp
0179651dc3
Add shell completion for the --state flag
2021-06-20 20:03:21 +09:00
Cristian Dominguez
6115868343
Suggest to enable auto-merge when PR merge state is BLOCKED
2021-06-19 11:46:17 -03:00
Cristian Dominguez
498f15653e
Simplify auto-merge detection
2021-06-19 01:40:28 -03:00
Cristian Dominguez
d68a2038b6
add test case
2021-06-14 22:01:35 -03:00
Mislav Marohnić
e1b5f78df3
💅 grammar in comment
2021-06-10 14:09:43 +02:00
Mislav Marohnić
606deaf134
Allow setting empty body via editor in issue/pr create
2021-06-04 21:50:51 +02:00
jack1142
6a74eb1262
Merge branch 'trunk' into patch-1
2021-06-02 11:10:25 +02:00
Mislav Marohnić
49609350af
Merge pull request #3737 from cli/requested-reviewers-slug
...
Fix how teams are displayed in requested reviewers
2021-06-02 08:48:11 +02:00
jack1142
184149b844
Add missing new line
2021-06-01 23:53:58 +02:00
jack1142
3943a8bb1f
Update PR tty view formatting and its tests
2021-05-29 04:44:34 +02:00
Mislav Marohnić
1a980e768c
Fix how teams are displayed in requested reviewers
...
1. The `--json` export now only renders the `login` field for User types
and `name` and `slug` fields for Team types.
2. The `pr view` command now renders team reviewers in the format of
`ORG/SLUG` instead of the team name. This is so that the same value
can be used in the `pr create -r` flag.
2021-05-28 14:32:31 +02:00
Gowtham Munukutla
e160dd3eae
fix listing of PRs when merged ones are searched ( #3730 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-05-28 10:11:12 +00:00
Mislav Marohnić
053d43f705
Fix pr checkout setting up git push configuration
2021-05-25 15:43:18 +02:00
Cristian Dominguez
325886c0e4
Only schedule an auto-merge when PR state is blocked
...
When passing `--auto` flag, only schedule an auto-merge if
the `mergeStateStatus` field is "BLOCKED".
This ensures that a PR will always be merged when passing `--auto` even
if it doesn't have required checks or if checks have already passed.
2021-05-24 18:45:59 -03:00
Mislav Marohnić
b9a4a425bf
Fix pr checkout for PRs coming from deleted forks
2021-05-24 16:52:53 +02:00
Mislav Marohnić
0208620a6f
Remove unnecessary commits stubs from fixtures
2021-05-21 17:37:21 +02:00
Mislav Marohnić
6bec7a956a
Fix pr merge on GHE < 3.0
...
This avoids loading authorship information for git commits, since it
relies on a GraphQL API that wasn't available before GHE v3.0. The
authorship information wasn't necessary for the merge operation anyway;
just loading the last commit OID was.
2021-05-21 17:35:41 +02:00
Mislav Marohnić
79896ed513
Fix pr checkout for cross-repository pull requests
2021-05-19 13:18:04 +02:00
Mislav Marohnić
42155c7d2d
Export more IDs in issue/pr JSON payload
2021-05-18 18:19:28 +02:00
Mislav Marohnić
e758f30073
Fix preloading of pr reviews, checks, and issue/pr comments
2021-05-18 17:13:27 +02:00
Mislav Marohnić
51f7cbdfde
💅 cleanup and tests for PR finder
2021-05-18 09:59:05 +02:00
Mislav Marohnić
bc3bb97c43
Merge remote-tracking branch 'origin' into pr-lookup-refactor
2021-05-17 17:41:38 +02:00
Mislav Marohnić
301a35eedc
Merge pull request #3621 from cli/export-data
...
Push data serialization concern into Exporter
2021-05-17 13:43:00 +02:00
Mislav Marohnić
5f0301c990
Have Exporter.Write automatically call ExportData on given data structure
2021-05-12 17:05:15 +02:00
Mislav Marohnić
3cbd5b4934
Add repo fork --org functionality ( #3611 )
...
Co-authored-by: Gowtham Munukutla <gowtham.m81197@gmail.com>
2021-05-10 17:09:03 +02:00
Mislav Marohnić
c50d390cf5
Fix tests
2021-05-07 22:09:58 +02:00
Cristian Dominguez
2f94adabb2
Use T.TempDir for temporary dirs in tests ( #3580 )
2021-05-07 12:21:26 +02:00