Skip to content

Commit 97a50ce

Browse files
committed
Run GitHub actions on pull requests only when necessary
1 parent a798607 commit 97a50ce

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5+
types: [assigned, opened, synchronize, reopened]
56
push:
67
branches:
78
- main

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [ main ]
20+
types: [assigned, opened, synchronize, reopened]
2021
schedule:
2122
- cron: '24 9 * * 0'
2223

.github/workflows/format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Format
22

33
on:
44
pull_request:
5+
types: [assigned, opened, synchronize, reopened]
56
push:
67
branches:
78
- main

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- Fix issue when processing keyword arguments for `os.open()`
1717

18+
### Repository
19+
20+
- Restrict running some GitHub actions only when pull requests are updated
21+
1822
## [1.3.0] - 2021-07-26
1923

2024
### Added

0 commit comments

Comments
 (0)