Tyler McGoffin
d4f7576e8b
Add test for empty BranchConfig in prSelectorForCurrentBranch
2025-01-09 09:01:14 -08:00
Tyler McGoffin
15ac566222
Remove shadowed errors from prSelectorForCurrentBranch and cover with tests
2025-01-08 15:21:05 -08:00
Tyler McGoffin
94b2d4ec3b
Added tests to cover prSelectorForCurrentBranch for confidence in refactor
2025-01-08 15:00:38 -08:00
Tyler McGoffin
ec9eaef048
Refactor prSelectorForCurrentBranch and tests
...
Replace the git config argument in prSelectorForCurrentBranch with
the branchConfig it was used to fetch. The tests needed to be refactored
accordingly to support this change to the prSelectorForCurrentBranch API.
In addition, I've moved the test to a table test format so I can expand
the test coverage in the next commit.
2025-01-08 14:34:49 -08:00
William Martin
1d38230675
Move config interfaces into gh package ( #9060 )
2024-05-10 10:39:36 +02:00
William Martin
2717dc5758
Add cmd test for pr status with counts by state
2023-05-24 16:00:34 +02:00
William Martin
42b61ad53e
Inject fake detector into PR status tests
2023-05-22 18:44:51 +02:00
William Martin
ebb7d26f3a
Implement initial spike for detecting and using counts by state
2023-05-17 19:59:03 +02:00
Martijn Pieters
83aaa76141
Include auto-merge information in gh pr status ( #7386 )
...
PRs that have auto-merge enabled are marked with a green "✓ Auto-merge enabled" label.
2023-05-10 08:32:05 +12:00
Tommy Petty
6d09500936
Fixes #455 - Hide "current branch" for pr status --repo
2023-03-15 16:52:14 -04:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
Ariel Deitcher
577d42280c
surface merge conflicts in pr status ( #5999 )
2022-10-03 09:32:48 +00:00
Mislav Marohnić
04485144ea
pr status: fix detecting PR for curent branch
2022-07-11 13:16:33 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Des Preston
2e07d0f32c
pr status: show number of approvals ( #4240 )
...
If the base branch has no minimum approval requirements, show "N Approved"
reviews. Otherwise, show "N/X Approved".
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-01-21 15:58:15 +00:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Mislav Marohnić
3ac73297eb
Isolate pr status command
2020-07-31 19:07:30 +02:00