Commit graph

324 commits

Author SHA1 Message Date
Alex Hicks
57cdfee835 Fix some bugs in repo garden in repositories with few commits 2020-09-25 17:51:59 -04:00
Nate Smith
060ccd1eda
Merge pull request #1781 from cristiand391/fix-gist-id-extraction
Fix gist ID extraction from url
2020-09-22 12:04:04 -05:00
Mislav Marohnić
1e7a7972fb
Merge pull request #1889 from mmontes11/pr-checkout-on-detached-head
Fixed gh pr checkout on detached HEAD
2020-09-22 18:42:38 +02:00
Martín Montes
cacf0157b3 Using ghinstance.OverridableDefault() instead of a harcoded hostname 2020-09-22 18:22:29 +02:00
Martín Montes
793e866850 Using assert.Regexp for testing stderr's content 2020-09-22 17:50:57 +02:00
Martín Montes
81caade918 Access token tip message using hostname 2020-09-22 12:32:37 +02:00
Cristian Dominguez
a7a90b3a4b Move gist URL tests to its own file 2020-09-21 21:35:07 -03:00
Cristian Dominguez
55a8f3d8ca Make gh gist view and edit commands reuse logic for id extraction 2020-09-21 21:28:04 -03:00
Martín Montes
bb1005be51 Fixed gh pr checkout on detached HEAD 2020-09-22 00:25:49 +02:00
Nate Smith
2a9b5de8c0
Merge pull request #1828 from y-yagi/do-not-send-requests-when-unnecessary
Don't send a request when the contents haven't changed
2020-09-21 16:40:41 -05:00
Nate Smith
e3f21a58cc
Merge pull request #1816 from OjasWadhwani/parseEmoji
Emoji parsing in Readme content
2020-09-21 16:35:41 -05:00
Cristian Dominguez
d685d666b2 Set gist ID by default on all tests 2020-09-21 12:11:08 -03:00
Sam Coe
458d5cb42f
Respect interactive repo name input on create 2020-09-21 14:26:15 +02:00
Cristian Dominguez
ef9b75e1f6 Add tests for gist URL check 2020-09-19 18:50:07 -03:00
Cristian Dominguez
2af136cc78 Return error if it's an invalid URL 2020-09-19 18:48:00 -03:00
yuuji.yaginuma
943dcef478 Don't send a request when the contents haven't changed
By doing this, the command will finish faster if the user canceled
the editing.
2020-09-19 15:25:07 +09:00
2017A7PS0125G
cd3e9c44cf gofmted file 2020-09-19 00:59:35 +05:30
2017A7PS0125G
5b413da745 Emoji parsing in Readme content 2020-09-19 00:24:22 +05:30
Nate Smith
3829888a96
Merge pull request #1766 from mmontes11/view-specific-branch-of-repo
Added option to specify branch in gh repo view
2020-09-18 12:41:07 -05:00
yuuji.yaginuma
4f3d0e5f7b Fix short description of gist
The `gist` command allows doing other operations than
`create`(like `edit`, `view`, etc).  So I think that `manage`
is more appropriate to the description.
2020-09-18 14:21:02 +09:00
Cristian Dominguez
0b8c964a41 Fix gist ID extraction from url 2020-09-17 23:48:25 -03:00
Martín Montes
381d1a1cdb Added option to specify branch in gh repo view 2020-09-17 23:28:15 +02:00
Mislav Marohnić
859bf445e7
Merge pull request #1738 from Foxboron/morten/accept-tar
shared/upload: Add .tar format
2020-09-17 19:01:31 +02:00
Morten Linderud
c9b9478b5c
shared/upload: Add .tar format
Currently the mimecap package is an requirement to pass the test suite,
as we need /etc/mime.types to recognize the tar extension. A better idea
is to inline all of the basic test cases for the test suite.

Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-09-17 17:55:25 +02:00
Mislav Marohnić
ae86361c25 Document gh config set pager ... option 2020-09-16 19:11:07 +02:00
Mislav Marohnić
b2e36a0979
Merge pull request #1706 from cli/base-resolve
Improve repository base and head resolution
2020-09-16 18:53:21 +02:00
Nate Smith
bdadb3058b
Merge pull request #1699 from cli/more-gists
bunch of gist stuff
2020-09-16 11:36:54 -05:00
vilmibm
7c986c0454 help typo 2020-09-16 11:23:14 -05:00
vilmibm
2b70e8266a better time stub 2020-09-16 10:57:20 -05:00
Mislav Marohnić
086d8ed29a Merge remote-tracking branch 'origin' into color-env 2020-09-16 16:51:38 +02:00
Mislav Marohnić
fa2513dea6 Document PAGER environment variable 2020-09-16 16:15:57 +02:00
Mislav Marohnić
00ac966c65 Merge remote-tracking branch 'origin' into pager-for-everyone 2020-09-16 15:58:54 +02:00
Mislav Marohnić
f99a55438f Remove issue create examples from pr create 2020-09-16 15:48:13 +02:00
Mislav Marohnić
f9239661f2 Reuse the StubRepoInfoReponse test helper 2020-09-16 15:01:13 +02:00
Mislav Marohnić
7a8db80420 Prompt for push target during pr create
We no longer guess the head repository using heuristics; instead, we
present the user with the choice of pushable repositories and an
additional option to create a new fork.

