github-changelog-generator icon indicating copy to clipboard operation
github-changelog-generator copied to clipboard

Support Gitlab (and other github-like backends)

Open victornoel opened this issue 9 years ago • 9 comments

Hi,

How hard would it be to have a pluggable backend to switch from github to gitlab if desired? I guess most of the logic behind github-changelog-generator is not github specific but solely relies on the fact that there is issues, PR, tags on them and so on. Gogs could be another candidate for that.

I would like to help, but I'm not very familiar with Ruby so I really couldn't handle the refactoring needed to have this pluggable architecture I think…

See also https://gitlab.com/gitlab-org/gitlab-ce/issues/15345 for the need, already expressed at gitlab (without so much news for some time).

victornoel avatar Sep 26 '16 14:09 victornoel

Related with #416

skywinder avatar Oct 05 '16 13:10 skywinder

I'll follow this issue and #416 because it would be a great improvement to this project.

I suggest also another idea, I also tried this tool, it serves the same purpose as yours but it uses a different approach to generate changelog entries.

If a generic concept of entry provider is added to this tool to abstract the differences between Github/Gitlab/Bitbucket it would be great to also have a sort of LocalEntryProvider class that parse changelog entries directly from git log using the regexp approach, i.e. something like

  • fix: Some issue fixed => to bugfix section
  • merge: Some issue fixed => to merged branches section

and so on. What do you think?

fabn avatar Jan 11 '17 00:01 fabn

This issue has not been touched for quite some time. Is this being worked on?

If not, would it be possible to add some detail as to what needs changing? Any helpful pointers to relevant sections in the code could speed up things.

EDIT: Is it "as simple" as adding a new fetcher?

kreczko avatar Jul 12 '17 06:07 kreczko

This feature is ready in #657 Looks great. I want to double-check this code and then merge it.

In case if you don't want to wait: I made separate repo to test GitLab things: https://github.com/github-changelog-generator/gitlab-changelog-generator

I can add you as owners there, so we can even make a separate gem for GitLab for now.

p.s. hmm. looks that we have to rename this project after this merge 😉 ***-changelog-generator

skywinder avatar Feb 22 '20 11:02 skywinder

@skywinder an alternative to renaming the project would be to extract the common code in a changelog-generator project and have both the github and gitlab one depend on it?

victornoel avatar Feb 23 '20 09:02 victornoel

Exactly. that's what I'm going to do soon.

skywinder avatar Feb 23 '20 10:02 skywinder

What is the status of this?

martijnsenden avatar Dec 01 '20 07:12 martijnsenden

@martijnsenden hi, it's a frozen. 🥶 but the good news, that this feature is already implemented. ✅ 🙌 I need help with supporting this project.

skywinder avatar Dec 31 '20 09:12 skywinder