Skip to content

Commit 99e11c7

Browse files
author
Elad Ben-Israel
authored
Merge branch 'master' into patch-3
2 parents f8362ff + 296a10d commit 99e11c7

File tree

904 files changed

+27825
-7952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

904 files changed

+27825
-7952
lines changed

.dependabot/config.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Reference: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
2+
# NOTE: dependabot only takes care of updating non-npm deps
3+
# npm dependencies are updated through the "yarn-upgrade" github workflow.
4+
5+
version: 2
6+
updates:
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
labels:
12+
- "pr/auto-approve"
13+
open-pull-requests-limit: 5

.github/workflows/auto-approve-dependabot.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/auto-approve-v2-merge-forward.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/auto-approve.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge.
2+
3+
name: auto-approve
4+
on: pull_request
5+
6+
jobs:
7+
auto-approve:
8+
if: >
9+
contains(github.event.pull_request.labels.*.name, 'pr/auto-approve') &&
10+
contains(['aws-cdk-automation', 'dependabot[bot]', 'dependabot-preview[bot]'], github.event.pull_request.user.login)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: hmarr/[email protected]
14+
with:
15+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/issue-label-assign.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: Naturalclar/issue-action@f229cda
14+
- uses: Naturalclar/issue-action@v2.0.2
1515
with:
1616
github-token: "${{ secrets.GITHUB_TOKEN }}"
1717
title-or-body: 'title'
@@ -90,7 +90,7 @@ jobs:
9090
{"keywords":["(@aws-cdk/aws-elasticloadbalancingv2-targets)","(aws-elasticloadbalancingv2-targets)","(elasticloadbalancingv2-targets)","(elasticloadbalancingv2 targets)","(elbv2 targets)"],"labels":["@aws-cdk/aws-elasticloadbalancingv2-targets"],"assignees":["njlynch"]},
9191
{"keywords":["(@aws-cdk/aws-elasticsearch)","(aws-elasticsearch)","(elasticsearch)","(elastic search)","(elastic-search)"],"labels":["@aws-cdk/aws-elasticsearch"],"assignees":["iliapolo"]},
9292
{"keywords":["(@aws-cdk/aws-emr)","(aws-emr)","(emr)"],"labels":["@aws-cdk/aws-emr"],"assignees":["iliapolo"]},
93-
{"keywords":["(@aws-cdk/aws-events)","(aws-events)","(events)","(eventbridge)","event-bridge)"],"labels":["@aws-cdk/aws-events"],"assignees":["rix0rrr"]},
93+
{"keywords":["(@aws-cdk/aws-events)","(aws-events)","(events)","(eventbridge)","(event-bridge)"],"labels":["@aws-cdk/aws-events"],"assignees":["rix0rrr"]},
9494
{"keywords":["(@aws-cdk/aws-events-targets)","(aws-events-targets)","(events-targets)","(events targets)"],"labels":["@aws-cdk/aws-events-targets"],"assignees":["rix0rrr"]},
9595
{"keywords":["(@aws-cdk/aws-eventschemas)","(aws-eventschemas)","(eventschemas)","(event schemas)"],"labels":["@aws-cdk/aws-eventschemas"],"assignees":["skinny85"]},
9696
{"keywords":["(@aws-cdk/aws-fms)","(aws-fms)","(fms)"],"labels":["@aws-cdk/aws-fms"],"assignees":["rix0rrr"]},
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Automated actions for PRs against the v2-main branch
2+
name: v2
3+
on:
4+
pull_request:
5+
branches:
6+
- v2-main
7+
types:
8+
- labeled
9+
- opened
10+
- ready_for_review
11+
- reopened
12+
- synchronize
13+
- unlabeled
14+
- unlocked
15+
16+
jobs:
17+
# Run yarn pkglint on merge forward PRs and commit the results
18+
pkglint:
19+
if: contains(github.event.pull_request.labels.*.name, 'pr/forward-merge')
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@v2
24+
with:
25+
branch: ${{ github.event.pull_request.head.ref }}
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
- name: lint
28+
run: |-
29+
yarn install --frozen-lockfile
30+
yarn pkglint
31+
- name: push
32+
uses: stefanzweifel/git-auto-commit-action@v4
33+
with:
34+
commit_message: 'automatic pkglint fixes'

.github/workflows/yarn-upgrade.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: Set up Node
19-
uses: actions/[email protected].0
19+
uses: actions/[email protected].4
2020
with:
2121
node-version: 10
2222

@@ -25,7 +25,7 @@ jobs:
2525
run: echo "::set-output name=dir::$(yarn cache dir)"
2626

2727
- name: Restore Yarn cache
28-
uses: actions/cache@v2
28+
uses: actions/cache@v2.1.4
2929
with:
3030
path: ${{ steps.yarn-cache.outputs.dir }}
3131
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -55,12 +55,15 @@ jobs:
5555
lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --target=minor
5656
lerna exec --parallel ncu -- --upgrade --filter=typescript --target=patch
5757
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/fs-extra,constructs,typescript,aws-sdk,${{ steps.list-packages.outputs.list }}' --target=minor
58-
# This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`)
59-
- name: Run "yarn install --force"
60-
run: yarn install --force
58+
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn update" to run)
59+
- name: Run "yarn install"
60+
run: yarn install
61+
62+
- name: Run "yarn upgrade"
63+
run: yarn upgrade
6164

6265
- name: Make Pull Request
63-
uses: peter-evans/create-pull-request@v2
66+
uses: peter-evans/create-pull-request@v3
6467
with:
6568
# Git commit details
6669
branch: automation/yarn-upgrade
@@ -71,7 +74,7 @@ jobs:
7174
title: 'chore: npm-check-updates && yarn upgrade'
7275
body: |-
7376
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
74-
labels: contribution/core,dependencies
77+
labels: contribution/core,dependencies,pr/auto-approve
7578
team-reviewers: aws-cdk-team
7679
# Privileged token so automated PR validation happens
7780
token: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)