Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab support #3

Open
k0nserv opened this issue Aug 24, 2016 · 12 comments
Open

GitLab support #3

k0nserv opened this issue Aug 24, 2016 · 12 comments

Comments

@k0nserv
Copy link
Member

k0nserv commented Aug 24, 2016

Hi @wojteklu,

now that Danger supports GitLab I'd be interested in your take on supporting GitLab. I am happy to do the work if you think it can be include in the plugin in a nice way.

@wojteklu
Copy link
Collaborator

It would be awesome. I'm not using gitlab, but it should be possible if gitlab offers html with blame information (github: https://github.com/wojteklu/danger-mention/blame/master/lib/version.rb). Then we will use regex to analyze the outputted html.

@k0nserv
Copy link
Member Author

k0nserv commented Aug 24, 2016

Yeah should be possible with any problems :)

@k0nserv
Copy link
Member Author

k0nserv commented Aug 24, 2016

Quick question. Where does branch_for_base come from here https://github.com/k0nserv/danger-mention/blob/master/lib/danger_plugin.rb#L64? I can't find it, is it provided by Danger?

@k0nserv
Copy link
Member Author

k0nserv commented Aug 24, 2016

Found the answer to my own question :)

@jk
Copy link

jk commented Aug 30, 2016

Just to be explicit: branch_for_base is only available when you're building with github. GitLab uses branch_for_merge.

@k0nserv
Copy link
Member Author

k0nserv commented Aug 30, 2016

That seems like a bug? Should they not be the same? cc @orta

@orta
Copy link
Member

orta commented Aug 30, 2016

Same would be better, currently gitlab has less branch_for_x and different named ones ( I think I named them after the git terminology, so it should be fine to apply to both )

http://danger.systems/reference.html

@k0nserv
Copy link
Member Author

k0nserv commented Aug 30, 2016

Yeah that's my bad, I think I based my GitLab work on the GitHub plugin, but maybe I didn't. I'll make a backwards compatible PR that introduces the same names

@orta
Copy link
Member

orta commented Aug 30, 2016

Rockin' 👍

@connorshea
Copy link

Once Danger supports GitLab CI (or rather, GitLab CI supports Danger 😉) we'd love to be able to use this plugin for GitLab CE.

If there's anything we can do to help we'd be more than willing :)

@orta
Copy link
Member

orta commented Feb 10, 2017

This is added in 0.6.0 and shipped just now

screen shot 2017-02-10 at 3 28 51 pm

@orta orta closed this as completed Feb 10, 2017
@orta
Copy link
Member

orta commented Feb 11, 2017

I take this back, as it uses web-page scraping #11 , I don't think the changes I've added are enough for gitlab support

@orta orta reopened this Feb 11, 2017
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

No branches or pull requests

5 participants