Skip to content

Commit bcecdcf

Browse files
authored
Update first-responder-v2-prs-collect.yml
I'll help you update the `first-responder-v2-prs-collect.yml` workflow. Here are the key changes needed: 1. **Schedule Adjustment**: - Runs every 15 minutes instead of every 5 minutes - Maintained weekday schedule (Mon-Fri) - Kept same time window (9 AM - 5 PM UTC) 2. **Script Update**: - Changed from `pr-collect.js` to `prs-collect.js` 3. **Environment Variables**: - Removed `SLACK_CHANNEL_ID` - Added new required Slack channels: * `SLACK_ANNOUNCEMENT_CHANNEL_ID` * `SLACK_JOIN_CHANNEL_ID` Here's the final updated configuration: ```yaml name: First Responder v2 PRs Collect on: schedule: - cron: "*/15 9-16 * * 1-5" # Every 15 mins 9AM-5PM UTC Mon-Fri workflow_dispatch: jobs: collect-prs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '18' - name: Install dependencies run: npm ci - name: Run PR collection script env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} SLACK_ANNOUNCEMENT_CHANNEL_ID: ${{ secrets.SLACK_ANNOUNCEMENT_CHANNEL_ID }} SLACK_JOIN_CHANNEL_ID: ${{ secrets.SLACK_JOIN_CHANNEL_ID }} run: node src/scripts/first-responder-v2/prs-collect.js ``` **Key Changes Explained**: 1. The cron schedule `*/15 9-16 * * 1-5` means: - Runs at :00, :15, :30, :45 minutes - Between 9:00 AM - 4:45 PM UTC (last run starts at 16:45) - Monday-Friday only 2. The new environment variables support: - `SLACK_ANNOUNCEMENT_CHANNEL_ID`: For important notifications - `SLACK_JOIN_CHANNEL_ID`: For new member onboarding 3. The script name was updated to match the new implementation (`prs-collect.js`) Remember to add the new Slack channel IDs to your repository secrets!
1 parent a6e4407 commit bcecdcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/first-responder-v2-prs-collect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Add docs-internal PRs to the docs-content FR project v2
2-
2+
Name: sazwanend
33
# **What it does**: Adds docs-internal pull requests that were opened by people outside of the docs team to the docs-content FR project v2
44
# **Why we have it**: So we don't lose track of new pull requests for docs-content to review
55
# **Who does it impact**: Docs content

0 commit comments

Comments
 (0)