@@ -99,7 +99,9 @@ main() {
99
99
git_cherry_out=$(
100
100
{
101
101
git log --no-merges --cherry-mark --pretty=format:" %m %H %s" " ${to_ref} ...origin/main"
102
+ echo
102
103
git log --no-merges --cherry-mark --pretty=format:" %m %H %s" " ${from_ref} ...origin/main"
104
+ echo
103
105
} | { grep ' ^=' || true ; } | sort -u | sort -k3
104
106
)
105
107
if [[ -n ${git_cherry_out} ]]; then
@@ -209,6 +211,15 @@ main() {
209
211
fi
210
212
fi
211
213
214
+ author=
215
+ if [[ -v authors[${commit_sha_long} ] ]]; then
216
+ author=${authors[${commit_sha_long}]}
217
+ if [[ ${author} == " app/dependabot" ]]; then
218
+ log " Skipping commit by app/dependabot ${commit_sha_short} (${commit_sha_long} )"
219
+ continue
220
+ fi
221
+ fi
222
+
212
223
if [[ ${left_right} == " <" ]]; then
213
224
# Skip commits that are already in main.
214
225
log " Skipping commit ${commit_sha_short} from other branch (${commit_sha_long} ${title} )"
@@ -218,7 +229,7 @@ main() {
218
229
COMMIT_METADATA_COMMITS+=(" ${commit_sha_long_orig} " )
219
230
220
231
# Safety-check, guarantee all commits had their metadata fetched.
221
- if [[ ! -v authors[ ${commit_sha_long} ] ]] || [[ ! -v labels[${commit_sha_long} ] ]]; then
232
+ if [[ -z ${author} ]] || [[ ! -v labels[${commit_sha_long} ] ]]; then
222
233
if [[ ${ignore_missing_metadata} != 1 ]]; then
223
234
error " Metadata missing for commit ${commit_sha_short} (${commit_sha_long} )"
224
235
else
@@ -228,8 +239,8 @@ main() {
228
239
229
240
# Store the commit title for later use.
230
241
COMMIT_METADATA_TITLE[${commit_sha_short} ]=${title}
231
- if [[ -v authors[ ${commit_sha_long} ] ]]; then
232
- COMMIT_METADATA_AUTHORS[${commit_sha_short} ]=" @${authors[${commit_sha_long}] } "
242
+ if [[ -n ${author} ]]; then
243
+ COMMIT_METADATA_AUTHORS[${commit_sha_short} ]=" @${author } "
233
244
fi
234
245
235
246
# Create humanized titles where possible, examples:
0 commit comments