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

release-drafter-github-app

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

release-drafter-github-app - npm Package Compare versions

Comparing version 5.12.0 to 5.12.1

2

index.js

@@ -36,3 +36,3 @@ const { getConfig } = require('./lib/config')

const { draftRelease, lastRelease } = await findReleases({ ref, app, context })
const { draftRelease, lastRelease } = await findReleases({ app, context })
const {

@@ -39,0 +39,0 @@ commits,

@@ -20,3 +20,3 @@ const compareVersions = require('compare-versions')

module.exports.findReleases = async ({ ref, app, context }) => {
module.exports.findReleases = async ({ app, context }) => {
let releases = await context.github.paginate(

@@ -31,6 +31,5 @@ context.github.repos.listReleases.endpoint.merge(

log({ app, context, message: `Found ${releases.length} releases` })
const filteredReleases = releases.filter((r) => ref.match(`/${r.target_commitish}$`))
const sortedPublishedReleases = sortReleases(filteredReleases.filter((r) => !r.draft))
const draftRelease = filteredReleases.find((r) => r.draft)
const sortedPublishedReleases = sortReleases(releases.filter((r) => !r.draft))
const draftRelease = releases.find((r) => r.draft)
const lastRelease =

@@ -37,0 +36,0 @@ sortedPublishedReleases[sortedPublishedReleases.length - 1]

{
"name": "release-drafter-github-app",
"version": "5.12.0",
"version": "5.12.1",
"description": "A GitHub app that draft releases based on pull-request labels",

@@ -5,0 +5,0 @@ "author": "Tim Lucas <t@toolmantim.com> (https://github.com/toolmantim)",

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