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
5 changes: 4 additions & 1 deletion .github/workflows/code-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
types: [opened, edited, synchronize, reopened]
branches:
- main
workflow_dispatch:
workflow_call:

permissions:
contents: read
Expand All @@ -18,7 +20,7 @@ jobs:
name: Validate Code
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.pull_request.draft == false
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -38,6 +40,7 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Validate commit messages
if: github.event_name == 'pull_request'
run: echo "${{ github.event.pull_request.title }}" | bun run commitlint
- name: Validate
id: validate
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
workflow: pull-request
github-token: ${{ github.token }}
branch: release
validate-release-pr:
name: Validate release PR
needs: pull-request
uses: ./.github/workflows/code-pull-request.yml
release:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
Loading