Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

build(deps): use dotenv included with env-schema #1480

Closed
wants to merge 17 commits into from
Closed
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
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,4 @@ src/
.prettierrc
jsconfig.json
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
SECURITY.md
CONTRIBUTING.md
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

79 changes: 0 additions & 79 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md

This file was deleted.

33 changes: 18 additions & 15 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,26 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const { writeFile } = require("node:fs/promises");
const { owner, repo } = context.repo;

const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
owner,
repo,
run_id: ${{ github.event.workflow_run.id }},
});
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == 'pr';
})[0];
const matchArtifact = artifacts.data.artifacts.find(
(artifact) => artifact.name == "pr"
);

const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
owner,
repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
archive_format: "zip",
});

fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
await writeFile("${{github.workspace}}/pr.zip", Buffer.from(download.data));

- name: Unzip artifact
run: unzip pr.zip
Expand All @@ -52,12 +53,14 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const pull_number = Number(fs.readFileSync('./NR'));
const { readFile } = require("node:fs/promises");
const { owner, repo } = context.repo;

const pull_number = Number(await readFile("./NR", "utf8"));

await github.rest.pulls.merge({
merge_method: "squash",
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_number,
owner,
repo,
pull_number,
});
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
npx --no-install commitlint --edit $1
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint:prettier && npm run lint:licenses && npm test
npm run lint:licenses && npm test
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"javascript.updateImportsOnFileMove.enabled": "always",
"npm.packageManager": "npm",
"prettier.prettierPath": "./node_modules/prettier",
"redhat.telemetry.enabled": false,
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
Expand Down
127 changes: 0 additions & 127 deletions CODE_OF_CONDUCT.md

This file was deleted.

7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ Before submitting a pull request back to the main repository, please make sure y

1. Pull request base branch is set to `main`. All pull requests should be forked from and merged back to `main`
2. Run `npm test` to check the code adheres to the defined ESLint style and that it passes the Jest tests
3. Run `npm run lint:prettier:fix` to run the Prettier code formatter over the code
4. Run `npm run lint:licenses` if adding or updating production dependencies to check they use permissive licenses
3. Run `npm run lint:fix` to automatically fix any ESLint errors
4. Run `npm run lint:prettier:fix` to automatically fix any Prettier errors
5. Run `npm run lint:licenses` if adding or updating production dependencies to check they use permissive licenses

Steps 2. and 4. are automatically run by a pre-commit hook added by [Husky](https://typicode.github.io/husky/#/).
Steps 2. and 5. are automatically run by a pre-commit hook added by [Husky](https://typicode.github.io/husky/#/).

## Issues

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 Frazer Smith
Copyright (c) 2020-2024 Frazer Smith
Copyright (c) 2020-2023 Yeovil District Hospital NHS Foundation Trust
Copyright (c) 2023 Somerset NHS Foundation Trust

Expand All @@ -20,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ The icon itself can be found in the root of [the images folder](./docs/images/).
Contributions are welcome, and any help is greatly appreciated!

See [the contributing guide](./CONTRIBUTING.md) for details on how to get started.
Please adhere to this project's [Code of Conduct](./CODE_OF_CONDUCT.md) when contributing.
Please adhere to this project's [Code of Conduct](https://github.com/Fdawgs/.github/blob/main/CODE_OF_CONDUCT.md) when contributing.

## Acknowledgements

Expand Down
13 changes: 0 additions & 13 deletions SECURITY.md

This file was deleted.

Loading
Loading