mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
chore(changelog): add git-changelog config and sample CHANGELOG.md
This is the setup for the Grunt task that generates a changelog. Note that it currently generates the changelog for the range changelog-start..HEAD where changelog-start is a tag. It will always use the most recent tag it can find. We may want to change this behavior. Also, the original repo has some bugs, so I'm using my fork until he accepts my PRs. Migration notes: To run: `grunt git_changelog`
This commit is contained in:
19
Gruntfile.js
19
Gruntfile.js
@@ -4,6 +4,24 @@ module.exports = function(grunt) {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
git_changelog: {
|
||||
minimal: {
|
||||
options: {
|
||||
repo_url: 'https://github.com/habitrpg/habitrpg',
|
||||
appName : 'HabitRPG',
|
||||
branch_name: 'develop'
|
||||
}
|
||||
},
|
||||
extended: {
|
||||
options: {
|
||||
file: 'EXTENDEDCHANGELOG.md',
|
||||
repo_url: 'https://github.com/habitrpg/habitrpg',
|
||||
appName : 'HabitRPG',
|
||||
branch_name: 'develop',
|
||||
grep_commits: '^fix|^feat|^docs|^refactor|^chore|BREAKING'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
karma: {
|
||||
unit: {
|
||||
@@ -124,5 +142,6 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-hashres');
|
||||
grunt.loadNpmTasks('grunt-karma');
|
||||
grunt.loadNpmTasks('git-changelog');
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user