Giter Club home page Giter Club logo

Comments (10)

pataar avatar pataar commented on September 8, 2024 2

Hi, try to set these variables in the job to make a full clone:

  variables:
    GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
    GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs]

(Similar to fetch-depth: 0)

Also I'm using -w . in addition to -r .. Perhaps the combination of those two solves your issue.

from git-cliff.

alteregoart avatar alteregoart commented on September 8, 2024 2

It works !!!

That's so good !

I am wondering why my example is running then :/

from git-cliff.

orhun avatar orhun commented on September 8, 2024

Are you sure you have the full commit history in the current path that you're trying to run git-cliff?

I had a similar issue with GitHub actions where actions/checkout was only fetching the latest commit thus makes the git-cliff create an empty changelog. For the record, here is how you solve it:

- uses: actions/checkout@v2
  with:
    fetch-depth: 0

Maybe GitLab has something similar?

from git-cliff.

orhun avatar orhun commented on September 8, 2024

I see you created #24, does that mean you have solved this issue?

from git-cliff.

alteregoart avatar alteregoart commented on September 8, 2024

Unfortunately, I still have the issue 😞

I think I have the full history, I tried on another job and had the following:
Capture d’écran de 2021-10-18 21-40-34
)

I have no idea how to debug this. Do you have any idea ?

from git-cliff.

orhun avatar orhun commented on September 8, 2024

I actually tried the first workflow you posted and it worked for me.

Are you using the default cliff.toml file? If it is customized, maybe that's causing the changelog to be empty.

from git-cliff.

alteregoart avatar alteregoart commented on September 8, 2024

Yep i know it worked I use it on another repository without any issue but on this one.

Yes i am using the default cliff.toml file. On my machine everything is working fine but on the CI it is not working :/

from git-cliff.

orhun avatar orhun commented on September 8, 2024

Is this a public repository? I want to take a look.

from git-cliff.

alteregoart avatar alteregoart commented on September 8, 2024

This is a private repo πŸ˜₯
I could give you access to it either way

from git-cliff.

alteregoart avatar alteregoart commented on September 8, 2024

I have updated the PR accordingly

from git-cliff.

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.