Skip to content

Commit

Permalink
added an early return and notice
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen committed Dec 13, 2024
1 parent bcbdbf7 commit 4fa3d0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/scripts/issues/titleCleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ module.exports = async ({ core, context, github }) => {

core.info(`>>> Updated title: ${result}`);

if (result === issue.data.title) {
core.info('>>> No changes needed. Exiting...');
core.notice('No changes to the issue title are necessary. This action will be skipped.');
return;
}

await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 4fa3d0e

Please sign in to comment.