Mislav Marohnić
07e6d60c80
Merge pull request #2991 from cli/repo-create-prompt-change
...
Repo create tweaks
2021-03-02 15:14:16 +01:00
Mislav Marohnić
f93674bc76
Merge pull request #3059 from fossdd/patch-1
...
Add information about AUR
2021-03-02 15:06:53 +01:00
Mislav Marohnić
331bf50076
Tweak language
2021-03-02 15:05:16 +01:00
Mislav Marohnić
50c49df41a
Merge pull request #3010 from cli/api-cache
...
Add `api --cache` flag
2021-03-02 12:47:03 +01:00
Nate Smith
953855c1c3
Merge pull request #3008 from ganboonhong/interactive-gist-view
...
Add interactive select in gist view
2021-03-01 16:10:05 -06:00
vilmibm
39718cd5ca
just hide empty descriptions
2021-03-01 16:07:04 -06:00
vilmibm
00e8c07021
Merge remote-tracking branch 'origin/trunk' into interactive-gist-view
2021-03-01 16:05:26 -06:00
vilmibm
e100b15acb
some text tweaks
2021-03-01 16:03:48 -06:00
fossdd
14c4743f8c
Fix markdown link
...
Co-authored-by: Nate Smith <vilmibm@github.com>
2021-03-01 19:01:18 +00:00
Mislav Marohnić
69b9aa3a57
Merge remote-tracking branch 'origin' into api-cache
2021-03-01 16:06:17 +01:00
Mislav Marohnić
162a1b290a
Allow caching HTTP 204 responses
2021-03-01 16:04:34 +01:00
Mislav Marohnić
e32e6406a7
Add test for api --cache behavior
2021-03-01 16:04:19 +01:00
Mislav Marohnić
9e63199a65
Add tests for checking out repository after creating from template
2021-03-01 14:12:56 +01:00
fossdd
a6e9940b81
Add information about AUR
...
The AUR is a community-based location for PKGBUILDs, Arch's Install scripts.
There is a unofficial PKGBUILD for building and installing `gh` from the git repo.
https://aur.archlinux.org/packages/github-cli-git
2021-02-28 12:54:19 +00:00
Mislav Marohnić
00cb921cd5
Merge pull request #2953 from cristiand391/add-repo-list
...
Add `repo list` command
2021-02-27 17:34:32 +01:00
Mislav Marohnić
e27a77fc99
Add ability to filter by archived in repo list
...
Like `--language`, archived filters also use the Search API.
2021-02-27 17:20:06 +01:00
Mislav Marohnić
5da8301d5d
Enable filtering repo list by coding language
2021-02-27 16:52:47 +01:00
Mislav Marohnić
f75144dd1f
Enable pager for repo list output
2021-02-27 15:05:11 +01:00
Mislav Marohnić
da2a732c6a
Merge pull request #2997 from g14a/feature/add-files-to-gist
...
Feature/add files to gist
2021-02-27 14:49:46 +01:00
Mislav Marohnić
2bdffc85e2
Isolate flag processing tests in repo list
2021-02-27 14:39:06 +01:00
Mislav Marohnić
1fa763f514
Avoid having to first query for username in repo list
...
Dynamically construct the GraphQL query by using the `viewer` connection
if the owner isn't set and the `repositoryOwner(login:"...")` connection
if the owner was set.
2021-02-27 14:38:56 +01:00
Mislav Marohnić
4da02614ed
Switch repo list to query via graphql package
...
Also order results by PUSHED_AT instead of UPDATED_AT to match the web
interface.
2021-02-27 13:17:59 +01:00
Mislav Marohnić
8f96e406ac
Improve error handling and avoid writing confirmation to stdout
...
Right now the `gist edit` command doesn't write anything to stdout, so
let's keep it that way until we want to intentionally provide some
feedback in the terminal.
2021-02-27 12:23:18 +01:00
Mislav Marohnić
406d7eee45
💅 cleanup gist edit -a feature
2021-02-27 12:07:35 +01:00
Sam
a49654970c
Merge pull request #3024 from cli/normalize-pr-commands
...
Normalize pr command arguments
2021-02-26 10:31:06 -08:00
Mislav Marohnić
823514022d
Merge pull request #3036 from cli/pr-merge-no-commits
...
Avoid crash in `pr merge` when the pull request has no commits
2021-02-26 13:08:27 +01:00
Mislav Marohnić
492f45422e
Add a note about the style of git tests
2021-02-26 13:07:38 +01:00
Gowtham Munukutla
7fd0634a24
rebase with trunk
2021-02-25 14:47:26 +05:30
boonhong
0833bdc6b4
Merge branch 'trunk' of github.com:cli/cli into interactive-gist-view
2021-02-24 23:32:23 +08:00
Mislav Marohnić
e4ce0d76aa
Merge pull request #3022 from ganboonhong/pr-edit-branch
...
Add `pr edit --base` to change the base branch of a PR
2021-02-24 15:57:50 +01:00
Mislav Marohnić
896f2273e8
Merge pull request #3021 from g14a/bug/gist-deletion
...
Accept only one argument when deleting a gist
2021-02-24 15:37:06 +01:00
Mislav Marohnić
d97e8fe172
Add live tests for some methods in the git package
...
We relied too much on stubs for these methods. These new tests actually
invoke `git` commands in the context of a test repository.
2021-02-24 15:05:56 +01:00
Mislav Marohnić
0f85304e3e
Avoid crash in pr merge when verifying whether a PR had diverged
...
A PR is not guaranteed to have commits, it seems, so add a guard against
assuming that there is always a head commit.
2021-02-24 14:37:29 +01:00
Gowtham Munukutla
66d4307bce
return msg instead of too many arguments
2021-02-24 18:05:11 +05:30
boonhong
5403a37601
Add interactive select in gist view
2021-02-24 18:38:05 +08:00
Gowtham Munukutla
79b77b4273
Merge branch 'trunk' of https://github.com/cli/cli into bug/gist-deletion
2021-02-24 15:54:29 +05:30
Gowtham Munukutla
61eb7eeeab
Add msg in gist delete
2021-02-24 15:53:07 +05:30
Gowtham Munukutla
56ead91702
Add helper function to validate exact args in cmdutil
2021-02-24 15:49:40 +05:30
Gowtham Munukutla
3e5d5a23c0
add fixturefile const in tests
2021-02-24 10:22:56 +05:30
Gowtham Munukutla
d4e14beb57
remove unwanted tests and unwanted functionality
2021-02-24 10:14:31 +05:30
Gowtham Munukutla
8f1c467001
Merge branch 'trunk' of https://github.com/cli/cli into feature/add-files-to-gist
2021-02-24 09:44:19 +05:30
Gowtham Munukutla
a6fa14866b
updating tests WIP
2021-02-24 09:44:11 +05:30
Sam Coe
34da59777b
Revert close and reopen changes
2021-02-23 13:24:48 -08:00
Mislav Marohnić
98df059e84
Merge pull request #3020 from cli/brew-upgrade-notice
...
Avoid upgrade notice for recent release if gh is under Homebrew prefix
2021-02-23 21:04:57 +01:00
Sam Coe
9d062ed8fc
Normalize pr command arguments
2021-02-23 09:17:35 -08:00
boonhong
732e919a83
Add pr edit --base to change the base branch of a PR
2021-02-24 00:15:04 +08:00
Mislav Marohnić
c5af4ddfdc
Merge pull request #3009 from cli/git-credential-env
...
Fix `auth git-credential` when the token comes from environment
2021-02-23 16:32:23 +01:00
Gowtham Munukutla
cbf8a0d964
Accept only one argument when deleting a gist
2021-02-23 20:12:26 +05:30
Gowtham Munukutla
a60a6d854b
Merge branch 'trunk' of https://github.com/cli/cli into feature/add-files-to-gist
2021-02-23 17:13:07 +05:30
Mislav Marohnić
27aea42d8a
Avoid upgrade notice for recent release if gh is under Homebrew prefix
...
Before, when gh detected there was a new release in the `cli/cli` repo,
it would show this notice:
A new release of gh is available: {V1} → {V2}
Additionally, when the release was more than 24h old, we would show this
to Homebrew users:
To upgrade, run: brew update && brew upgrade gh
Ref. feb4acc2c0
This change makes it so that the original notice "A new release of gh is
available" is NOT shown to Homebrew users unless the release is older
than 24h. We effectively hide the fact that any release happened until
we're sure that the version bump has made it to `homebrew-core`.
2021-02-23 12:24:51 +01:00