Code Monkey home page Code Monkey logo

Comments (7)

stephencelis avatar stephencelis commented on July 30, 2024

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.

nijikokun avatar nijikokun commented on July 30, 2024

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.

stephencelis avatar stephencelis commented on July 30, 2024

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.

nijikokun avatar nijikokun commented on July 30, 2024

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.

stephencelis avatar stephencelis commented on July 30, 2024

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.

nijikokun avatar nijikokun commented on July 30, 2024

It would be sweet if you allowed issues -> pull request ;P

from ghi.

stephencelis avatar stephencelis commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.