Skip to content

Commit

Permalink
Use commit data to infer dependency groups instead of the PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Jun 8, 2023
1 parent cfab22f commit b3648a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dependabot/update_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function parse (commitMessage: string, body: string, branchName: st
const bumpFragment = commitMessage.match(/^Bumps .* from (?<from>v?\d[^ ]*) to (?<to>v?\d[^ ]*)\.$/m)
const updateFragment = commitMessage.match(/^Update .* requirement from \S*? ?(?<from>v?\d\S*) to \S*? ?(?<to>v?\d\S*)$/m)
const yamlFragment = commitMessage.match(/^-{3}\n(?<dependencies>[\S|\s]*?)\n^\.{3}\n/m)
const groupName = body.match(/^Bumps the (?<name>\S*) group with/m)
const groupName = commitMessage.match(/^Bumps the (?<name>\S*) group with/m)
const newMaintainer = !!body.match(/Maintainer changes/m)
const lookupFn = lookup ?? (() => Promise.resolve({ alertState: '', ghsaId: '', cvss: 0 }))
const scoreFn = getScore ?? (() => Promise.resolve(0))
Expand Down

0 comments on commit b3648a3

Please sign in to comment.