Skip to content

Commit b3648a3

Browse files
committed
Use commit data to infer dependency groups instead of the PR body
1 parent cfab22f commit b3648a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dependabot/update_metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function parse (commitMessage: string, body: string, branchName: st
3232
const bumpFragment = commitMessage.match(/^Bumps .* from (?<from>v?\d[^ ]*) to (?<to>v?\d[^ ]*)\.$/m)
3333
const updateFragment = commitMessage.match(/^Update .* requirement from \S*? ?(?<from>v?\d\S*) to \S*? ?(?<to>v?\d\S*)$/m)
3434
const yamlFragment = commitMessage.match(/^-{3}\n(?<dependencies>[\S|\s]*?)\n^\.{3}\n/m)
35-
const groupName = body.match(/^Bumps the (?<name>\S*) group with/m)
35+
const groupName = commitMessage.match(/^Bumps the (?<name>\S*) group with/m)
3636
const newMaintainer = !!body.match(/Maintainer changes/m)
3737
const lookupFn = lookup ?? (() => Promise.resolve({ alertState: '', ghsaId: '', cvss: 0 }))
3838
const scoreFn = getScore ?? (() => Promise.resolve(0))

0 commit comments

Comments
 (0)