Skip to content

feat: Support self-hosted GitLab instance (#89) - #104

Closed
chris-dura wants to merge 1 commit into
all-contributors:masterfrom
chris-dura:feature/self-host-gitlab
Closed

chris-dura wants to merge 1 commit into
all-contributors:masterfrom
chris-dura:feature/self-host-gitlab

Conversation

@chris-dura

@chris-dura chris-dura commented Jul 30, 2018 •

Copy link
Copy Markdown
Contributor

What: Allow user to input a private token to authenticate with the GitLab API

Why: Self-hosted GitLab instances require authentication via a private token to use the API

How: Prompt the user for their private token, and append the private token as another param to the GitLab APIs

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

This is basically the same as the original PR (#95 ) by @xuchaoying. But, for some reason, I couldn't figure out how to update their PR with changes to fix the conflicts, it's probably some trivial thing, but I'm not GitHub ninja, and it wouldn't let me open a PR against @xuchaoying's branch or anything.

The original author has gone silent, so I just replicated the work in my own fork to try and get this merged in... if there's a more appropriate way to do this, let me know!

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #104 into master will increase coverage by 0.28%.
The diff coverage is 90.9%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #104      +/-   ##
==========================================
+ Coverage   57.83%   58.12%   +0.28%     
==========================================
  Files          19       19              
  Lines         434      437       +3     
  Branches       73       78       +5     
==========================================
+ Hits          251      254       +3     
  Misses        152      152              
  Partials       31       31
Impacted Files Coverage Δ
src/cli.js 0% <ø> (ø) ⬆️
src/init/prompt.js 0% <0%> (ø) ⬆️
src/repo/index.js 84.21% <100%> (ø) ⬆️
src/repo/gitlab.js 44.44% <100%> (+5.05%) ⬆️
src/contributors/add.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2ce3be...c4c9d7b. Read the comment docs.

@chris-dura

Copy link
Copy Markdown
Contributor Author

#95 is alive again

@chris-dura chris-dura closed this Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants