@semantic-release/github
Advanced tools
Comparing version 4.2.9 to 4.2.10
@@ -22,2 +22,3 @@ const {isUndefined, uniqBy, template, flatten} = require('lodash'); | ||
const shas = commits.map(commit => commit.hash); | ||
const treeShas = commits.map(commit => commit.tree.long); | ||
@@ -29,3 +30,5 @@ const searchQueries = getSearchQueries(`repo:${owner}/${repo}+type:pr+is:merged`, shas).map( | ||
const prs = await pFilter(uniqBy(flatten(await Promise.all(searchQueries)), 'number'), async ({number}) => | ||
(await github.pullRequests.getCommits({owner, repo, number})).data.find(({sha}) => shas.includes(sha)) | ||
(await github.pullRequests.getCommits({owner, repo, number})).data.find( | ||
({sha, commit}) => shas.includes(sha) || treeShas.includes(commit.tree.sha) | ||
) | ||
); | ||
@@ -32,0 +35,0 @@ |
{ | ||
"name": "@semantic-release/github", | ||
"description": "Set of semantic-release plugins for publishing a GitHub release", | ||
"version": "4.2.9", | ||
"version": "4.2.10", | ||
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
47765
634