chore: remove approval workflow (#41650)
This commit is contained in:
committed by
GitHub
parent
b67b0b9baa
commit
41577b818c
40
.github/workflows/dependency-update.yml
vendored
40
.github/workflows/dependency-update.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
# 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.CROWDIN_CAMPERBOT_PAT}}
|
|
||||||
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