tomasbjerre / git-changelog-command-line Goto Github PK
View Code? Open in Web Editor NEWCommand line tool to generate changelog, or releasenotes, from a git repository and a Handlebars template.
License: Apache License 2.0
Command line tool to generate changelog, or releasenotes, from a git repository and a Handlebars template.
License: Apache License 2.0
I want to generate a report of the source code. The report should display the following details. This will be run daily per repository basis.
Commit id,Author ,Comments, Revision number,Filename,Date of commit,Jira-id for that commit
Package version used for build, Package name used for build,Package version used for deployment
Package name used for deployment
stack:stash,Jenkins,Jira,maven,nexus,Linux
Fails when no tags in repo:
Should fallback on 0.0.1
The parameter -ignore-older-than don't work properly due to DEFAULT_DATEFORMAT which is egal to YYYY-MM-dd HH:mm:ss.
This is must be replace by yyyy-MM-dd HH:mm:ss (minor yyyy) in the API project src/main/java/se/bjurr/gitchangelog/api/GitChangelogApiConstants.java
I found no zip (only ArtifactId=git-release-notes has a zip)
Ok, I build for my own with
./gradlew build --stacktrace -i
./build/scripts/git-changelog-command-line -t changelog.mustache -sf changelog.json -of CHANGELOG.md
but it delivers
Error: Could not find or load main class se.bjurr.gitchangelog.main.Main
So I result in two questions:
A: where do I found a running artifact ?
B: (more important) how to build it by my own and run it ?
Dear @tomasbjerre,
First of all, thank you for this fantastic tool.
I am using it to generate the changelog for a package released under the AGPL3+.
However, I want to include the scripts and templates for build and release chores which includes my Mustache template for the CHANGELOG.md
file and I'd like to distribute that template under the GNU All-Permissive License. Since that file is basically just a modified version of your Conventional Commits example, I wanted to double-check with you: Are you fine with me releasing 'my' work derived from your example under that license? Do you want me to still reference/include the Apache 2.0 License in my package? Do you want me to list you as a copyright holder of that file (and thus my package) or do you consider that snippet copyright-free so I can treat it as if I started my template from scratch instead of tweaking your example to suit my needs?
I guess the whole idea is for people to re-use that code but better safe than sorry. ๐
Thank you in advance for any clarification.
Best,
Marcel
Description:
The git-changelog-command-line
project is currently using outdated versions of Jackson libraries:
com.fasterxml.jackson.core:jackson-core:2.5.3
com.fasterxml.jackson.core:jackson-databind:2.5.3
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.5.3
These versions have multiple Critical and High CVEs associated with them, which are flagged during security scans of the Docker image.
Proposed Solution:
Update the Jackson dependencies to the latest version 2.17.1:
com.fasterxml.jackson.core:jackson-core:2.17.1
com.fasterxml.jackson.core:jackson-databind:2.17.1
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.1
The latest versions can be found here.
Benefits:
References:
Thank you for considering this update to improve the security of the project.
It seems that it is not possible to set an issue pattern for gitlab through the commande line.
I know the functionnality is there as I've used it successfuly with the maven plugin.
I'm able to authenticate on a Jenkins pipeline using the git-changelog-plugin this way :
withCredentials([usernamePassword(credentialsId: atlassianCredentialsId, passwordVariable: 'JIRA_PASSWORD', usernameVariable: 'JIRA_USERNAME')]) {
def templateString = readFile(file: templateFile)
def changelogString = gitChangelog(from: [type: 'COMMIT', value: sinceCommit],
jira: [issuePattern: '([A-Z]+-[0-9]+)', server: 'https://my-site.atlassian.net', username: env.JIRA_USERNAME, password: env.JIRA_PASSWORD],
returnType: 'STRING',
template: templateString)
However I'm not able to authenticate with the same server and credentials using docker command line
docker run --mount src="$(pwd)",target=/home/git-changelog-command-line,type=bind tomasbjerre/git-changelog-command-line:2.2.2 \
--from-revision $1 \
-je \
--jira-pattern "([A-Z]+-[0-9]+)" \
--jira-server "https://my-site.atlassian.net" \
--jira-username "jirausername" \
--jira-password "jirapassword" \
-std \
--template-content "$changelog_template"
The resulting changelogs are similar, except I'm not getting the Jira Issue Type, Title and other info using the docker command line.
Any idea of what I might be doing wrong ?
Hello, please where can I download that zip? I am not java developer and I have issues to run it.
https://search.maven.org/search?q=a:git-changelog-command-line
here is not any zip file with bin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.