github-tools/grunt-github-release-notes

Name: grunt-github-release-notes

Owner: Tools for GitHub

Description: Grunt module to publish release notes based on commits between the last two tags.

Created: 2015-11-13 21:26:37.0

Updated: 2017-11-25 09:55:01.0

Pushed: 2017-05-23 14:44:19.0

Homepage: null

Size: 15

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Grunt Github Release Notes

npm version

Grunt module to publish release notes based on commits between two tags. This module is using github-release-notes.

Getting Started

This plugin requires Grunt ~0.4.5 and github-release-notes ^0.5.0

install grunt-github-release-notes --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

t.loadNpmTasks('grunt-github-release-notes');
The “release” task

Before you can use it, you need to set up a couple of things.

Github Informations

gren by default looks for your local git configuration to get the repo informations. This means you can run the command directly from the git repo folder.

Otherwise, you can run it from wherever and specify a different repo as target, with:

ons: {
username: USERNAME,
repo: REPO_NAME

Token

To work, gren needs a github token (that can be easily generated following this link). You only need “repo” scope.

Once generated, you can run the gren command with the token as variable:

ons: {
token: YOUR_TOKEN_HERE

Or you can add it to your ~/.bash_profile or ~/.zshrc) as follows:

rt GREN_GITHUB_TOKEN=your_token_here
Options

The options are the same as github-release-notes, in camelCase:

Example

The module accepts two targets: release and changelog.

The release task will generate the last release, while the changelog will add the release notes to the changelog (without committing the file);

: {
release: {
    options: {
        prefix: 'v'
    }
},
changelog: {
    options: {
        changelogFilename: 'CHANGELOG.md'
    }
}


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.