Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Validate PR title

on:
pull_request:
types: [opened, edited, reopened, synchronize]
types: [opened, edited, reopened]
branches: [main]
workflow_call: {}

Expand Down Expand Up @@ -119,15 +119,15 @@ jobs:

- name: Delete PR comment on resolution
# Delete comment if the error message is null or the PR title is the correct length
if: ${{ always() && steps.validate-pr-title.outputs.error_message == null }}
if: ${{ steps.validate-pr-title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
with:
header: pr-title-error
delete: true

- name: Summary with valid title
# A length check is not required here because the validate-pr-title step will only run if the title is less than or equal to the max length
if: ${{ always() && steps.validate-pr-title.outputs.error_message == null }}
if: ${{ steps.validate-pr-title.outputs.error_message == null }}
run: |
echo "### :white_check_mark: Pull Request title is valid" >> $GITHUB_STEP_SUMMARY
echo "The pull request title conforms to the conventional commit specification." >> $GITHUB_STEP_SUMMARY
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/wait-for-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Checks

on:
pull_request:
types: [opened, edited, reopened, synchronize]
types: [opened, reopened, synchronize]
branches: [main]
workflow_call: {}

Expand Down Expand Up @@ -34,6 +34,7 @@ jobs:
# Approve PR raised by 3ware-release[bot] to upgrade trunk on trunk branches
# after all checks have passed.
auto-approve-pr:
# TODO: Add terraform app to actor, maybe project/** to branch as well
if: ${{ github.actor == '3ware-release[bot]' && github.head_ref == 'trunk-io/update-trunk' }}
needs: [enforce-all-checks]
runs-on: ubuntu-latest
Expand Down