Comments (7)
Sorry, closed by butterfingers.
Could you please provide more context? What is the exact command you're issuing (obscure your password, of course) and the output you're seeing?
from ghi.
ghi config --auth nijikokun:passwordhere
- putting useful stuff into bashrc, rebashing-
ghi open "title" -m "body" -L label
Verification Failed.
I would just like to note that the version 2 api is being phased out in the coming week: https://github.com/blog/1090-github-api-moving-on
from ghi.
The new version (in master, installed via curl) uses APIv3.
It sounds like ghi config --auth
returned instructions, correct? And you copied export GHI_TOKEN="generatedtokenhere"
into your bashrc?
When you reload your shell, does echo $GHI_TOKEN
return your token?
from ghi.
Returns the correct token back, the repository I am creating an issue on is private does that matter?
Apparently, using 1.0.2 as a label was causing the issue, removed it and it worked correctly.
from ghi.
Label 1.0.2 should work fine if the label already exists. The Validation Failed
message was most likely due to that label not existing. I currently have a -v
option you can pass to ghi to show the request/response lifecycle:
$ ghi -v open "title" -m "body" -L 1.0.2
===> POST /repos/stephencelis/ghi-playground/issues {"labels":["1.0.2"],"body":null,"title":"title"}
<=== 422: {"message":"Validation Failed","errors":[{"code":"missing","value":["1.0.2"],"field":"name","resource":"Label"}]}
The problem with auto-creating labels is that if you make a typo, there's cleanup to do. I'll add better error messaging, instead.
You also bring up a good issue where a root-level title will overwrite a title passed to -m
. I'll come up with a better behavior for this, too.
from ghi.
It would be sweet if you allowed issues -> pull request ;P
from ghi.
FYI, the latest version improves error messaging for opening issues. There are other areas where error messaging needs to improve, though.
from ghi.
Related Issues (20)
- [FEATURE-REQUEST] Use github issue templates.
- stty: 'standard input': unable to perform all requested operations
- Storing password in keychain conflicts with other tools (security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.) HOT 2
- error: For 'properties/issue', "517" is not an integer. HOT 2
- Ghi fails to operate correctly on windows 10 powershell HOT 1
- v HOT 1
- clyne/playground HOT 1
- Tag can't highlight correctly in terminal when it has `-`
- System cannot find the file specified. HOT 1
- not able to edit a comment
- ghi can't show issues(EOFerror) HOT 3
- Verbose issue listing doesn't show repository names
- Opened this issue 59 minutes from now
- Simple option to disable any ansi and just pipe plain text to stdout.
- warning: URI.escape is obsolete HOT 6
- When not in git directory: "fatal: --local can only be used inside a git repository" HOT 1
- [GitHub] Deprecation Notice: Removal of the Authorizations API endpoint on November 13, 2020 HOT 1
- Add "what if I have my .gitconfig in version control" to FAQ
- Not found username HOT 2
- Update to Ruby 3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghi.