@semantic-release/github
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -9,2 +9,3 @@ const {uniqBy, template} = require('lodash'); | ||
const getClient = require('./get-client'); | ||
const getSearchQueries = require('./get-search-queries'); | ||
const getSuccessComment = require('./get-success-comment'); | ||
@@ -22,6 +23,10 @@ const findSRIssues = require('./find-sr-issues'); | ||
// Search for PRs associated with any commit in the release | ||
const {data: {items: prs}} = await github.search.issues({ | ||
q: `${commits.map(commit => commit.hash).join('+')}+repo:${owner}/${repo}+type:pr`, | ||
}); | ||
const prs = await pReduce( | ||
getSearchQueries(`repo:${owner}/${repo}+type:pr`, commits.map(commit => commit.hash)), | ||
async (prs, q) => { | ||
const {data: {items}} = await github.search.issues({q}); | ||
return [...prs, ...items]; | ||
}, | ||
[] | ||
); | ||
@@ -28,0 +33,0 @@ debug('found pull requests: %O', prs.map(pr => pr.number)); |
{ | ||
"name": "@semantic-release/github", | ||
"description": "Set of semantic-release plugins for publishing a GitHub release", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -104,3 +104,3 @@ # @semantic-release/github | ||
| `commits` | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`. | | ||
| `releases` | `Array` with a release `Object`s for each release published, with optional release data such has `name` and `url`. | | ||
| `releases` | `Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`. | | ||
| `issue` | A [GitHub API pull request object](https://developer.github.com/v3/search/#search-issues) for pull requests related to a commit, or an `Object` with the `number` property for issues resolved via [keywords](https://help.github.com/articles/closing-issues-using-keywords) | | ||
@@ -107,0 +107,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43852
18
538
0