GithubHelp home page GithubHelp logo

isabella232 / grunt-github-release-notes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from github-tools/grunt-github-release-notes

0.0 0.0 0.0 15 KB

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

License: MIT License

JavaScript 100.00%

grunt-github-release-notes's Introduction

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

npm 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:

grunt.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:

options: {
    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:

options: {
    token: YOUR_TOKEN_HERE
}

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

export GREN_GITHUB_TOKEN=your_token_here

Options

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

  • tags: 0.1.0|0.2.0,0.1.0 A specific tag or the range of tags to build the release notes from.
  • timeWrap: latest|history The release notes you want to include in the changelog. Default: latest Only applicable to the changelog action
  • changelogFilename: CHANGELOG.md The name of the changelog file. Default: CHANGELOG.md
  • dataSource: issues|commits The informations you want to use to build release notes. Default: issues
  • draft: true|false To set the release as a draft. Default: false
  • prerelease: true|false To set the release as a prerelease. Default: false
  • prefix: v Add a prefix to the tag version e.g. v1.0.1. Default: null
  • includeMessages: merges|commits|all used to filter the messages added to the release notes. Default: commits
  • override: true|false Override the release notes if existing. Default: false

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);

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

grunt-github-release-notes's People

Contributors

alexcanessa avatar dawoudio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.