forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.43 KB
/
docs-review-collect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Add docs-reviewers request to the docs-content review board
# **What it does**: Adds PRs in github/github that requested a review from docs-reviewers to the docs-content review board
# **Why we have it**: To catch docs-reviewers requests in github/github
# **Who does it impact**: docs-content maintainers
on:
workflow_dispatch:
schedule:
- cron: '50 */6 * * *'
permissions:
contents: read
jobs:
add-requests-to-board:
name: Add requests to board
if: ${{ github.repository == 'github/docs-internal' }}
runs-on: ubuntu-latest
steps:
- name: Check out repo content
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97
- name: Setup Node
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
with:
node-version: 16.13.x
cache: npm
- name: Install dependencies
run: npm install @octokit/graphql
- name: Run script
run: |
node .github/actions-scripts/fr-add-docs-reviewers-requests.js
env:
TOKEN: ${{ secrets.DOCS_BOT_FR }}
PROJECT_NUMBER: 2936
ORGANIZATION: 'github'
REPO: 'github'
REVIEWER: 'docs-reviewers'
# This is an educated guess of how many PRs are opened in a day on the github/github repo
# If we are missing PRs, either increase this number or increase the frequency at which this script is run
NUM_PRS: 100