Giter Site home page Giter Site logo

GitHub enterprise support about github-todos HOT 8 CLOSED

naholyr avatar naholyr commented on July 30, 2024
GitHub enterprise support

from github-todos.

Comments (8)

naholyr avatar naholyr commented on July 30, 2024

I use github module which seems to accept a url configuration param. But I don't provide any way to fill it right now.

I'll push very quickly a change in a new branch so you can test if it fits your need.

from github-todos.

naholyr avatar naholyr commented on July 30, 2024

I tried something in a new branch feature/16-github-url. You can try it with:

npm install -g "naholyr/github-todos#feature/16-github-url"

This version exposes a new option "github.url", in your case you should then

ght config github.host BASE_DOMAIN
ght config github.url /api/v3

Not sure where you should put the slashes or not, I've seen they used a single concatenation in github module instead of path.join() so you may need to customize that too.

I have no Github Enterprise to test so tell me if it suits you before I push it :)

from github-todos.

ianwremmel avatar ianwremmel commented on July 30, 2024

Looks like that worked, thanks!

The leading slash on /api/v3 is required.

from github-todos.

ianwremmel avatar ianwremmel commented on July 30, 2024

I take that back. It looks like I can auth against that url, but I these errors look like it's trying to use the standard API somewhere:

$ github-todos _hook -R 0.4.45..0.4.52

[Github-Todos] Error { [Error: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}]
  message: '{"message":"Not Found","documentation_url":"https://developer.github.com/v3"}',
  code: 404 }
{"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

from github-todos.

naholyr avatar naholyr commented on July 30, 2024

Looks like a future PR for github module ;)

Could you please try again after a new npm i -g "naholyr/github-todos#feature/16-github-url" prepending with DEBUG=* to
enable debug info output (DEBUG=* github-todos _hook …) and tell me what
you get?

from github-todos.

ianwremmel avatar ianwremmel commented on July 30, 2024

Ok, I figured out what's going on here (and I'd like to avoid posting the output because it includes some semi-private data). The problem was actually the value that I had in the repo field in .github-todos.

First, I had tried the name of my remote (e.g. origin) so when that didn't work, I copied the full repository URL. It seems that I just need org/reponame.

from github-todos.

naholyr avatar naholyr commented on July 30, 2024

Yes, yes you do :)
Maybe I should add a validation step in issue service for those cases.

Le jeu. 11 déc. 2014 18:05, Ian Remmel [email protected] a écrit :

Ok, I figured out what's going on here (and I'd like to avoid posting the
output because it includes some semi-private data). The problem was
actually the value that I had in the repo field in .github-todos.

First, I had tried the name of my remote (e.g. origin) so when that didn't
work, I copied the full repository URL. It seems that I just need
org/reponame.


Reply to this email directly or view it on GitHub
#16 (comment).

from github-todos.

naholyr avatar naholyr commented on July 30, 2024

Note: added validateConfig in 2.3.0

from github-todos.

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.