-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.50.0/CHANGELOG.md)
- Loading branch information
Showing
53 changed files
with
1,137 additions
and
553 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,15 +1,55 @@ | ||
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge. | ||
|
||
name: auto-approve | ||
on: pull_request | ||
on: | ||
pull_request: | ||
types: | ||
- labeled # Run when labels are updated | ||
- opened # Run when a PR is initially submitted | ||
- ready_for_review # Run when a Draft PR is upgraded PR | ||
- reopened # Run when a PR is re-opened | ||
- synchronize # Run when a PR head branch is updated | ||
|
||
jobs: | ||
auto-approve: | ||
if: contains(github.event.pull_request.labels.*.name, 'pr/auto-approve') | ||
if: contains(github.event.pull_request.labels.*.name, 'pr/auto-approve') || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
|
||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: hmarr/auto-approve-action@v2.1.0 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
# Check whether the PR needs an automated approval or not. We will only add an automated | ||
# approval if the PR currently has no reviews on it. Dismissed reviews are ignored in the | ||
# context of this check. This way, the automated workflow will not do anything if a manual | ||
# review has already been done for the PR (implicit opt-out). | ||
- uses: actions/github-script@v5.0.0 | ||
id: needs-approving | ||
with: | ||
script: |- | ||
const { issue: { number: pull_number }, repo: { owner, repo } } = context; | ||
const reviews = (await github.rest.pulls.listReviews({ owner, repo, pull_number })).data | ||
.filter((review) => review.state !== 'DISMISSED'); | ||
return reviews.length === 0; | ||
# If this is NOT a dependabot PR, just approve it. | ||
- uses: actions/github-script@v5.0.0 | ||
if: steps.needs-approving.outputs.result == 'true' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' | ||
with: | ||
script: |- | ||
const { issue: { number: pull_number }, repo: { owner, repo } } = context; | ||
github.rest.pulls.createReview({ | ||
owner, repo, pull_number, | ||
event: 'APPROVE', | ||
}); | ||
# If this IS a dependabot PR, approve it and ask dependabot to squash-and-merge it when CI passes. | ||
- uses: actions/github-script@v5.0.0 | ||
if: steps.needs-approving.outputs.result == 'true' && (github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') | ||
with: | ||
script: |- | ||
const { issue: { number: pull_number }, repo: { owner, repo } } = context; | ||
github.rest.pulls.createReview({ | ||
owner, repo, pull_number, | ||
body: '@dependabot squash and merge', | ||
event: 'APPROVE', | ||
}); |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mkdocs~=1.2.3 | ||
mkdocs-awesome-pages-plugin~=2.6.0 | ||
mkdocs-material~=7.3.6 | ||
mkdocs-material~=8.1.3 | ||
mkdocs-git-revision-date-plugin~=0.3.1 |
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"rejectCycles": true | ||
} | ||
}, | ||
"version": "1.49.0" | ||
"version": "1.50.0" | ||
} |
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
black~=21.11b1 | ||
black~=21.12b0 | ||
mypy==0.812 | ||
pip~=21.3 | ||
pytest~=6.2 | ||
pytest-mypy~=0.8 | ||
setuptools~=59.2 | ||
setuptools~=59.6 | ||
wheel~=0.37 | ||
|
||
-e . |
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
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
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
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
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
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
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
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
Oops, something went wrong.