Skip to content
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
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/new-feature-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: New Feature Template
about: Template for a new Feature Request
title: "[New Feature]:"
labels: feature-request
assignees: ''

---

## Feature Description
A clear and concise description of the feature you're proposing.

## Problem Statement
Describe the problem this feature would solve

## Alternatives Considered/ Work-arounds
- Describe any alternative solutions or features you've considered.
- If you are already circumventing this problem through any code-changes or processes, please mention those

## Additional Context
Add any other context, screenshots, or examples about the feature request here.

## Willingness to Contribute
Are you willing to submit a Pull Request for this feature? [Yes/No]
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*Issue #, if available:*

*Description of changes:*


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: tuesday
open-pull-requests-limit: 10
31 changes: 31 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [pull_request]

name: Check

jobs:
check:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: |
npm ci
npm test

conventional-commits:
name: Semantic Pull Request
runs-on: ubuntu-latest
steps:
- name: validate
uses: actions/github-script@v7
with:
script: |
// See https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c#file-conventional-commit-regex-md
const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)/g;
const pr = context.payload.pull_request;
const title = pr.title;
if (title.match(regex) == null) {
throw `PR title "${title}"" does not match conventional commits from https://www.conventionalcommits.org/en/v1.0.0/`
}
37 changes: 37 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Package

# When a pull request is opened/reopened or when the head branch of the pull request is updated.
on:
pull_request:


jobs:
build:
name: Package distribution file
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Package
run: |
npm ci
npm test
npm run package
- name: Commit to PR
if: github.actor == 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions"
git add dist/
git commit -m "chore: Update dist" || echo "No changes to commit"
git push
- name: Check git diff
if: github.actor != 'dependabot[bot]'
run: |
git diff --exit-code dist/index.js
1 change: 0 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ async function run() {

/**
* Wait for Express Gateway service to reach stable state
* Following CloudFormation's approach:
* 1. Describe service to get current status
* 2. List service deployments to get deployment ARNs (avoids DB consistency issues)
* 3. Wait for service status to become ACTIVE
Expand Down
Loading