Giter Site home page Giter Site logo

GitHub Issues Script about hubot-scripts HOT 8 CLOSED

dannymcc avatar dannymcc commented on June 8, 2024
GitHub Issues Script

from hubot-scripts.

Comments (8)

dannymcc avatar dannymcc commented on June 8, 2024

\cc @assaf

from hubot-scripts.

assaf avatar assaf commented on June 8, 2024

OAuth code, not GitHub API key: http://developer.github.com/v3/oauth/

And you'll need proper scopes: http://developer.github.com/v3/oauth/#scopes

from hubot-scripts.

dannymcc avatar dannymcc commented on June 8, 2024

Is the OAuth code the client ID or secret? Or am I completely confused (likely!) Also, where should I configure the scopes?

from hubot-scripts.

assaf avatar assaf commented on June 8, 2024

You need to go through step one to get a code, then step two to exchange it for a token. Client ID/secret will be used in those two steps, but are separate thing.

You'll need repo scope to access any private repository. I don't know if you need any other scope to access public repositories. You can also just get one access token with all scopes and reuse it for other scripts (what I did).

from hubot-scripts.

dannymcc avatar dannymcc commented on June 8, 2024

Should I be going through these steps on the GitHub OAuth page, or using console or something. I'm completely confused. Feel free to give up on me!

from hubot-scripts.

assaf avatar assaf commented on June 8, 2024

You can get it done using a static HTML page and curl, but it's a very frustrating experience. I asked, maybe Github would build a simple authentication app for Hubot to make it easy.

from hubot-scripts.

atmos avatar atmos commented on June 8, 2024

We have some branches floating around github that make this easier. Closing until we announce it though.

from hubot-scripts.

outright-deploy avatar outright-deploy commented on June 8, 2024

Just for other people that need this, you can create an oauth token without and application from this article: https://github.com/blog/977-access-your-event-timelines-and-oauth-tokens-through-the-api

from hubot-scripts.

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.