Socket
Socket
Sign inDemoInstall

@semantic-release/github

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-release/github - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

lib/get-search-queries.js

13

lib/success.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc