Skip to content

Commit 89a5ed3

Browse files
authored
repo sync
2 parents 6e0b991 + 06e52bf commit 89a5ed3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
})
3333
3434
const botReviews = pullReviews.data
35-
.filter(review => review.user.login === 'github-actions[bot]')
35+
.filter(review => review.user.login === 'docubot')
3636
.sort((a, b) => new Date(b.submitted_at) - new Date(a.submitted_at))
3737
.shift()
3838
3939
if (botReviews) {
40-
console.log(`Pull request reviews authored by the github-action bot: ${botReviews}`)
40+
console.log(`Pull request reviews authored by docubot: ${botReviews}`)
4141
}
4242
return botReviews
4343
@@ -76,7 +76,7 @@ jobs:
7676
if: ${{ steps.filter.outputs.notAllowed == 'true' && (!steps.requested-change.outputs.result || fromJson(steps.requested-change.outputs.result).state != 'CHANGES_REQUESTED') }}
7777
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
7878
with:
79-
github-token: ${{secrets.GITHUB_TOKEN}}
79+
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
8080
script: |
8181
const changedFiles = ${{steps.filter.outputs.notAllowed_files}}
8282
const restFiles = ${{steps.filter.outputs.openapi_files}}
@@ -112,7 +112,7 @@ jobs:
112112
if: ${{ steps.filter.outputs.notAllowed == 'false' && steps.requested-change.outputs.result && fromJson(steps.requested-change.outputs.result).state == 'CHANGES_REQUESTED' }}
113113
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
114114
with:
115-
github-token: ${{secrets.GITHUB_TOKEN}}
115+
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
116116
script: |
117117
await github.pulls.dismissReview({
118118
...context.repo,

0 commit comments

Comments
 (0)