release-drafter-github-app
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,3 +1,7 @@ | ||
const flatten = (arr) => { | ||
return Array.prototype.concat(...arr) | ||
} | ||
module.exports.isTriggerableBranch = ({ app, context, branch, config }) => { | ||
const validBranches = config.branches || [context.payload.repository.default_branch] | ||
const validBranches = flatten([config.branches || context.payload.repository.default_branch]) | ||
const relevant = validBranches.indexOf(branch) !== -1 | ||
@@ -4,0 +8,0 @@ if (!relevant) { |
{ | ||
"name": "release-drafter-github-app", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A GitHub app that bumps version numbers in readmes", | ||
@@ -27,3 +27,3 @@ "author": "Tim Lucas <t@toolmantim.com> (https://github.com/toolmantim)", | ||
"jest": "23.4.1", | ||
"nock": "9.4.2", | ||
"nock": "9.4.3", | ||
"nodemon": "1.18.3", | ||
@@ -30,0 +30,0 @@ "smee-client": "1.0.2", |
@@ -53,3 +53,3 @@ <h1 align="center"> | ||
Release Drafter also supports [Probot Config](https://github.com/probot/probot-config), if you want to store your configuration files in a central repository. | ||
Release Drafter also supports [Probot Config](https://github.com/probot/probot-config), if you want to store your configuration files in a central repository. This allows you to share configurations between projects, and create a organization-wide configuration file by creating a repository named `.github` and file named `release-drafter.yml`. | ||
@@ -56,0 +56,0 @@ ## Developing |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
719613
2066