New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grep-tests-from-pull-requests

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grep-tests-from-pull-requests - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

2

package.json
{
"name": "grep-tests-from-pull-requests",
"version": "1.8.2",
"version": "1.8.3",
"description": "Grabs the test tags to run from the pull request text",

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

@@ -39,12 +39,18 @@ // @ts-check

// @ts-ignore
const res = await got.get(url, {
headers: {
authorization: `Bearer ${envOptions.token}`,
accept: 'application/vnd.github.v3+json',
},
})
try {
// @ts-ignore
const res = await got.get(url, {
headers: {
authorization: `Bearer ${envOptions.token}`,
accept: 'application/vnd.github.v3+json',
},
})
const json = JSON.parse(res.body)
return json.body
const json = JSON.parse(res.body)
return json.body
} catch (err) {
console.error('Failed to fetch pull request %s', url)
console.error(err.message)
throw err
}
}

@@ -84,14 +90,20 @@

// @ts-ignore
const res = await got.get(url, {
headers: {
authorization: `Bearer ${envOptions.token}`,
accept: 'application/vnd.github.v3+json',
},
})
try {
// @ts-ignore
const res = await got.get(url, {
headers: {
authorization: `Bearer ${envOptions.token}`,
accept: 'application/vnd.github.v3+json',
},
})
const comments = JSON.parse(res.body)
debug('found %d comments for PR %d', comments.length, options.pull)
// each comment in the array is an object with a body property
return comments
const comments = JSON.parse(res.body)
debug('found %d comments for PR %d', comments.length, options.pull)
// each comment in the array is an object with a body property
return comments
} catch (err) {
console.error('Failed to fetch pull request comments %s', url)
console.error(err.message)
throw err
}
}

@@ -98,0 +110,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