question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preset: read version from file

See original GitHub issue

Hello, I have found out about gitmoji-changelog at https://dev.to/yvonnickfrin/gitmoji-changelog-v2-is-out-51hb and really like the idea

I would like to use it for my project https://github.com/jmfayard/gradle-dependencies-plugins

To make it easy to setup the CI, my versions are in a simple file text

$ cat refreshVersions/plugins_version.txt
0.8.6
$ cat dependencies/plugins_version.txt
0.5.1

(that would be two changelogs, which is fine)

Not terribly complicated. The thing is that my javascript skills are closed to undefined so I would be really grateful if someone can write the corresponding preset for me

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
frinyvonnickcommented, Jan 2, 2020

Ok so you want a sort of standalone preset that works regardless of the technology. Actually gitmoji-changelog use the .git folder to get commits so it doesn’t take in account the current folder to filter commits. It is not monorepo friendly which is silly since gitmoji-changelog is a monorepo 😂

We have two issues here:

  • Create a generic preset
  • gitmoji-changelog should filter commits if the current path is not project root

Thank you for your answers!

0reactions
frinyvonnickcommented, Jan 5, 2020

@jmfayard I created a generic preset. You can test it with the canary version.

Here is how to use the generic preset:

  1. Create a file .gitmoji-changelogrc at the project root with the following content
{
  "project": {
    "name": "gradle-dependencies-plugins",
    "description": "Gradle dependencies with IDE integration and lookup for available updates",
    "version": "0.8.3"
  }
}
  1. Call gitmoji-changelog with the preset option set to generic
npx gitmoji-changelog@canary --preset generic

Hope it will help!

I’ll publish it as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

preset Reference
If the number is 0 or -1, the data in the file will be read into the number of presets contained in the...
Read more >
presets 'include': Cannot get current directory in an ...
The example preset file in uses CMake 3.21 with version 4 (see !7028 (merged)); There is no example for include (see !7028 (merged));...
Read more >
Use presets in Photoshop
To load presets with the Preset Manager, do one of the following: Click Load... select the preset file you want to add, and...
Read more >
Configure and build with CMake Presets in Visual Studio
Reference for using CMake Presets to configure and build CMake ... Both files are supported in Visual Studio 2019 version 16.10 or later....
Read more >
cmake-presets(7) — CMake 3.25.1 Documentation
It is allowed in preset files specifying version 3 or above. binaryDir. An optional string representing the path to the output binary directory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found