fix(actions): update workflows, add auto-approval (#41591)
* fix(actions): update workflows, add auto-approval * fix: apply suggestions from code review Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com> * fix: apply suggestions from code review Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com> Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
18ac058840
commit
0ba8274066
@ -101,4 +101,4 @@ jobs:
|
|||||||
title: 'chore(i18n,client): processed translations'
|
title: 'chore(i18n,client): processed translations'
|
||||||
body: 'This PR was opened auto-magically by Crowdin.'
|
body: 'This PR was opened auto-magically by Crowdin.'
|
||||||
labels: 'crowdin-sync, scope: UI'
|
labels: 'crowdin-sync, scope: UI'
|
||||||
reviewers: 'RandellDawson, nhcarrigan'
|
team_reviewers: 'i18n'
|
||||||
|
@ -102,4 +102,4 @@ jobs:
|
|||||||
title: 'chore(i18n,curriculum): processed translations'
|
title: 'chore(i18n,curriculum): processed translations'
|
||||||
body: 'This PR was opened auto-magically by Crowdin.'
|
body: 'This PR was opened auto-magically by Crowdin.'
|
||||||
labels: 'crowdin-sync'
|
labels: 'crowdin-sync'
|
||||||
reviewers: 'RandellDawson, nhcarrigan'
|
team_reviewers: 'i18n'
|
||||||
|
@ -135,4 +135,4 @@ jobs:
|
|||||||
title: 'chore(i18n,docs): processed translations'
|
title: 'chore(i18n,docs): processed translations'
|
||||||
body: 'This PR was opened auto-magically by Crowdin.'
|
body: 'This PR was opened auto-magically by Crowdin.'
|
||||||
labels: 'crowdin-sync'
|
labels: 'crowdin-sync'
|
||||||
reviewers: 'RandellDawson, nhcarrigan'
|
team_reviewers: 'i18n'
|
||||||
|
40
.github/workflows/dependency-update.yml
vendored
Normal file
40
.github/workflows/dependency-update.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# This workflow allows us to reach the merging requirements
|
||||||
|
name: Deps update auto approval
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- 'docs/index.html'
|
||||||
|
- '.github/workflows/*.yml'
|
||||||
|
- 'client/package.json'
|
||||||
|
- 'client/plugins/**/package.json'
|
||||||
|
- 'curriculum/package.json'
|
||||||
|
- 'package.json'
|
||||||
|
- 'tools/**/package.json'
|
||||||
|
# - 'api-server/**/package.json'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-approve-renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v3
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_ACTIONS_CAMPERBOT_PA_TOKEN}}
|
||||||
|
script: |
|
||||||
|
if (context.payload.pull_request.user.login === "renovate[bot]") {
|
||||||
|
github.pulls.createReview({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
event: 'APPROVE',
|
||||||
|
body: "To be approved by `@freeCodeCamp/dev-team`"
|
||||||
|
});
|
||||||
|
github.pulls.requestReviewers({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
reviewers: ['raisedadead']
|
||||||
|
// team_reviewers: [`dev-team`]
|
||||||
|
});
|
||||||
|
}
|
Reference in New Issue
Block a user