From 4d237c6cf08834a7c5835246ebbca53d51541fe3 Mon Sep 17 00:00:00 2001 From: Michael Waddell Date: Wed, 9 Feb 2022 13:42:39 -0600 Subject: [PATCH] Update src/dependabot/update_metadata.ts Co-authored-by: Nish Sinha --- src/dependabot/update_metadata.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dependabot/update_metadata.ts b/src/dependabot/update_metadata.ts index 982ed453..756a4c14 100644 --- a/src/dependabot/update_metadata.ts +++ b/src/dependabot/update_metadata.ts @@ -15,7 +15,8 @@ export function parse (commitMessage: string, branchName: string, mainBranch: st if (yamlFragment?.groups && branchName.startsWith('dependabot')) { const data = YAML.parse(yamlFragment.groups.dependencies) - const delim = branchName[10] + # Since we are on the `dependabot` branch (9 letters), the 10th letter in the branch name is the delimiter + const delim = branchName[10] const chunks = branchName.split(delim) const dirname = chunks.slice(2, -1).join(delim) || '/'