-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'master' branch and resolve conflicts
- Loading branch information
Showing
68 changed files
with
1,122,158 additions
and
421,369 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
.github/workflows/dependabot-approve-and-request-merge.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "dependabot approve-and-request-merge" | ||
|
||
on: | ||
pull_request_target | ||
|
||
jobs: | ||
worker: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: approve-and-request-merge | ||
uses: actions/github-script@v4.0.2 | ||
with: | ||
script: | | ||
const opts = github.pulls.listReviews.endpoint.merge({ | ||
pull_number: context.payload.pull_request.number, | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
}); | ||
const comments = await github.paginate(opts); | ||
const mergeComment = comments.find( | ||
(review) => | ||
review.body === "@dependabot merge" && review.state === "APPROVED" | ||
); | ||
if (mergeComment) { | ||
console.log( | ||
`The user "${mergeComment.user.login}" has already approved and requested this PR is merged, exiting` | ||
); | ||
return; | ||
} | ||
github.pulls.createReview({ | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
pull_number: context.payload.pull_request.number, | ||
event: 'APPROVE', | ||
body: '@dependabot merge' | ||
}) | ||
github-token: ${{ secrets.WHYDAH_GITHUB_TOKEN_AUTO_APPROVE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
build | ||
dist | ||
.cache | ||
.idea | ||
tags | ||
**/.coverage/** | ||
lerna-debug.log |
Oops, something went wrong.