Skip to content

fix(pr-title): Remove unecessary if always conditions#169

Merged
chris3ware merged 3 commits intomainfrom
feat-pr-title-empty-commit
Mar 5, 2025
Merged

fix(pr-title): Remove unecessary if always conditions#169
chris3ware merged 3 commits intomainfrom
feat-pr-title-empty-commit

Conversation

@chris3ware
Copy link
Copy Markdown
Member

if: always() is not required in steps that run when the preceding step has succeeded.

They only need to be used when the preceding step has failed. For example, when the PR title is invalid (and the step fails) we want the PR comment step to run anyway.

if: always() is required to run steps that deal with failures. For
example, when the PR title is invalid, the step fails but the PR
comment should be created and the failure summary should be added.

Delete Comment and valid title summary will always run anyway because
the preceding steps have succeeded.
This workflow does not need to run when a PR is edited because this
event does not generate a new commit.
@chris3ware chris3ware requested a review from a team as a code owner March 5, 2025 15:50
@chris3ware chris3ware merged commit 016d847 into main Mar 5, 2025
@chris3ware chris3ware deleted the feat-pr-title-empty-commit branch March 5, 2025 15:54
3ware-release Bot pushed a commit that referenced this pull request Mar 5, 2025
## [4.11.1](v4.11.0...v4.11.1) (2025-03-05)

### Bug Fixes

* **pr-title:** Remove unecessary `if always` conditions ([#169](#169)) ([016d847](016d847))
@3ware-release
Copy link
Copy Markdown
Contributor

3ware-release Bot commented Mar 5, 2025

This PR is included in version 4.11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants