Skip to content

Commit

Permalink
Update src/dependabot/update_metadata.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nish Sinha <[email protected]>
  • Loading branch information
mwaddell and Nishnha authored Feb 9, 2022
1 parent 8001861 commit 4d237c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dependabot/update_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) || '/'

Expand Down

0 comments on commit 4d237c6

Please sign in to comment.