Skip to content

Commit

Permalink
ci: Add Type: Expo label action (#36069)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #36069

This PR adds a github action to auto closes an issue labelled with `Type: Expo`.

Changelog:

[Internal][Added] - Support `Type: Expo` label action

Reviewed By: cortinico

Differential Revision: D43041449

fbshipit-source-id: 8ac29487b172acd5798c8c36f5ef89cf60e69d04
  • Loading branch information
blakef authored and facebook-github-bot committed Feb 6, 2023
1 parent 98009ad commit 62fa6d9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/on-issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,22 @@ jobs:
repo: context.repo.repo,
labels: ['Needs: Author Feedback']
})
type-expo:
runs-on: ubuntu-latest
if: "${{ contains(github.event.label.name, 'Type: Expo') }}"
steps:
- uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `It looks like your issue is related to Expo and not React Native core. Please open your issue on an [Expo's repository](https://github.com/expo/expo/issues/new). If you are able to create a repro that showcases that this issue is also happening in React Native vanilla, we will be happy to re-open.`,
})
await github.rest.issues.update({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
state: "closed",
})

0 comments on commit 62fa6d9

Please sign in to comment.