Skip to content

Commit 5ac65a3

Browse files
committed
ci: add event types for pull_request
1 parent 771dc7a commit 5ac65a3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ name: Lint and analyse files
33
on:
44
push:
55
pull_request:
6+
types: [opened, synchronize, reopened]
67
branches:
7-
# Branches from forks have the form 'user:branch-name' so we only run
8-
# this job on pull_request events for branches that look like fork
9-
# branches. Without this we would end up running this job twice for non
10-
# forked PRs, once for the push and then once for opening the PR.
11-
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
12-
- '**:**'
8+
# Branches from forks have the form 'user:branch-name' so we only run
9+
# this job on pull_request events for branches that look like fork
10+
# branches. Without this we would end up running this job twice for non
11+
# forked PRs, once for the push and then once for opening the PR.
12+
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
13+
- '**:**'
1314

1415
jobs:
1516
lint-php:

.github/workflows/lint-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: lint php documentation
33
on:
44
push:
55
pull_request:
6+
types: [opened, synchronize, reopened]
67
branches:
78
# Branches from forks have the form 'user:branch-name' so we only run
89
# this job on pull_request events for branches that look like fork

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Run tests
33
on:
44
push:
55
pull_request:
6+
types: [opened, synchronize, reopened]
67
branches:
78
# Branches from forks have the form 'user:branch-name' so we only run
89
# this job on pull_request events for branches that look like fork

0 commit comments

Comments
 (0)