Commit graph

3616 commits

Author SHA1 Message Date
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
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
Nate Smith
c49c7f4de2
Merge pull request #3575 from g14a/feature/action-headers
add column headers and age column in listing runs
2021-05-21 15:41:16 -05:00
Mislav Marohnić
09a92c6e1d
Merge pull request #3688 from cli/pr-merge-fix
Fix `pr merge` with GHE < 3.0
2021-05-21 19:30:32 +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
Gowtham Munukutla
9c614247a6 lint fix 2021-05-21 09:36:23 +05:30
Gowtham Munukutla
605f785c70 use fuzzy abbr to display age 2021-05-21 09:33:55 +05:30
Dan Greene
ca04e21921
Merge pull request #3681 from dgreene1/trunk
Describes usage in Github Actions
2021-05-20 20:03:44 +02:00
Nate Smith
4842b69b6b
Merge pull request #3672 from cli/deb-doc
simplify deb installation docs
2021-05-20 09:50:36 -07:00
vilmibm
3e21da9167 just use stable 2021-05-20 11:44:50 -05:00
Mislav Marohnić
48f114dae4
Merge pull request #3668 from tklauser/uniseg-bump
Bump github.com/rivo/uniseg to v0.2.0
2021-05-20 13:40:57 +02:00
Gowtham Munukutla
bc4be19319 lint repair 2021-05-20 12:28:26 +05:30
Gowtham Munukutla
31854f0b25 add extra age column and repair tests 2021-05-20 12:24:47 +05:30
Gowtham Munukutla
6b0a07f22e Merge branch 'trunk' of https://github.com/cli/cli into feature/action-headers 2021-05-20 10:59:14 +05:30
vilmibm
2d704ba591 bonus: support sid 2021-05-19 16:51:58 -05:00
vilmibm
320ab8ad31 restore header, use an emoji 2021-05-19 16:20:01 -05:00
Tobias Klauser
7ed4204dfc Bump github.com/rivo/uniseg to v0.2.0
Changes: https://github.com/rivo/uniseg/compare/v0.1.0...v0.2.0

This speed up and reduces the memory footprint of `uniseg.NewGraphemes`,
used in `pkg/text`.
2021-05-19 19:14:56 +02:00
vilmibm
6c5b690bbe simplify deb installation docs 2021-05-19 12:13:29 -05:00
Mislav Marohnić
6aedba38c4
Merge pull request #3666 from cli/fix-windows-config
Fix creating Windows directory for gh config
2021-05-19 17:18:18 +02:00
Mislav Marohnić
e0e25c82ff Fix creating Windows directory for gh config 2021-05-19 17:13:12 +02:00
Mislav Marohnić
dee89a1b6a
Merge pull request #3663 from cli/cross-repo-pr-checkout
Fix `pr checkout` for cross-repository pull requests
2021-05-19 13:35:57 +02:00
Mislav Marohnić
79896ed513 Fix pr checkout for cross-repository pull requests 2021-05-19 13:18:04 +02:00
Mislav Marohnić
001e92e3e6
Merge pull request #3656 from cli/release-json-export
Add `release view --json` export support
2021-05-18 19:54:44 +02:00
Mislav Marohnić
c667a0bc49 Fix fetching draft releases from GitHub Actions
When using GITHUB_TOKEN in Actions, the permissions on a repository are
null and therefore we can't check whether the viewer has push access or
not. The solution is to unconditionally check for draft releases instead
of trying to be smart about it. Draft releases are going to be on top,
so we don't have to paginate through all releases in a repository.
2021-05-18 19:44:29 +02:00
Mislav Marohnić
4425365004 Add release view --json support 2021-05-18 19:40:28 +02:00
Mislav Marohnić
f30afce5da
Merge pull request #3547 from cli/pr-lookup-refactor
Eliminate API overfetching in `pr` commands
2021-05-18 18:55:00 +02:00
Mislav Marohnić
1440fd81a1 Fix broken GraphQL queries due to editing Author struct 2021-05-18 18:35:34 +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ć
068ad31c14
Add support for new Ubuntu, Kali linux (#3645)
Co-authored-by: vilmibm <vilmibm@neongrid.space>
2021-05-18 08:11:47 +02:00
Mislav Marohnić
bc3bb97c43 Merge remote-tracking branch 'origin' into pr-lookup-refactor 2021-05-17 17:41:38 +02:00
Mislav Marohnić
29908d70eb
Merge pull request #3648 from cli/docs-links
Fix some docs formatting for the web
2021-05-17 17:20:39 +02:00
Mislav Marohnić
42d2da812c Preserve list fomatting in web docs for gh actions 2021-05-17 17:01:33 +02:00
Mislav Marohnić
eb35a3457c Make sure docs URLs are linked in web docs 2021-05-17 17:00:25 +02:00
Mislav Marohnić
4b0b422eb5
Add --json export functionality to repo commands (#3627) 2021-05-17 16:53:20 +02:00
Mislav Marohnić
3f3d4e38d4 Avoid crash when --json doesn't request nameWithOwner 2021-05-17 16:43:39 +02:00
Mislav Marohnić
a2307e357d Add repo list --json support 2021-05-17 16:32:01 +02:00
Mislav Marohnić
adbfb6e8de
Merge pull request #3638 from cli/release-discussion
Create a Release Discussion on every new release
2021-05-17 15:37:39 +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ć
f2456f4820
Merge pull request #3628 from cli/json-flag-completion
Add shell completion for valid `--json` flag values
2021-05-17 12:47:54 +02:00
Mislav Marohnić
26b987aaf5
Merge pull request #3626 from cli/json-color-gray
Fix "null" display in colored JSON output
2021-05-17 12:43:55 +02:00
Mislav Marohnić
b09c1f7a6f Add shell completion for the --json flag 2021-05-12 17:35:17 +02:00
Mislav Marohnić
df2ae17b54 Bump Cobra to v1.1.3 2021-05-12 17:35:02 +02:00
Mislav Marohnić
02a2ed2f73 Add repo view --json export functionality 2021-05-12 17:05:15 +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ć
fddc888a69 Fix "null" display in colored JSON output
"null" was previously rendered in "bright black", an ANSI color that is
not guaranteed to be visible at all depending on the terminal. Switch
the color to cyan to ensure that "null" is visible.
2021-05-12 16:56:52 +02:00
Mislav Marohnić
02b7a71783
Add project layout documentation (#3587) 2021-05-11 21:21:57 +02:00