mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
.github: Add PAT to PRSubmitActions/Add Reviewers
(cherry picked from commit 12d2bd23d5
)
This commit is contained in:
committed by
Asterisk Development Team
parent
af5acc405d
commit
e4af0eaa47
3
.github/workflows/PRSubmitActions.yml
vendored
3
.github/workflows/PRSubmitActions.yml
vendored
@@ -123,8 +123,9 @@ jobs:
|
|||||||
REVIEWERS: ${{vars.PR_REVIEWERS}}
|
REVIEWERS: ${{vars.PR_REVIEWERS}}
|
||||||
with:
|
with:
|
||||||
retries: 5
|
retries: 5
|
||||||
|
github-token: ${{ secrets.ASTERISKTEAM_PAT }}
|
||||||
script: |
|
script: |
|
||||||
let rs = JSON.parse(process.env.REVIEWERS);
|
let rs = JSON.parse(process.env.REVIEWERS.length ? process.env.REVIEWERS : '[]');
|
||||||
let users = [];
|
let users = [];
|
||||||
let teams = [];
|
let teams = [];
|
||||||
for (const r of rs) {
|
for (const r of rs) {
|
||||||
|
Reference in New Issue
Block a user