Skip to content

Commit 11739f4

Browse files
Update automation to add audit log PRs to the review board (#42657)
Co-authored-by: skedwards88 <skedwards88@github.com>
1 parent dc3a073 commit 11739f4

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/actions-scripts/fr-add-docs-reviewers-requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async function run() {
193193
item: itemID,
194194
author: newItemAuthors[index],
195195
turnaround: 2,
196-
feature: 'OpenAPI schema update',
196+
feature: process.env.FEATURE,
197197
})
198198
const contributorType = (await isDocsTeamMember(newItemAuthors[index]))
199199
? docsMemberTypeID

.github/workflows/docs-review-collect.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Add docs-reviewers request to the docs-content review board
22

3-
# **What it does**: Adds PRs in github/github that requested a review from docs-reviewers to the docs-content review board
4-
# **Why we have it**: To catch docs-reviewers requests in github/github
3+
# **What it does**: Adds PRs in github/github and github/audit-log-allowlists that requested a review from docs-reviewers to the docs-content review board
4+
# **Why we have it**: To catch docs-reviewers requests in github/github and github/audit-log-allowlists
55
# **Who does it impact**: docs-content maintainers
66

77
on:
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: npm install @octokit/graphql
3333

34-
- name: Run script
34+
- name: Run script for github
3535
run: |
3636
node .github/actions-scripts/fr-add-docs-reviewers-requests.js
3737
env:
@@ -40,3 +40,15 @@ jobs:
4040
ORGANIZATION: 'github'
4141
REPO: 'github'
4242
REVIEWER: 'docs-reviewers'
43+
FEATURE: 'OpenAPI schema update'
44+
45+
- name: Run script for audit-log-allowlists
46+
run: |
47+
node .github/actions-scripts/fr-add-docs-reviewers-requests.js
48+
env:
49+
TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
50+
PROJECT_NUMBER: 2936
51+
ORGANIZATION: 'github'
52+
REPO: 'audit-log-allowlists'
53+
REVIEWER: 'docs-reviewers'
54+
FEATURE: 'Audit log event descriptions'

0 commit comments

Comments
 (0)