Skip to content

Commit

Permalink
fix: use lowercase subject line for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed Dec 21, 2022
1 parent c7b44b1 commit 70db399
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ It does not do any checks, but only tries to increase the version number via `mv
* `settingsPath`: path to a maven settings file (default: `'.m2/settings.xml'`)
* `deployMethod`: either `'deploy'` or `'jib'`. This determines which mvn targets are used to deploy. `deploy` uses the `deploy` target and `jib` uses `package jib:build` (default: `'deploy'`)
* `updateSnapshotVersion`: either `true` or `false`. Whether a new snapshot version should be set after releasing. (default: `false`)
* `snapshotCommitMessage`: the commit message used if a new snapshot version should be created (default: `'chore: setting next snapshot version [skip ci]'`)
2 changes: 1 addition & 1 deletion src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {
deploy
} = require("./maven");

module.exports = async function publish (pluginConfig, {
module.exports = async function publish(pluginConfig, {
logger,
nextRelease
}) {
Expand Down
5 changes: 3 additions & 2 deletions src/success.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ const {
push
} = require('@semantic-release/git/lib/git')

module.exports = async function success (pluginConfig, {
module.exports = async function success(pluginConfig, {
logger,
env,
cwd,
branch,
options: { repositoryUrl }
}) {
const updateSnapshotVersionOpt = pluginConfig.updateSnapshotVersion || false;
const snapshotCommitMessage = pluginConfig.snapshotCommitMessage || 'chore: setting next snapshot version [skip ci]';
if (updateSnapshotVersionOpt) {
await updateSnapshotVersion(logger);
const execaOptions = { env, cwd };
logger.log('Staging pom.xml');
await add(['pom.xml'], execaOptions);
logger.log('Committing pom.xml');
await commit('chore: Setting next snapshot version [skip ci]', execaOptions);
await commit(snapshotCommitMessage, execaOptions);
logger.log('Pushing commit');
await push(repositoryUrl, branch.name, execaOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion src/verify-conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {
testMvn
} = require("./maven");

module.exports = async function prepare(pluginConfig, context) {
module.exports = async function verifyConditions(pluginConfig, context) {
const {
logger
} = context;
Expand Down

0 comments on commit 70db399

Please sign in to comment.