Skip to content

Commit 965847f

Browse files
authored
Prevent GH actions trigger on forks, update template (#2696)
## Description Hippity hoppity your code is now my property (software-mansion/react-native-reanimated#5030). Also updates the template: - adds MacOS as platform - updates placeholder version of GH to 2.14.0 from 2.5.0 (yikes) - updates placeholder RN version to 0.73.0 from 0.69.0 (not nice, I can be talked out of this)
1 parent f89b1bf commit 965847f

13 files changed

+15
-2
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ body:
5555
attributes:
5656
label: Gesture Handler version
5757
description: What version of react-native-gesture-handler are you using?
58-
placeholder: 2.5.0
58+
placeholder: 2.14.0
5959
validations:
6060
required: true
6161

@@ -64,7 +64,7 @@ body:
6464
attributes:
6565
label: React Native version
6666
description: What version of react-native are you using?
67-
placeholder: 0.69.0
67+
placeholder: 0.73.0
6868
validations:
6969
required: true
7070

@@ -78,6 +78,7 @@ body:
7878
- Android
7979
- iOS
8080
- Web
81+
- MacOS
8182
validations:
8283
required: true
8384

.github/workflows/android-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
workflow_dispatch:
1414
jobs:
1515
build:
16+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1617
runs-on: ubuntu-latest
1718
strategy:
1819
matrix:

.github/workflows/close-when-stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
main:
13+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout Actions

.github/workflows/docs-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
check:
11+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1112
runs-on: ubuntu-latest
1213
concurrency:
1314
group: docs-check-${{ github.ref }}

.github/workflows/ios-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
workflow_dispatch:
1414
jobs:
1515
build:
16+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1617
runs-on: macos-12
1718
strategy:
1819
matrix:

.github/workflows/kotlin-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
workflow_dispatch:
1010
jobs:
1111
check:
12+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1213
runs-on: ubuntu-latest
1314
concurrency:
1415
group: kotlin-lint-${{ github.ref }}

.github/workflows/macos-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
workflow_dispatch:
1313
jobs:
1414
build:
15+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1516
runs-on: macos-12
1617
strategy:
1718
matrix:

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
publish:
10+
if: github.repository == 'software-mansion/react-native-gesture-handler'
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Check out

.github/workflows/needs-more-info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
main:
8+
if: ${{ github.repository == 'software-mansion/react-native-gesture-handler' && !contains(github.event.issue.labels.*.name, 'Maintainer issue') }}
89
runs-on: ubuntu-latest
910
concurrency:
1011
group: needs-more-info-${{ github.event.issue.number }}

.github/workflows/needs-repro.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
main:
10+
if: ${{ github.repository == 'software-mansion/react-native-gesture-handler' && !contains(github.event.issue.labels.*.name, 'Maintainer issue') }}
1011
runs-on: ubuntu-latest
1112
concurrency:
1213
group: needs-repro-${{ github.event.issue.number }}

0 commit comments

Comments
 (0)