Skip to content

Commit

Permalink
Use present tense in automated changelog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Feb 7, 2025
1 parent 3b6380e commit 080b341
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/files/renovate-post-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ for DIR in $(git -c core.quotepath=off diff --name-only HEAD | sed -nE 's!^(proj
echo "Adding change file for $SLUG"
cd "$DIR"

changelogger_add 'Updated package dependencies.' '' --filename="${CHANGEFILE}" --filename-auto-suffix
changelogger_add 'Update package dependencies.' '' --filename="${CHANGEFILE}" --filename-auto-suffix
cd "$BASE"
done

Expand Down
4 changes: 2 additions & 2 deletions tools/changelogger-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ for DS in $( git -c core.quotepath=off diff --name-only projects | sed -E -e 's!
debug " $DS already has an uncommitted change entry file, skipping"
elif ! git diff --quiet -- . ":!./composer.lock"; then
debug " $DS has non-lockfile changes"
changelogger_add 'Updated package dependencies.'
changelogger_add 'Update package dependencies.'
else
debug " $DS has lockfile changes only"
changelogger_add '' 'Updated composer.lock.'
changelogger_add '' 'Update composer.lock.'
fi
done
cd "$BASE"
Expand Down
4 changes: 2 additions & 2 deletions tools/check-intra-monorepo-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ for SLUG in "${SLUGS[@]}"; do

if $DOCL; then
info "Creating changelog entry for $SLUG"
do_changelogger "$SLUG" 'Updated package dependencies.'
do_changelogger "$SLUG" 'Update package dependencies.'
DOCL=false
fi
fi
Expand All @@ -233,7 +233,7 @@ for SLUG in "${SLUGS[@]}"; do

if $DOCL; then
info "Creating changelog entry for $SLUG"
do_changelogger "$SLUG" 'Updated package dependencies.'
do_changelogger "$SLUG" 'Update package dependencies.'
DOCL=false
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions tools/cli/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ async function addIndirectPlugins( argv, directProjects, changelogFiles ) {
for ( const file of changelogFiles.get( proj ) ) {
const contents = fs.readFileSync( file, 'utf-8' );
if (
! contents.match( /^Comment: Updated composer\.lock\.$/m ) ||
contents.match( /\r?\n\r?\n(?!Updated package dependencies\.[\r\n]*$)\s*\S/ )
! contents.match( /^Comment: Updated? composer\.lock\.$/m ) ||
contents.match( /\r?\n\r?\n(?!Updated? package dependencies\.[\r\n]*$)\s*\S/ )
) {
continue projloop;
}
Expand Down

0 comments on commit 080b341

Please sign in to comment.