diff --git a/.all-contributorsrc b/.all-contributorsrc
new file mode 100644
index 00000000..57029ebd
--- /dev/null
+++ b/.all-contributorsrc
@@ -0,0 +1,207 @@
+{
+ "files": [
+ "README.md"
+ ],
+ "imageSize": 100,
+ "commit": false,
+ "contributors": [
+ {
+ "login": "wellDan28",
+ "name": "Dan Klausner",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/2083539?v=4",
+ "profile": "https://github.com/wellDan28",
+ "contributions": [
+ "bug",
+ "code"
+ ]
+ },
+ {
+ "login": "datitisev",
+ "name": "David Sevilla MartΓn",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/6401250?v=4",
+ "profile": "https://datitisev.me",
+ "contributions": [
+ "doc"
+ ]
+ },
+ {
+ "login": "phun-ky",
+ "name": "Alexander Vassbotn RΓΈyne-Helgesen",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/1714029?v=4",
+ "profile": "http://phun-ky.net",
+ "contributions": [
+ "bug",
+ "code"
+ ]
+ },
+ {
+ "login": "joaquin-corchero",
+ "name": "Joaquin Corchero",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/6892214?v=4",
+ "profile": "https://github.com/joaquin-corchero",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "durera",
+ "name": "David Parker",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/4400618?v=4",
+ "profile": "https://github.com/durera",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "mariotacke",
+ "name": "Mario Tacke",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/4942019?v=4",
+ "profile": "https://www.mariotacke.io",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "kyeah",
+ "name": "Kevin Yeh",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/2308368?v=4",
+ "profile": "http://kyeh.me",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "jackocnr",
+ "name": "Jack O'Connor",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/1186883?v=4",
+ "profile": "https://jackocnr.com",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "kstolte",
+ "name": "Keith Stolte",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/20091146?v=4",
+ "profile": "https://keithstolte.io",
+ "contributions": [
+ "doc",
+ "design"
+ ]
+ },
+ {
+ "login": "david-poindexter",
+ "name": "David Poindexter",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/4568451?v=4",
+ "profile": "http://www.nvisionative.com",
+ "contributions": [
+ "doc"
+ ]
+ },
+ {
+ "login": "fthomas",
+ "name": "Frank S. Thomas",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/141252?v=4",
+ "profile": "https://github.com/fthomas",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "pawk",
+ "name": "pawk",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/27773225?v=4",
+ "profile": "https://github.com/pawk",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "Atry",
+ "name": "Yang, Bo",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/601530?v=4",
+ "profile": "https://www.yang-bo.com/",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "v1v",
+ "name": "Victor Martinez",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/2871786?v=4",
+ "profile": "https://github.com/v1v",
+ "contributions": [
+ "doc"
+ ]
+ },
+ {
+ "login": "Tybot204",
+ "name": "Tyler Hogan",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/7002601?v=4",
+ "profile": "https://github.com/Tybot204",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "blairg23",
+ "name": "Blair Gemmer",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/6225764?v=4",
+ "profile": "http://blairgemmer.com",
+ "contributions": [
+ "doc"
+ ]
+ },
+ {
+ "login": "lianghx-319",
+ "name": "Han",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/27187946?v=4",
+ "profile": "https://github.com/lianghx-319",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "donmahallem",
+ "name": "donmahallem",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/4698322?v=4",
+ "profile": "https://github.com/donmahallem",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "aelbozie",
+ "name": "Ahmed",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/36151122?v=4",
+ "profile": "https://github.com/aelbozie",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "monicarib",
+ "name": "MΓ΄nica Ribeiro",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/7025960?v=4",
+ "profile": "https://github.com/monicarib",
+ "contributions": [
+ "code"
+ ]
+ },
+ {
+ "login": "viatrix",
+ "name": "Tanya Bushenyova",
+ "avatar_url": "https://avatars.githubusercontent.com/u/16937734?v=4",
+ "profile": "https://github.com/viatrix",
+ "contributions": [
+ "code"
+ ]
+ }
+ ],
+ "contributorsPerLine": 7,
+ "projectName": "github-release-notes",
+ "projectOwner": "github-tools",
+ "repoType": "github",
+ "repoHost": "https://github.com",
+ "skipCi": true
+}
diff --git a/.babelrc b/.babelrc
index 350f079b..cded91db 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,6 +1,6 @@
{
"presets": ["es2015", "es2017"],
- "plugins": ["transform-runtime"],
+ "plugins": ["transform-runtime", "transform-object-rest-spread"],
"env": {
"test": {
"plugins": ["istanbul"]
diff --git a/.eslintrc b/.eslintrc
index 05e73e70..cb27caf6 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -8,6 +8,7 @@ parserOptions:
impliedStrict: true
allowImportExportEverywhere: false
plugins:
+ - mocha
- babel
extends:
- semistandard
@@ -55,3 +56,8 @@ rules:
prefer-rest-params: error
prefer-promise-reject-errors: 0
valid-typeof: 0
+overrides:
+ files:
+ - "*.spec.js"
+ env:
+ mocha: true
diff --git a/.gitignore b/.gitignore
index 28e9544c..341f9a07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ coverage
dist
bin
test/**.js.xml
+.vscode
diff --git a/.grenrc.js b/.grenrc.js
index dd10f0d0..0a6d5a96 100644
--- a/.grenrc.js
+++ b/.grenrc.js
@@ -10,7 +10,7 @@ module.exports = {
"issue": "- [{{text}}]({{url}}) {{name}}"
},
"groupBy": {
- "Framework Enhancements:": ["enhancement"],
+ "Enhancements:": ["enhancement", "internal"],
"Bug Fixes:": ["bug"]
}
};
diff --git a/.npmignore b/.npmignore
index 32af2c5e..1de1f080 100644
--- a/.npmignore
+++ b/.npmignore
@@ -12,3 +12,4 @@ test/
.grenrc.*
.jsdoc.conf.json
.travis.yml
+.nyc_output
diff --git a/.travis.yml b/.travis.yml
index f5f7aa9f..ab328b7b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,11 +2,9 @@ language:
- node_js
node_js:
- - "7.9"
-
-cache:
- directories:
- - node_modules
+ - "10"
+ - "12"
+ - "14"
before_install:
- npm install -g gulp-cli
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb1ef09e..a7188b46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,96 @@
# Changelog
+## v0.17.1 (12/12/2019)
+
+#### Enhancements:
+
+- [#217](https://github.com/github-tools/github-release-notes/issues/217) [feature request] sharing config or online config
+
+#### Bug Fixes:
+
+- [#229](https://github.com/github-tools/github-release-notes/issues/229) The number of commits will be reduced by one when "--data-source=commits"
+- [#162](https://github.com/github-tools/github-release-notes/issues/162) Change in artifact name - Gren no longer creates release notes!
+- [#134](https://github.com/github-tools/github-release-notes/issues/134) Sort tags by date before fetching release notes
+
+---
+
+## v0.17.0 (14/10/2018)
+
+#### Bug Fixes:
+
+- [#186](https://github.com/github-tools/github-release-notes/issues/186) Missing version numbers in generated changelog
+- [#158](https://github.com/github-tools/github-release-notes/issues/158) Commit author's name link is incorrect
+
+---
+
+## v0.16.0 (28/05/2018)
+
+#### Enhancements:
+
+- [#165](https://github.com/github-tools/github-release-notes/issues/165) Avoid paginating over all pull requests
+- [#161](https://github.com/github-tools/github-release-notes/issues/161) Pass issue descriptions into templates
+- [#152](https://github.com/github-tools/github-release-notes/issues/152) Add configuration-file option
+- [#144](https://github.com/github-tools/github-release-notes/issues/144) Feature to be able to specify limit on tags for the changelog
+- [#131](https://github.com/github-tools/github-release-notes/issues/131) Template: PR branch name?
+
+#### Bug Fixes:
+
+- [#140](https://github.com/github-tools/github-release-notes/issues/140) html_url and url are both pointing to 'https://api.github.com..'
+- [#133](https://github.com/github-tools/github-release-notes/issues/133) PRs that didn't merge to the master are shown in
+- [#132](https://github.com/github-tools/github-release-notes/issues/132) Tags not found
+
+---
+
+## v0.15.0 (19/01/2018)
+#### Enhancements:
+
+- [#98](https://github.com/github-tools/github-release-notes/issues/98) Manage issues with multiple labels
+
+---
+
+## v0.14.1 (08/12/2017)
+*No changelog for this release.*
+
+---
+
+## v0.14.0 (08/12/2017)
+
+#### Enhancements:
+
+- [#108](https://github.com/github-tools/github-release-notes/issues/108) Create a silent mode
+- [#83](https://github.com/github-tools/github-release-notes/issues/83) Create module initialisation panel
+
+#### Bug Fixes:
+
+- [#122](https://github.com/github-tools/github-release-notes/issues/122) Fix git configuration from `https`
+- [#119](https://github.com/github-tools/github-release-notes/issues/119) Tags `all` takes a lot to exit the task
+
+---
+
+## v0.13.1 (06/12/2017)
+
+#### Bug Fixes:
+
+- [#110](https://github.com/github-tools/github-release-notes/issues/110) Configuration file not used with "gren release", but works with "gren changelog"
+
+---
+
+## v0.13.0 (26/10/2017)
+
+#### Enhancements:
+
+- [#102](https://github.com/github-tools/github-release-notes/issues/102) Create a better log
+- [#96](https://github.com/github-tools/github-release-notes/issues/96) Translate Promises to async, await
+- [#93](https://github.com/github-tools/github-release-notes/issues/93) Add Pull Requests as data-source option
+- [#92](https://github.com/github-tools/github-release-notes/issues/92) Ignore tags with a certain string
+- [#84](https://github.com/github-tools/github-release-notes/issues/84) Ignore commits with keywords
+
+#### Bug Fixes:
+
+- [#109](https://github.com/github-tools/github-release-notes/issues/109) Babel Runtime is missing
+
+---
+
## v0.12.1 (14/10/2017)
*No changelog for this release.*
@@ -16,7 +107,7 @@
## v0.11.0 (13/10/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#69](https://github.com/github-tools/github-release-notes/issues/69) Remove the releases limit
@@ -36,7 +127,7 @@
## v0.10.0 (08/10/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#81](https://github.com/github-tools/github-release-notes/issues/81) Swap Grunt with Gulp
- [#80](https://github.com/github-tools/github-release-notes/issues/80) `gren --help` quietly does stuff
@@ -54,7 +145,7 @@
## v0.9.0 (17/05/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#74](https://github.com/github-tools/github-release-notes/issues/74) Support GitHub Enterprise
- [#67](https://github.com/github-tools/github-release-notes/issues/67) Use milestones to create release notes
@@ -71,7 +162,7 @@
## v0.8.0 (11/04/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#64](https://github.com/github-tools/github-release-notes/issues/64) Get the options with an external npm tool
- [#61](https://github.com/github-tools/github-release-notes/issues/61) Rework the Changelog generator function
@@ -97,7 +188,7 @@
## v0.7.0 (16/03/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#53](https://github.com/github-tools/github-release-notes/issues/53) Allow functions as template values
- [#50](https://github.com/github-tools/github-release-notes/issues/50) Add GIF in readme.md file
@@ -112,7 +203,7 @@
## v0.5.0 (14/03/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#20](https://github.com/github-tools/github-release-notes/issues/20) Specify which tag to build
- [#18](https://github.com/github-tools/github-release-notes/issues/18) Create global version of the module
@@ -132,7 +223,7 @@
## v0.6.1 (14/03/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#39](https://github.com/github-tools/github-release-notes/issues/39) Use different files type for configuration
@@ -160,7 +251,7 @@
## v0.4.0 (14/03/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#5](https://github.com/github-tools/github-release-notes/issues/5) Include various types of commit messages
@@ -168,7 +259,7 @@
## v0.6.0 (14/03/2017)
-#### Framework Enhancements:
+#### Enhancements:
- [#32](https://github.com/github-tools/github-release-notes/issues/32) Unwrap github-api promises
- [#26](https://github.com/github-tools/github-release-notes/issues/26) Use external config file
@@ -200,21 +291,3 @@
## v0.3.2 (10/03/2017)
*No changelog for this release.*
-
----
-
-## v0.2.1 (26/09/2016)
-*No changelog for this release.*
-
----
-
-## v0.2.0 (26/09/2016)
-
-#### Framework Enhancements:
-
-- [#3](https://github.com/github-tools/github-release-notes/issues/3) Cleanse option
-
----
-
-## v0.1.0 (12/11/2015)
-_No changelog for this release._
diff --git a/README.md b/README.md
index 6ea9fa18..5965d7bb 100644
--- a/README.md
+++ b/README.md
@@ -1,37 +1,39 @@
# `gren` π€
+
> Github release notes and changelog generator
[](https://badge.fury.io/js/github-release-notes)
[](https://travis-ci.org/github-tools/github-release-notes)
[](https://gitter.im/github-release-notes/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[](https://codecov.io/gh/github-tools/github-release-notes/)
-[](https://www.npmjs.com/package/github-release-notes)
-
-## Motivation
-
-Everyone loves neat, transparent, informative release notes.
-
-Everyone would also rather avoid maintaining them. What a hassle to have to evaluate what issues have been solved between two points in project's timeline, what types of problems they were, are they important to inform the users about, what issues solved them etc.
-
-Wouldn't it be great to get fantastic release notes compiled for you automaticaly based on all the hard work you put into your GitHub issues and pull requests.
+[](https://codecov.io/gh/github-tools/github-release-notes/branch/master)
+[](https://www.npmjs.com/package/github-release-notes)
+[](https://github-tools.github.io/github-release-notes/)
+
+[](#contributors-)
+
## OK, what can `gren` do for me?
-`gren` is a small helpful robot that will do for you just that! To put simply, it can create a release from a tag and compile the release notes using issues or commits.
+`gren` is a small helpful robot that will do for you just create a release from a tag and compile the release notes using issues or commits.
It also can generate a `CHANGELOG.md` file based on the release notes (or generate a brand new).
-- [The Concept](#the-concept)
+- [The Motivation and Concept](#the-motivation-and-concept)
- [Feed π€](#feed-gren-)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Configuration file](#configuration-file)
- [Full Documentation](https://github-tools.github.io/github-release-notes)
-## The Concept
+## The Motivation and Concept
+
+Everyone loves neat, transparent, informative release notes.
+Everyone would also rather avoid maintaining them. What a hassle to have to evaluate what issues have been solved between two points in project's timeline, what types of problems they were, are they important to inform the users about, what issues solved them, etc.
-The main motivation for bringing `gren` to life was the need for auto generating release notes for every tag in a project.
-The process, [as explained here](https://help.github.com/articles/creating-releases/), requires to go to your project's releases page in GitHub, draft that tag as a new release and manually add what I remembered has changed.
+Wouldn't it be great to get fantastic release notes compiled for you automatically based on all the hard work you put into your GitHub issues and pull requests?
+
+The main motivation for bringing `gren` to life was the need for auto-generating release notes for every tag in a project.
+The process, [as explained here](https://help.github.com/articles/creating-releases/), requires the tagger to go to your project's releases page in GitHub, draft that tag as a new release and manually add what has changed.
Let `gren` take care of that for you. It automates this process and also writes release notes for you, creating something like this:
@@ -68,20 +70,20 @@ If you want to be more accurate on the issues that belong to a release, you can
> The output above is a result of release notes built from issues.
-#### Help π€ to write wondeful stuff (issues)
+#### Help π€ to write wonderful stuff (issues)
-In order to have spliendid generated release notes, we reccomend to follow these convensions:
+In order to have splendidly generated release notes, we recommend to follow these conventions:
1. Start the title with a verb (e.g. Change header styles)
2. Use the imperative mood in the title (e.g. Fix, not Fixed or Fixes header styles)
-3. Use labels wisely and assign one label per issue. `gren` has the [option to ignore issues](#) _(alex: put link to options)_ that have a specified issues.
+3. Use labels wisely and assign one label per issue. `gren` has the [option to ignore issues](https://github-tools.github.io/github-release-notes/options.html#ignore-issues-with) that have one of the specified labels.
### `commits`
The simplest way of getting data is from the commits you write.
-Even though it doesn't require a machine-readable commit, still would be better to have them in a nice format.
+Even though it doesn't require a machine-readable commit, it is still better to have them in a nice format.
-The output would then use commit messages (title + description) to look something like:
+The output then uses commit messages (title + description) to look something like:
> ## v0.9.0 (17/05/2017)
>
@@ -93,9 +95,9 @@ The output would then use commit messages (title + description) to look somethin
> * Add api-url to options documentation
> - Update CHANGELOG.md
-#### Help π€ to write wondeful stuff (commits)
+#### Help π€ to write wonderful stuff (commits)
-In order to have spliendid generated release notes, we reccomend to follow these convensions:
+In order to have splendidly generated release notes, we recommend to follow these conventions:
1. Start the subject line with a verb (e.g. Change header styles)
2. Use the imperative mood in the subject line (e.g. Fix, not Fixed or Fixes header styles)
@@ -122,6 +124,12 @@ Then add this line to `~/.bash_profile` (or `~/.zshrc`):
export GREN_GITHUB_TOKEN=your_token_here
```
+Show the internet that you use gren for automating your release notes -> [](https://github-tools.github.io/github-release-notes/)
+
+```
+[](https://github-tools.github.io/github-release-notes/)
+```
+
## Basic Usage
`gren` gets the repo information directly from the folder where `git` is initialised.
@@ -190,7 +198,7 @@ gren examples release
## Configuration file
-You can create a configuration file where the task will be ran, where to specify your options. [See how to set up the config file](https://github-tools.github.io/github-release-notes/options.html#configuration-file)
+You can create a configuration file where the task will be run to specify your options. [See how to set up the config file](https://github-tools.github.io/github-release-notes/options.html#configuration-file)
The accepted file extensions are the following:
- `.grenrc`
@@ -199,4 +207,56 @@ The accepted file extensions are the following:
- `.grenrc.yaml`
- `.grenrc.js`
+### Init
+
+If you need help to create the configuration file, you can run the following command and follow the instructions
+
+```
+gren init
+```
+
### [See full documentation here](https://github-tools.github.io/github-release-notes)
+
+## Contributors β¨
+
+Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
+
+
+
+
+
+
+
+
+
+
+
+This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
diff --git a/_postinstall.js b/_postinstall.js
new file mode 100644
index 00000000..4e4151e2
--- /dev/null
+++ b/_postinstall.js
@@ -0,0 +1,22 @@
+const chalk = require('chalk');
+
+process.stdout.write(chalk.white(`
+ ${chalk.yellow('| ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |')}
+ ${chalk.blue(`π Thanks for downloading ${chalk.green('gren')}`)}
+ ${chalk.yellow('| ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |')}
+
+Before you start:
+
+ 1. Generate a token with ${chalk.yellow('repo scope')} at this link: ${chalk.blue('https://github.com/settings/tokens/new')}
+ 2. For every project, run ${chalk.green('gren init')} to create a config file (optional)
+ 3. Run ${chalk.green('gren help')} for more help or see ${chalk.blue('https://github-tools.github.io/github-release-notes/')}
+
+For any questions/issues, go here: ${chalk.blue('https://github.com/github-tools/github-release-notes/issues')}
+
+If you like ${chalk.green('gren')}, feel free to β it!
+
+
+${chalk.yellow('.:| ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |:.')}
+
+
+`));
diff --git a/docs/_data/changelog-options.yml b/docs/_data/changelog-options.yml
index 820bf3f1..b1363c19 100644
--- a/docs/_data/changelog-options.yml
+++ b/docs/_data/changelog-options.yml
@@ -1,7 +1,7 @@
-
short: '-G'
name: generate
- description: 'Generate the changelog with gren rather then using the repo releases'
+ description: 'Generate the changelog with gren rather than using the repo releases'
-
short: '-f'
name: changelog-filename
diff --git a/docs/_data/global-options.yml b/docs/_data/global-options.yml
index 410fceb3..fda44437 100644
--- a/docs/_data/global-options.yml
+++ b/docs/_data/global-options.yml
@@ -14,27 +14,36 @@
valueType: ''
description: 'The token generated with repo access'
-
- short: '-au'
+ short: '-a'
name: api-url
valueType: ''
description: 'Override the GitHub API URL, allows gren to connect to a private GHE installation'
-
short: '-o'
name: override
- description: 'Override the release notes if exist.'
+ description: 'Override the release notes if exist'
+-
+ short: '-B'
+ name: debug
+ description: 'Run the command in debugging mode'
-
short: '-t'
name: tags
valueType: '..'
description: 'Write release notes for using data collected until . If only one tag is specified, will use data until the previous tag. To run gren for all the tags, use --tags=all'
+-
+ short: '-l'
+ name: limit
+ valueType: ''
+ description: 'Just produce release notes for the last releases.'
-
short: '-D'
name: data-source
- valueType: ''
+ valueType: ''
description: 'The informations you want to use to build release notes. [issues]'
defaultValue: issues
-
- short: '-im'
+ short: '-N'
name: include-messages
valueType: ''
description: 'Filter the messages added to the release notes. Only used when --data-source used is commits [commits]'
@@ -70,7 +79,7 @@
valueType: ','
description: 'Ignore issues that contains one of the specified labels.'
-
- short: '-mm'
+ short: '-M'
name: milestone-match
valueType: ''
description: 'The title that the script needs to match to link the release to the milestone. e.g. v will match v0.1.0 [Release {{tag_name}}]'
@@ -79,3 +88,12 @@
short: '-m'
name: only-milestones
description: 'Add to the release bodies only the issues that have a milestone'
+-
+ short: '-q'
+ name: quiet
+ description: 'Run command without console logs.'
+-
+ short: '-c'
+ name: config
+ valueType: ''
+ description: 'Specify a custom config filename'
diff --git a/docs/_data/release-options.yml b/docs/_data/release-options.yml
index 04fc0812..d9ccfc6a 100644
--- a/docs/_data/release-options.yml
+++ b/docs/_data/release-options.yml
@@ -3,6 +3,6 @@
name: draft
description: 'Set the release notes as a draft.'
-
- short: '-pr'
+ short: '-P'
name: prerelease
description: 'Set the release as a prerelease.'
diff --git a/docs/_data/versions.yml b/docs/_data/versions.yml
index dd725e95..7d978643 100644
--- a/docs/_data/versions.yml
+++ b/docs/_data/versions.yml
@@ -6,3 +6,7 @@
- 0.11.0
- 0.12.0
- 0.13.0
+- 0.14.0
+- 0.15.0
+- 0.17.0
+- 0.17.1
diff --git a/docs/concept.md b/docs/concept.md
index 328e9170..1db89932 100644
--- a/docs/concept.md
+++ b/docs/concept.md
@@ -60,13 +60,13 @@ If you want to be more accurate on the issues that belong to a release, you can
> The output above is a result of release notes built from issues.
-#### Help π€ to write wondeful stuff (issues)
+#### Help π€ to write wonderful stuff (issues)
-In order to have spliendid generated release notes, we reccomend to follow these convensions:
+In order to have splendidly generated release notes, we reccomend to follow these convensions:
-1. Start the title with a verb (e.g. Change header styles)
+1. Start the title with a verb (e.g. **Change** header styles)
2. Use the imperative mood in the title (e.g. Fix, not Fixed or Fixes header styles)
-3. Use labels wisely and assign one label per issue. `gren` has the [option to ignore issues](#) _(alex: put link to options)_ that have a specified issues.
+3. Use labels wisely and assign one label per issue. `gren` has the [option to ignore issues](https://github-tools.github.io/github-release-notes/options.html#ignore-issues-with) that have more than one of the specified labels.
### `commits`
@@ -87,9 +87,9 @@ The output would then use commit messages (title + description) to look somethin
#### Help π€ to write wondeful stuff (commits)
-In order to have spliendid generated release notes, we reccomend to follow these convensions:
+In order to have splendidly generated release notes, we reccomend to follow these convensions:
-1. Start the subject line with a verb (e.g. Change header styles)
+1. Start the subject line with a verb (e.g. **Change** header styles)
2. Use the imperative mood in the subject line (e.g. Fix, not Fixed or Fixes header styles)
3. Limit the subject line to about 50 characters
4. Do not end the subject line with a period
diff --git a/docs/github-release-notes/0.14.0/-_template.js.html b/docs/github-release-notes/0.14.0/-_template.js.html
new file mode 100644
index 00000000..33c588b9
--- /dev/null
+++ b/docs/github-release-notes/0.14.0/-_template.js.html
@@ -0,0 +1,88 @@
+
+
+
+
+
+ _template.js - Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
_template.js
+
+
+
+
+
+
+
+
+
+
/**
+ * Generate the templated string based on
+ * a placeholders Object
+ *
+ * @since 0.6.0
+ * @private
+ *
+ * @param {Object} placeholders All the keys/values to update
+ * @param {string|Function} string The string or the function that needs to be replaced
+ *
+ * @return {string}
+ */
+function generate(placeholders, string) {
+ if (typeof string === 'function') {
+ return string(placeholders);
+ }
+
+ return Object.entries(placeholders)
+ .reduce((carry, [key, placeholder]) => {
+ const placeholderRegExp = new RegExp(`{{${key}}}`, 'g');
+
+ return carry.replace(placeholderRegExp, placeholder);
+ }, string);
+}
+
+export {
+ generate
+};
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/github-release-notes/0.14.0/scripts/linenumber.js b/docs/github-release-notes/0.14.0/scripts/linenumber.js
new file mode 100644
index 00000000..8d52f7ea
--- /dev/null
+++ b/docs/github-release-notes/0.14.0/scripts/linenumber.js
@@ -0,0 +1,25 @@
+/*global document */
+(function() {
+ var source = document.getElementsByClassName('prettyprint source linenums');
+ var i = 0;
+ var lineNumber = 0;
+ var lineId;
+ var lines;
+ var totalLines;
+ var anchorHash;
+
+ if (source && source[0]) {
+ anchorHash = document.location.hash.substring(1);
+ lines = source[0].getElementsByTagName('li');
+ totalLines = lines.length;
+
+ for (; i < totalLines; i++) {
+ lineNumber++;
+ lineId = 'line' + lineNumber;
+ lines[i].id = lineId;
+ if (lineId === anchorHash) {
+ lines[i].className += ' selected';
+ }
+ }
+ }
+})();
diff --git a/docs/github-release-notes/0.14.0/scripts/prettify/Apache-License-2.0.txt b/docs/github-release-notes/0.14.0/scripts/prettify/Apache-License-2.0.txt
new file mode 100644
index 00000000..d6456956
--- /dev/null
+++ b/docs/github-release-notes/0.14.0/scripts/prettify/Apache-License-2.0.txt
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/docs/github-release-notes/0.14.0/scripts/prettify/lang-css.js b/docs/github-release-notes/0.14.0/scripts/prettify/lang-css.js
new file mode 100644
index 00000000..041e1f59
--- /dev/null
+++ b/docs/github-release-notes/0.14.0/scripts/prettify/lang-css.js
@@ -0,0 +1,2 @@
+PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
+/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
diff --git a/docs/github-release-notes/0.14.0/scripts/prettify/prettify.js b/docs/github-release-notes/0.14.0/scripts/prettify/prettify.js
new file mode 100644
index 00000000..eef5ad7e
--- /dev/null
+++ b/docs/github-release-notes/0.14.0/scripts/prettify/prettify.js
@@ -0,0 +1,28 @@
+var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
+(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
+[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
+l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
+q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
+q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
+"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
+a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
+for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
+"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
+H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
+J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
+I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
_template.js
+
+
+
+
+
+
+
+
+
+
/**
+ * Generate the templated string based on
+ * a placeholders Object
+ *
+ * @since 0.6.0
+ * @private
+ *
+ * @param {Object} placeholders All the keys/values to update
+ * @param {string|Function} string The string or the function that needs to be replaced
+ *
+ * @return {string}
+ */
+function generate(placeholders, string) {
+ if (typeof string === 'function') {
+ return string(placeholders);
+ }
+
+ return Object.entries(placeholders)
+ .reduce((carry, [key, placeholder]) => {
+ const placeholderRegExp = new RegExp(`{{${key}}}`, 'g');
+
+ return carry.replace(placeholderRegExp, placeholder);
+ }, string);
+}
+
+export {
+ generate
+};
+