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

Support for repos hosted on gitlab #3

Open
gigabo opened this issue May 26, 2016 · 8 comments
Open

Support for repos hosted on gitlab #3

gigabo opened this issue May 26, 2016 · 8 comments

Comments

@gigabo
Copy link
Contributor

gigabo commented May 26, 2016

Not all projects are hosted on GitHub. A good second host might be gitlab.

@alextreppass
Copy link

+1 for this - would be great to have the creds and operations abstracted

@chengjianhua
Copy link

Is there a clear road map to achieve this target ?

It's awesome ~ I'm looking forward to the implementation of this. When you want to do this, I'm happy to do some little efforts to help it. 😀

@evocateur
Copy link
Member

PRs welcome.

@xxholly32
Copy link

@evocateur hi, i found some different between github and gitlab

code line

export function listCommits(from: string, to: string = ""): CommitListItem[] {
  // Prints "<short-hash>;<ref-name>;<summary>;<date>"
  // This format is used in `getCommitInfos` for easily analize the commit.
  return execa
    .sync("git", ["log", "--oneline", "--pretty=%h;%D;%s;%cd", "--date=short", `${from}..${to}`])
    .stdout.split("\n")
    .filter(Boolean)
    .map((commit: string) => {
// commit:
// github : 5279caa;;Merge pull request #3 from xx-helloworld/dev;2019-04-22
// gitlab: 73ba6ec;;Merge branch 'dev' into 'master';2019-04-28
// i cant get number #3 at gitlab
      const parts = commit.split(";");
      const sha = parts[0];
      const refName = parts[1];
      const summary = parts[2];
      const date = parts[3];
      return { sha, refName, summary, date };
    });
}

use gitlab api i cant get gitlab merge_request(pull) number. so help me 🙀 !

my pr repo and gitlab test demo

thank you and forgive my broken english

@evocateur
Copy link
Member

@xxholly32 I am not the active maintainer of lerna-changelog, please open a new issue with a link back to this issue.

@BridgeAR
Copy link

Would it not be possible to generate the changelog without remote access? I'd expect that it should be possible to go through the local commits to gather the necessary data.

@immanuelfodor
Copy link

Huge +1 for GitLab support

@1o1w1
Copy link

1o1w1 commented Nov 14, 2021

+1

mansona added a commit to mansona/lerna-changelog that referenced this issue Dec 3, 2023
running npm init release-plan-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants