mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45480 We currently use the default GITHUB_ACTION which makes a lot of interaction appear as user "GitHub Actions". Instead we could use the `REACT_NATIVE_BOT_GITHUB_TOKEN` which we have as secret so the bot will actually perform the actions. Changelog: [Internal] [Changed] - Act as react-native-bot on all the actions Reviewed By: cipolleschi Differential Revision: D59815201 fbshipit-source-id: 702b121ec07d0db10abf25e23f7ddf5658dd5d62
20 lines
746 B
YAML
20 lines
746 B
YAML
name: Check for reproducer
|
|
# This workflow is triggered when issue is created or edited.
|
|
on:
|
|
issues:
|
|
types: [opened, edited]
|
|
|
|
jobs:
|
|
check-for-reproducer:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'facebook/react-native' && github.event.issue.pull_request == null && github.event.issue.state == 'open' && !contains(github.event.issue.labels.*.name, ':open_umbrella: Umbrella')
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/github-script@v6
|
|
with:
|
|
github-token: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }}
|
|
script: |
|
|
const checkForReproducer = require('./.github/workflow-scripts/checkForReproducer.js')
|
|
await checkForReproducer(github, context)
|