Skip to content

Commit

Permalink
Clean up a comment in dependabot-changelog.sh about the branch name.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyLemon committed Jul 29, 2024
1 parent 995f568 commit 2d12aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dependabot-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fi
[[ -n "$verbose" ]] && printf ' Title: "%s"\n' "$title"

# Dependabot branch names look like this: "dependabot/github_actions/bufbuild/buf-setup-action-1.34.0"
# The "github_actions" can also be "go_modules" (anb probably other things too).
# The "github_actions" part can also be "go_modules" (and probably other things too).
# For the filename, we'll omit the "dependabot/<lib type>/" part and use just what's left.
branch_fn="$( sed -E 's|^[^/]+/[^/]+/||; s|/|-|g;' <<< "$head_branch" )"
[[ -n "$verbose" ]] && printf 'Branch Filename: "%s"\n' "$branch_fn"
Expand Down

0 comments on commit 2d12aea

Please sign in to comment.