Commit graph

1102 commits

Author SHA1 Message Date
ttran112
cb3792051a fix minor error and add branchName for addArgs, addCombine 2021-05-26 19:27:07 -07:00
ttran112
3a48c35bc6 fix addArgs and combine by addding branchName parameter 2021-05-26 17:45:42 -07:00
Jessica Sestak
88ce5320f6 made branch and line flags, fixed path 2021-05-25 23:04:42 -07:00
Jessica Sestak
a65266bf36 added combination of args, partial fix to args 2021-05-25 22:47:08 -07:00
ravocean
1e61f41cd9 Tidied up the logic of openInBrowser 2021-05-25 21:42:42 -07:00
Ben
50af6c1658 broke the flag checking into a separate function, and created a http response checker function 2021-05-25 17:54:23 -07:00
bchadwic
24abf29acb created a test file 2021-05-24 21:16:37 -07:00
bchadwic
70e72afdcc cleaned up, added suggestion to 404 handling 2021-05-24 13:06:33 -07:00
bchadwic
fdca340b28 simplified the if block for flags, now allows for checking destination before opening browser 2021-05-24 12:53:17 -07:00
bchadwic
88e2a9f748 cleaned logic and added in a print function that takes in an exitCode 2021-05-24 12:48:32 -07:00
Jessica Sestak
edebfa104b Added errors and started defining the the path for flags and args to open in the browser. 2021-05-23 19:04:38 -07:00
ravocean
b22519309f Fixed the name of projects flag 2021-05-23 16:01:18 -07:00
ravocean
e4b2ec202d We added a few flags based on priority 2021-05-23 15:57:29 -07:00
ravocean
6e7cd6fd05 Added parseArgs() function, beginning to work on parseFlags() functions 2021-05-23 15:31:01 -07:00
Benjamin Chadwick
f66a086a5d
Merge branch 'trunk' into trunk 2021-05-23 12:35:53 -07:00
jlsestak
e4e8b77c7d
Update browse.go 2021-05-23 12:30:27 -07:00
jlsestak
bab7b498ec
Update browse.go 2021-05-23 12:23:33 -07:00
Ben
b8de5c87e1 removed help message for non error operation 2021-05-19 22:45:03 -07:00
Ben
d8c20faa65 added in a help dialogue and error message 2021-05-19 22:14:58 -07:00
Ben
daf27af34a only accepts 1 arg at most 2021-05-19 19:17:14 -07:00
Ben
14a40fb0db added a return statement to avoid a segmentation fault on a null baseRepo, error handling will be improved more later 2021-05-19 13:13:23 -07:00
Ben
697ff425a8 disregard 2021-05-19 13:09:30 -07:00
Ben
097dd25884 redefined how gh browse opens the repo. We now use the BaseRepo to extract the correct paths. This should make it easier to navigate to other directories within the repo using the repoUrl variable created 2021-05-19 12:57:56 -07:00
Ben
d656a9077b cleaned up the code base, opening the web browser is now matching the style of th e repo. We also made a dialogue in our helpful-resources.txt about what we will be doing next. Big things to comegit add . 2021-05-15 21:40:43 -07:00
Ben
68ce66801b We got the browser to open on gh browse, now we're working towards making it specific to the argument passed in. Mini wingit add .! 2021-05-15 21:09:13 -07:00
Ben
e905133068 working towards removing the help message when browse is inputted 2021-05-15 14:47:50 -07:00
Ben
88ef7ce58b removed view, from here on out exclusively working in browse to do most of the logic 2021-05-15 12:08:51 -07:00
bchadwic
602334f58a working on the browse view 2021-05-12 16:02:14 -07:00
bchadwic
c42f6acbde begun a view subcommand of browse 2021-05-12 14:54:18 -07:00
bchadwic
9333d93c2f started creating the new command. Added useful resources 2021-05-12 14:52:01 -07: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ć
70a9621928 💅 cleanup in gist create 2021-05-07 14:15:27 +02:00
Gowtham Munukutla
cc94dc762d shift gist validation to server rather than client 2021-05-07 14:12:00 +02:00
Cristian Dominguez
2f94adabb2
Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00
Mislav Marohnić
25d79c4e16
Merge pull request #3525 from cristiand391/improve-issue-status-detection
Improve issue status detection
2021-05-03 21:04:35 +02:00
Mislav Marohnić
6a57dcfd7d 💅 cleanup placeholder implementation 2021-04-30 14:22:25 +02:00
Robin Neatherway
59b4d5cb7c Support standard path variable replacement syntax
Add support for the following synonyms:

{owner} for :owner
{repo} for :repo
{branch} for :branch
2021-04-30 14:22:25 +02:00
Mislav Marohnić
d478a65254
Merge pull request #3530 from tklauser/x-term
Use golang.org/x/term
2021-04-30 11:57:01 +02:00
nate smith
9f451d9eef review feedback 2021-04-29 16:06:26 -05:00
nate smith
9110db7f7e fill in help topic 2021-04-29 10:58:40 -05:00
nate smith
02e9fa086d start on incorrect function error handling 2021-04-28 13:59:54 -05:00
Nate Smith
d5954e2e94
Merge pull request #3499 from cli/secret-prompt
tweak secret set to allow prompting
2021-04-28 13:28:33 -05:00
Nate Smith
cc7c2f2c9d
Merge pull request #3517 from cli/watch-404
handle 404 for annotations
2021-04-28 13:27:04 -05:00
Tobias Klauser
b586d51778 Use golang.org/x/term
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Use the latter directly.
2021-04-28 18:44:36 +02:00
Cristian Dominguez
6b49e21295 Improve issue status detection 2021-04-28 00:30:21 -03:00
Sasha Gerrand
f70bdcf982
Corrects a typo in pr create docs 2021-04-27 11:57:42 +01:00
vilmibm
00da7f9fc1 handle 404 for annotations 2021-04-26 16:55:08 -05:00
Nate Smith
ac0fe6bf71
Merge pull request #3490 from heaths/issue3487
Optionally read stdin for `gh alias set`
2021-04-26 16:40:07 -05:00
Heath Stewart
aaa5a9e949 Use - to read from stdin instead
Resolves PR feedback.
2021-04-23 17:23:27 -07:00
vilmibm
3e36596269 ability to paste secrets in a prompt 2021-04-23 13:07:20 -05:00