How to use git-semver-tags - 1 common examples

To help you get started, we’ve selected a few git-semver-tags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frinyvonnick / gitmoji-changelog / packages / gitmoji-changelog-core / src / index.spec.js View on Github external
it('should group similar commits', async () => {
    mockGroup([])
    mockGroup([recycleCommit, secondRecycleCommit, lipstickCommit, secondLipstickCommit])

    gitSemverTags.mockImplementation(cb => cb(null, ['v1.0.0']))

    const { changes } = await generateChangelog(TAIL, HEAD, { groupSimilarCommits: true })

    expect(changes[0].groups[0].commits).toEqual([
      secondRecycleCommit,
      {
        ...lipstickCommit,
        siblings: [secondLipstickCommit],
      },
      recycleCommit,
    ])
  })

git-semver-tags

Get all git semver tags of your repository in reverse chronological order.

ISC
Latest version published 7 months ago

Package Health Score

87 / 100
Full package analysis

Popular git-semver-tags functions