From ea876054cfdcdfba1d8ded69ab359f20072aef6c Mon Sep 17 00:00:00 2001 From: shubhamguptadream11 Date: Thu, 6 Feb 2025 13:15:29 -0800 Subject: [PATCH] feat: added new workflow for issue monitoring in react native (#49225) Summary: While triaging issues in the React Native repository, we face two major challenges: - Missing Issues: The large volume of issues makes it difficult to ensure that none are overlooked. - Ownership: There is no structured process to determine who should handle which issue. To address these challenges, we are setting up this action. ## Changelog: Here we are using this github action: https://github.com/react-native-community/repo-monitor to monitor new issues and then notify it on specific discord server to notify someone. Currently this action runs every 6 hours. Requirements: - We need following inputs to make this workflow run: - `DISCORD_WEBHOOK_URL` to be added in secrets [Needed for posting message in specific channels] - `role_id`: To notify a group. Pull Request resolved: https://github.com/facebook/react-native/pull/49225 Test Plan: NA Reviewed By: cipolleschi Differential Revision: D69254130 Pulled By: cortinico fbshipit-source-id: 43a57f8f3bf161042a9432d02f292896ea8f7622 --- .github/workflows/monitor-new-issues.yml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/monitor-new-issues.yml diff --git a/.github/workflows/monitor-new-issues.yml b/.github/workflows/monitor-new-issues.yml new file mode 100644 index 00000000000..726d03682db --- /dev/null +++ b/.github/workflows/monitor-new-issues.yml @@ -0,0 +1,27 @@ +name: Monitor React Native New Issues + +on: + schedule: + - cron: "0 */6 * * *" + workflow_dispatch: + +jobs: + monitor-issues: + runs-on: ubuntu-latest + steps: + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Monitor New Issues + uses: react-native-community/repo-monitor@v1.0.0 + 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: "role" + discord_ids: "1295340673779630141"