The new `pr create --head` flag is available for the user to specify the
head branch in `branch` or `owner:branch` format and completely skip any
forking or auto-pushing checks.
2020-09-16 14:49:36 +02:00
vilmibm
0d45dd82f3 finish edit tests 2020-09-15 17:29:54 -05:00
vilmibm
15cf786c5a wip tests 2020-09-15 17:20:36 -05:00
vilmibm
a9ab2a98fc move Edit to opts for testing 2020-09-15 17:04:43 -05:00
vilmibm
62f54f0f02 start on edit tests 2020-09-15 16:18:26 -05:00
vilmibm
ada2c56606 test gist view 2020-09-15 16:05:30 -05:00
vilmibm
4a467864d5 linter appeasement 2020-09-15 15:22:28 -05:00
vilmibm
f124b426fe tweak gist view; support --filename 2020-09-15 14:56:13 -05:00
vilmibm
a61c897e4c show filename if no description 2020-09-15 14:55:55 -05:00
vilmibm
ba5b639be4 finish list tests 2020-09-15 14:33:14 -05:00
Mislav Marohnić
d534a94d1b Change how base repository is resolved
On first run in a git repository, `BaseRepo()` will now prompt the user
which repository should be queried as base repository if there are
multiple git remotes or when we are in the context of a fork.

In non-interactive mode, the prompt is skipped and we default to the
first git remote instead.

After the base repo is resolved, the result is cached in the local
repository using `git config` so that RepositoryNetwork API lookups can
be avoided in the future.
2020-09-15 21:27:12 +02:00
vilmibm
9fd87faadc wip tests 2020-09-15 14:15:44 -05:00
vilmibm
425f707c7d fix tests 2020-09-15 13:36:32 -05:00
vilmibm
0af61ff1ff Merge remote-tracking branch 'origin/trunk' into more-gists 2020-09-15 13:25:06 -05:00
Sam
4933fd9415
Merge pull request #1696 from cli/env-help-topic
Extract environment variables as a separate help topic
2020-09-15 17:21:32 +02:00
Nate Smith
9f486efbc6
hackday: gh repo garden (#1049)
* add gh repo garden

* move file

* oops

* fixes

* fix clearing

* block windows sadly

* broken wip

* fix api thing

* do not add to client

* move helper as it does not work on windows

* hide command

* macos fix

* Update pkg/cmd/repo/garden/garden.go

Co-authored-by: Lee Reilly <lee@github.com>

* default for key input loop

* get redrawing working

* clean up garden update, it all works

* notes

* fix arrow keys and just do wads/arrows/vi

* this function is only called once now

* support ghes

* add a progress indicator

* cap maxCommits

Co-authored-by: Lee Reilly <lee@github.com>
2020-09-15 09:59:27 -05:00