Skip to content

Commit

Permalink
let
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Aug 19, 2024
1 parent 49f21ff commit f0913f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ jobs:
const childProcess = require('child_process')
const updateCommits = childProcess.execSync('git --no-pager log --oneline --no-merges main..deps').toString().trim().split('\n')
const updatedDeps = updateCommits
let updatedDeps = updateCommits
.map(line => line.match(/update dependency (.+) to/))
.filter(Boolean)
.map(match => match[1])
const depsSummary = [...new Set(updatedDeps)]
updatedDeps = [...new Set(updatedDeps)]
const depsSummary = updatedDeps
.slice(0, 4)
.map((dep, i, {length}) => {
if (i === 3 && updatedDeps.length > 4) return `and ${updatedDeps.length - 3} more`
Expand Down

0 comments on commit f0913f3

Please sign in to comment.