chemotaxis
11fde2ee29
Restructured switch statement
...
As much as I like keeping statements as flat as possible, this
not-as-flat revision just seems easier to read.
2022-04-29 00:23:36 -04:00
chemotaxis
3723ab9230
Polished things
2022-04-29 00:23:36 -04:00
chemotaxis
c429726b53
Polished error message
2022-04-29 00:23:36 -04:00
chemotaxis
e0573fa68d
Use if/else if on error checking
...
Use switch statements for regular branching code.
2022-04-29 00:23:36 -04:00
chemotaxis
fc1b929a81
Remove opts.PadlockState
...
I noticed that PadlockState didn't really have anything to do with the
LockOptions and it was easy to call an incorrect locking function that
didn't match the PadlockState.
Now, you pass in the state as an argument and you simply call the
appropriate function instead of setting PadlockState and then calling
the correct function.
- Other touch ups and refactoring
2022-04-29 00:23:36 -04:00
chemotaxis
8918cf6815
Skip unlock api call if already unlocked
2022-04-29 00:23:36 -04:00
chemotaxis
7504f5ec00
Remove opts.PadlockState
...
Rather than saving the intended lock state and calling a method
depending on the lock state, just call the method directly. By the time
you need to the padlock state, you already know which method to use; no
need to first change the lock state than call the method.
Also, refactored print/error messages that are conditional.
2022-04-29 00:19:28 -04:00
chemotaxis
32f8283c77
Refactor things
...
- Switch to underscores
- Revise error message
2022-04-29 00:17:53 -04:00
chemotaxis
e019ff9f02
Modify documentation if called from issue or pr
2022-04-28 23:56:13 -04:00
chemotaxis
364dd38bc0
Get graphql queries and mutations working
...
- Fix error if found an issue while using `gh pr lock/unlock` or vice versa
- Added additional types
- Used githubv4 types
- Added "relock" state
- If the conversation is already locked you have two choices: try to
lock it again or do nothing. Do nothing is easy. But, if you
want to change the lock reason, you need to first unlock the
conversation and then lock it again.
- Added survey to confirm if you want to relock
- Added formatted print statements
2022-04-28 23:54:22 -04:00
Caleb Brose
55bce59ab7
Add command to open codespaces in JupyterLab
...
Add command to open codespaces in JupyterLab
2022-04-28 16:11:14 -05:00
JP Ungaretti
3526d25a1e
Remove mention of function
2022-04-28 20:55:43 +00:00
JP Ungaretti
8aa132e6c6
Use named return values
2022-04-28 18:42:05 +00:00
JP Ungaretti
ceba2c896b
Use safeClose instead of Close
2022-04-28 18:38:46 +00:00
JP Ungaretti
6ddd3360d8
Update auth error message
2022-04-28 18:10:14 +00:00
Heath Stewart
5ed83e2b2a
Remove Stringer from ghrepo.Interface ( #5536 )
2022-04-28 08:58:34 +02:00
ffalor
7d0a7f98e1
Add progress indicator to gist create ( #5526 )
2022-04-27 08:17:17 +00:00
Heath Stewart
171baca07d
Clarify label edit --name switch ( #5525 )
...
Follow-up from #5519
2022-04-27 09:37:28 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Heath Stewart
6edb4ecdbb
Add label edit command ( #5519 )
2022-04-26 09:43:07 +00:00
Sam Coe
db85b1d3cb
Properly handle issue and pr state options when building search queries ( #5513 )
2022-04-25 20:18:58 +02:00
Heath Stewart
19a852ae9f
Add label clone command ( #5452 )
2022-04-25 18:13:22 +00:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found ( #5479 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00
Ariel Deitcher
c50786ed39
refactor merge command
2022-04-25 09:30:04 -07:00
Mislav Marohnić
0bc8aae45f
Avoid crash when deleting gist with no owner
...
This removes the explicit check for the gist owner, speeding up the gist
deletion due to fewer API requests, but resulting in a more vague error
message in case the gist is "not found".
2022-04-25 13:24:19 +02:00
JP Ungaretti
fce69a5350
Add context to errors
2022-04-21 15:03:07 -07:00
JP Ungaretti
f21faca03e
Resolve feedback
2022-04-21 14:56:55 -07:00
JP Ungaretti
3216d1bb3a
Remove function return
2022-04-21 14:29:30 -07:00
Jeff Hubbard
7678274464
Merge pull request #5076 from cli/multi-devcontainer
...
Multi devcontainer
2022-04-20 12:06:23 -07:00
Jeff Hubbard
2b57084bd0
PR feedback
2022-04-20 11:52:32 -07:00
Sam Coe
c99c47f34d
Fix displayed header for search prs command ( #5488 )
2022-04-20 12:06:45 +02:00
Roshan Padaki
25a55948cf
add ls alias to gh repo list ( #5480 )
2022-04-19 16:14:22 +02:00
JP Ungaretti
4452f37819
Clarify session helper
2022-04-14 17:10:11 -05:00
JP Ungaretti
322fae53b1
Clean up more errors
2022-04-14 16:14:29 -05:00
JP Ungaretti
e8e9b58670
Clean up errors
2022-04-14 16:12:44 -05:00
JP Ungaretti
eaf8f84baf
Merge branch 'trunk' into add-cs-jupyter
2022-04-14 15:27:40 -05:00
JP Ungaretti
ee1625add2
Fix -c option
2022-04-14 15:26:06 -05:00
JP Ungaretti
9874d57d62
Print JupyterLab URL
2022-04-14 14:55:40 -05:00
JP Ungaretti
33a1b95dbf
Fix name of RPC service
2022-04-14 14:55:29 -05:00
JP Ungaretti
9fd5923b9b
Clean up Jupyter code
2022-04-14 14:40:42 -05:00
Ariel Deitcher
c445529719
warn if PR is already merged ( #5463 )
2022-04-14 07:47:04 +00:00
Heath Stewart
1b7d03fa8a
Allow forcibly creating labels ( #5451 )
2022-04-14 07:26:05 +00:00
Heath Stewart
fc8739cf97
Add column for listing the label color ( #5462 )
...
Fixes #5448
2022-04-14 08:51:37 +02:00
Luke Karrys
c847e935f1
pr create --body-file can read from stdin (#5461 )
2022-04-14 06:32:26 +00:00
Mislav Marohnić
ae0b93575e
Add support for installing binary extensions on M1 Macs
...
If the extension publishes an amd64 binary and Rosetta is available,
use that binary as it will most likely work.
If the extension publishes an arm64 binary, make sure to codesign it
after downloading so that the OS allows its execution.
2022-04-13 20:01:18 +02:00
Johannes Plunien
186e5ccfb2
Add release edit command ( #5422 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-13 14:51:49 +00:00
Kiran Adhikari
4f7c88ea4e
pr merge: print instructions for merge conflicts ( #5330 )
...
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-13 10:28:05 +00:00
Roshan Padaki
8f046e0b77
gh extensions list: Don't error if no extensions installed (#5445 )
2022-04-13 07:31:24 +00:00
Jeff Hubbard
9fb6cf5423
Fix tests
2022-04-12 10:26:08 -07:00
Sam Coe
2c0236d096
Add extension upgrade --dry-run ( #5098 )
2022-04-12 07:18:08 +00:00