Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync #1

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes #
22 changes: 22 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: auto-approve
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
jobs:
approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: |
!github.event.pull_request.draft &&
!contains(github.event.pull_request.labels.*.name, 'do-not-merge') &&
(contains(github.event.pull_request.labels.*.name, 'auto-approve') || github.event.pull_request.user.login == 'pgollucci' || github.event.pull_request.user.login == 'p6m7g8-automation')
steps:
- uses: hmarr/[email protected]
with:
github-token: ${{ secrets.P6_A_GH_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
pull_request: {}
workflow_dispatch: {}

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: CDK Build
uses: p6m7g8-actions/cdk-build@main
with:
aws_region: ${{ secrets.CDK_DEPLOY_REGION }}
aws_role: ${{ secrets.AWS_ROLE }}
aws_session_name: ${{ secrets.AWS_SESSION_NAME }}
cdk_deploy_account: ${{ secrets.CDK_DEPLOY_ACCOUNT }}
cdk_deploy_region: ${{ secrets.CDK_DEPLOY_REGION }}
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch: {}

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: CDK Build and Deploy
uses: p6m7g8-actions/cdk-deploy@main
with:
aws_region: ${{ secrets.CDK_DEPLOY_REGION }}
aws_role: ${{ secrets.AWS_ROLE }}
aws_session_name: ${{ secrets.AWS_SESSION_NAME }}
cdk_deploy_account: ${{ secrets.CDK_DEPLOY_ACCOUNT }}
cdk_deploy_region: ${{ secrets.CDK_DEPLOY_REGION }}
34 changes: 34 additions & 0 deletions .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pull-request-lint
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
- edited
jobs:
validate:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |-
chore
ci
docs
feat
fix
major
perf
refactor
revert
style
test
requireScope: false
13 changes: 13 additions & 0 deletions .github/workflows/upgrade-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: upgrade-main

on:
workflow_dispatch: {}
schedule:
- cron: '0 14 * * *'

jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- name: Upgrade Deps
uses: p6m7g8-actions/cdk-upgrade@main
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
!/.gitattributes
!/.projen/tasks.json
!/.projen/deps.json
!/.projen/files.json
!/.github/workflows/pull-request-lint.yml
!/.github/workflows/auto-approve.yml
!/package.json
!/LICENSE
!/.npmignore
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
pids
*.pid
*.seed
*.pid.lock
lib-cov
coverage
*.lcov
.nyc_output
build/Release
node_modules/
jspm_packages/
*.tsbuildinfo
.eslintcache
*.tgz
.yarn-integrity
.cache
!/.projenrc.js
/test-reports/
junit.xml
/coverage/
!/.github/workflows/build.yml
!/.mergify.yml
!/.github/workflows/upgrade.yml
!/.github/pull_request_template.md
!/.prettierignore
!/.prettierrc.json
!/.npmrc
!/test/
!/tsconfig.json
!/tsconfig.dev.json
!/src/
/lib
/dist/
!/.eslintrc.json
/assets/
!/cdk.json
/cdk.out/
.cdk.staging/
.parcel-cache/
35 changes: 35 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
queue_rules:
- name: default
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}
merge_method: squash
pull_request_rules:
- name: Put PRs in queue (squash)
conditions:
- base = main
- "#approved-reviews-by>=1"
- -label~=(do-not-merge)
- status-success=build
actions:
delete_head_branch:
queue:
merge_method: squash
- name: Label core contributions
actions:
label:
add:
- contribution/core
conditions:
- author~=^(pgollucci)$
- label!=contribution/core
- name: Label auto-merge for core
actions:
label:
add:
- auto-merge
conditions:
- label=contribution/core
- label!=auto-merge
merge_queue:
max_parallel_checks: 1
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"foxundermoon.shell-format",
"orta.vscode-jest",
"vscode.json-language-features",
"vscode.typescript-language-features"
]
}
66 changes: 66 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.organizeImports": "never"
},
"eslint.validate": [
"javascript",
"typescript",
"markdown",
"json",
"jsonc",
"yaml",
"xml",
"html"
],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.format.enable": false,
"jest.runMode": "on-demand",
"editor.tabSize": 2,
"explorer.excludeGitIgnore": false,
"files.exclude": {
"**/.git": false,
"**/.gitignore": false,
"node_modules": true,
"dist": true,
".cache": true
},
"files.associations": {
"*.test.ts": "typescript"
},
"typescript.suggest.autoImports": true,
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.referencesCodeLens.enabled": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"cSpell.words": [
"AAAAWWW",
"apigatewayv",
"apigwi",
"Brotli",
"fieldname",
"kqxq",
"lambdajs",
"mebibytes",
"mybucketf",
"ngfg",
"presign",
"presigner"
]
}
Loading
Loading