Skip to content

Commit

Permalink
Merge branch 'master' into lambda-nodejs-local-cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel authored Aug 26, 2020
2 parents 13619c1 + e50a5a9 commit 98f9513
Show file tree
Hide file tree
Showing 295 changed files with 6,113 additions and 4,095 deletions.
6 changes: 1 addition & 5 deletions .github/actions/prlinter/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Pull Request Linter
description: Execute validation rules on GitHub Pull Requests
inputs:
check:
description: "Which check to execute. Choose one of: [MANDATORY_CHANGES]"
required: true
runs:
using: node12
main: index.js
main: index.js
14 changes: 1 addition & 13 deletions .github/actions/prlinter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,13 @@ const core = require('@actions/core');
const github = require('@actions/github');
const linter = require('prlint')

const checks = {
"MANDATORY_CHANGES": linter.mandatoryChanges
}

async function run() {
const number = github.context.issue.number;

try {

const checkType = core.getInput('check', {required: true});

const check = checks[checkType];

if (!check) {
throw new Error(`Unsupported check type '${checkType}'. Choose one of: ${Object.keys(checks)}`)
}
await linter.validatePr(number);

await check(number);

} catch (error) {

core.setFailed(error.message);
Expand Down
72 changes: 36 additions & 36 deletions .github/workflows/issue-label-assign.yml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: PR Linter
on: pull_request

jobs:
mandatory-changes:
validate-pr:
runs-on: ubuntu-latest
steps:

Expand All @@ -17,8 +17,5 @@ jobs:

- name: Validate
uses: ./.github/actions/prlinter
with:
check: MANDATORY_CHANGES
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

10 changes: 10 additions & 0 deletions bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ echo "Starting ${version} version bump"

# Generate CHANGELOG and create a commit (see .versionrc.json)
npx standard-version --release-as ${version}

# I am sorry.
#
# I've gone diving through the code of `conventional-changelog` to see if there
# was a way to configure the string and ultimately I decided that a 'sed' was the simpler
# way to go.
sed -i.tmp -e 's/BREAKING CHANGES$/BREAKING CHANGES TO EXPERIMENTAL FEATURES/' CHANGELOG.md
rm CHANGELOG.md.tmp
git add CHANGELOG.md
git commit --amend --no-edit
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"build-all": "tsc -b"
},
"devDependencies": {
"conventional-changelog-cli": "^2.0.34",
"conventional-changelog-cli": "^2.1.0",
"fs-extra": "^9.0.1",
"graceful-fs": "^4.2.4",
"jsii-diff": "^1.9.0",
"jsii-pacmak": "^1.9.0",
"jsii-rosetta": "^1.9.0",
"jest-junit": "^11.0.1",
"jest-junit": "^11.1.0",
"jsii-diff": "^1.11.0",
"jsii-pacmak": "^1.11.0",
"jsii-rosetta": "^1.11.0",
"lerna": "^3.22.1",
"standard-version": "^8.0.2",
"typescript": "~3.9.6"
"standard-version": "^9.0.0",
"typescript": "~3.9.7"
},
"resolutions-comment": "should be removed or reviewed when nodeunit dependency is dropped or adjusted",
"resolutions": {
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.alexa-ask",
"module": "aws_cdk.alexa_ask"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,11 +72,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"module": "aws_cdk.app_delivery"
}
},
"outdir": "dist"
"outdir": "dist",
"projectReferences": true
},
"scripts": {
"build": "cdk-build",
Expand All @@ -49,7 +50,7 @@
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
Expand Down Expand Up @@ -87,7 +88,7 @@
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
14 changes: 7 additions & 7 deletions packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/jest": "^26.0.4",
"@types/jest": "^26.0.10",
"cdk-build-tools": "0.0.0",
"jest": "^26.0.4",
"jest": "^26.4.2",
"pkglint": "0.0.0",
"ts-jest": "^26.1.3"
"ts-jest": "^26.2.0"
},
"dependencies": {
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"@aws-cdk/cloudformation-diff": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"jest": "^26.0.4",
"constructs": "^3.0.2"
"constructs": "^3.0.4",
"jest": "^26.4.2"
},
"repository": {
"url": "https://github.com/aws/aws-cdk.git",
Expand Down
11 changes: 6 additions & 5 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.assets",
"module": "aws_cdk.assets"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,25 +66,25 @@
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
"@types/nodeunit": "^0.0.31",
"@types/sinon": "^9.0.4",
"@types/sinon": "^9.0.5",
"aws-cdk": "0.0.0",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0",
"sinon": "^9.0.2",
"sinon": "^9.0.3",
"ts-mock-imports": "^1.3.0"
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-accessanalyzer",
"module": "aws_cdk.aws_accessanalyzer"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -72,11 +73,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-acmpca",
"module": "aws_cdk.aws_acmpca"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -72,11 +73,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-amazonmq",
"module": "aws_cdk.aws_amazonmq"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,11 +72,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-amplify",
"module": "aws_cdk.aws_amplify"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -78,7 +79,7 @@
"@aws-cdk/aws-codecommit": "0.0.0",
"@aws-cdk/aws-secretsmanager": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/aws-iam": "0.0.0",
Expand All @@ -87,7 +88,7 @@
"@aws-cdk/aws-codecommit": "0.0.0",
"@aws-cdk/aws-secretsmanager": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-apigateway",
"module": "aws_cdk.aws_apigateway"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -82,7 +83,7 @@
"@aws-cdk/aws-s3-assets": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -97,7 +98,7 @@
"@aws-cdk/aws-s3-assets": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-apigatewayv2",
"module": "aws_cdk.aws_apigatewayv2"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -75,14 +76,14 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/aws-certificatemanager": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/aws-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"distName": "aws-cdk.aws-appconfig",
"module": "aws_cdk.aws_appconfig"
}
}
},
"projectReferences": true
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -72,11 +73,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.2"
"constructs": "^3.0.4"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
Expand Down
Loading

0 comments on commit 98f9513

Please sign in to comment.