mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
75e04b8c41
Summary: This Diff simply adds some docs on how the secret must be formatted, and removes a print that would expose the triager IDs is anyone would look at the logs (not a big deal given that the ids are public on Discord, though). ## Changelog: [Internal] - Reviewed By: cortinico Differential Revision: D79556988 fbshipit-source-id: 23d6e72141dff4e91242cc1d9f5b95ebaf5ca858
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
name: Monitor React Native New Issues
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0,6,12,18 * * *"
|
|
workflow_dispatch:
|
|
|
|
# Reminder for when we have to update the schedule (before Jan 2026):
|
|
# the secrets.ONCALL_SCHEDULE secret must be on a single line and must have all the `"` escaped as `\"`.
|
|
# Only a meta engineer can update it through the OSS internal portal.
|
|
|
|
jobs:
|
|
monitor-issues:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Node.js
|
|
uses: ./.github/actions/setup-node
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Extract next oncall
|
|
run: |
|
|
ONCALLS=$(node ./.github/workflow-scripts/extractIssueOncalls.js "${{ secrets.ONCALL_SCHEDULE }}")
|
|
ONCALL1=$(echo $ONCALLS | cut -d ' ' -f 1)
|
|
ONCALL2=$(echo $ONCALLS | cut -d ' ' -f 2)
|
|
echo "oncall1=$ONCALL1" >> $GITHUB_ENV
|
|
echo "oncall2=$ONCALL2" >> $GITHUB_ENV
|
|
- name: Monitor New Issues
|
|
uses: react-native-community/repo-monitor@v1.0.1
|
|
with:
|
|
task: "monitor-issues"
|
|
git_secret: ${{ secrets.GITHUB_TOKEN }}
|
|
notifier: "discord"
|
|
fetch_data_interval: 6
|
|
repo_owner: "facebook"
|
|
repo_name: "react-native"
|
|
discord_webhook_url: "${{ secrets.DISCORD_WEBHOOK_URL }}"
|
|
discord_id_type: "user"
|
|
discord_ids: "${{ env.oncall1 }},${{ env.oncall2 }}"
|