diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..04b3392 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,29 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +Thank you for taking the time to contribute an issue! + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..49bd3cd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem in the current program to new available techology or software? Please describe and add links/citations if appropriate.** +A clear and concise description of what the problem is or what the advance you would like us to incorporate is. Ex. when triaging structural variantS, I would like to [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/other-issue.md b/.github/ISSUE_TEMPLATE/other-issue.md new file mode 100644 index 0000000..b28a3dc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other-issue.md @@ -0,0 +1,10 @@ +--- +name: Other issue +about: Describe your issue, request or question here +title: '' +labels: '' +assignees: '' + +--- + +Try to be as clear and precise as possible, adding sufficient detail and context. diff --git a/.github/workflows/keep_a_changelog.yml b/.github/workflows/keep_a_changelog.yml new file mode 100644 index 0000000..e13f937 --- /dev/null +++ b/.github/workflows/keep_a_changelog.yml @@ -0,0 +1,15 @@ +name: "Changelog Reminder" +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + # Enforces the update of a changelog file on every pull request + changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: 'CHANGELOG.md' + skipLabels: 'Skip-Changelog' diff --git a/.github/workflows/woke.yml b/.github/workflows/woke.yml new file mode 100644 index 0000000..146b506 --- /dev/null +++ b/.github/workflows/woke.yml @@ -0,0 +1,15 @@ +name: woke +on: + - pull_request +jobs: + woke: + name: Non-inclusive language check with woke + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: woke + uses: get-woke/woke-action@v0 + with: + fail-on-error: false diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f2eaaae --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +## [unreleased] +### Changed +- Allow configuring multiple trusted CORS origins + + +## Legacy version history + +## 1.1.0 +- Generate password for customformdata +- Backend status +## 1.0.0 +- Initial release diff --git a/README.md b/README.md index 3850381..118e5a3 100644 --- a/README.md +++ b/README.md @@ -43,14 +43,3 @@ Express + Typescript + MongoDB stack for storing Phenopackets. `npm install -g protobuf2swagger` `protobuf2swagger` - -## Version history - -### 1.0.0 - -- Initial release - -### 1.1.0 - -- Generate password for customformdata -- Backend status diff --git a/src/index.ts b/src/index.ts index 589e7f9..ecbe419 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ app.use(express.json({ limit: "100mb" })); app.use(express.urlencoded({ extended: true })); app.use( cors({ - origin: process.env.ALLOWED_ORIGIN, + origin: process.env.ALLOWED_ORIGIN.split(";"), }) );