Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-pr-release

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-pr-release - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

3

lib/github-client.js

@@ -158,3 +158,4 @@ var request = require('request')

var prsToRelease = mergedPRs.reduce(function (result, pr) {
if (shas.indexOf(pr.head.sha) !== -1) {
if (shas.indexOf(pr.head.sha) > -1 ||
shas.indexOf(pr.merge_commit_sha) > -1) {
result.push(pr)

@@ -161,0 +162,0 @@ }

{
"name": "github-pr-release",
"version": "1.3.0",
"version": "1.3.1",
"description": "Create a release pull request by Github API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -141,3 +141,4 @@ /* global describe before it */

{ sha: '1' },
{ sha: '2' }
{ sha: '2' },
{ sha: '3' }
])

@@ -147,2 +148,3 @@ .get('/repos/uiureo/awesome-app/pulls?state=closed&base=master&per_page=100&sort=updated&direction=desc')

{ number: 10, head: { sha: '0' }, merged_at: null },
{ number: 3, head: { sha: '_3' }, merged_at: '2015-12-27T00:00:00Z', merge_commit_sha: '3' },
{ number: 2, head: { sha: '2' }, merged_at: '2015-12-26T00:00:00Z' },

@@ -156,6 +158,6 @@ { number: 1, head: { sha: '1' }, merged_at: '2015-12-25T00:00:00Z' },

.then(function (prs) {
assert(prs.length === 2)
assert(prs.length === 3)
var numbers = prs.map(function (pr) { return pr.number })
assert.deepEqual(numbers, [1, 2], 'sorted by merged_at asc')
assert.deepEqual(numbers, [1, 2, 3], 'sorted by merged_at asc')

@@ -162,0 +164,0 @@ done()

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