Compare commits

..

3 Commits

Author SHA1 Message Date
Zhigang Fang
fbfed01098 fix: import animated from react-native-reanimated 2021-06-25 20:36:10 +08:00
Cedric van Putten
4c16083d51 chore: upgrade to expo-github-actions v6 2021-06-23 15:40:22 +02:00
Satyajit Sahoo
e7631ea239 chore: comment on closed issues regarding watching 2021-06-15 03:32:04 +02:00
4 changed files with 37 additions and 7 deletions

31
.github/workflows/closed-issue.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Comment on closed issue
on:
issue_comment:
types: [created]
jobs:
closed-issue:
runs-on: ubuntu-latest
if: ${{ github.event.issue.state == 'closed' }}
steps:
- uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const body = "Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.";
const comments = await github.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
if (comments.data.some(comment => comment.body === body)) {
return;
}
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});

View File

@@ -16,10 +16,9 @@ jobs:
node-version: 14.x
- name: Setup Expo
uses: expo/expo-github-action@v5
uses: expo/expo-github-action@v6
with:
expo-token: ${{ secrets.EXPO_TOKEN }}
expo-cache: true
token: ${{ secrets.EXPO_TOKEN }}
- name: Restore yarn cache
id: yarn-cache

View File

@@ -19,10 +19,9 @@ jobs:
node-version: 14.x
- name: Setup Expo
uses: expo/expo-github-action@v5
uses: expo/expo-github-action@v6
with:
expo-token: ${{ secrets.EXPO_TOKEN }}
expo-cache: true
token: ${{ secrets.EXPO_TOKEN }}
- name: Restore yarn cache
id: yarn-cache

View File

@@ -13,7 +13,8 @@ import type {
StackNavigationState,
} from '@react-navigation/native';
import type * as React from 'react';
import type { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
import type * as Animated from 'react-native-reanimated';
export type StackNavigationEventMap = {
/**