generated from UoaWDCC/react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/logo-and-webpages-title
- Loading branch information
Showing
222 changed files
with
7,762 additions
and
9,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name: Build API Client | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, closed] | ||
push | ||
|
||
jobs: | ||
build: | ||
|
@@ -27,5 +26,6 @@ jobs: | |
commit_user_name: "github-api-actions[bot]" | ||
commit_user_email: "github-api-actions[bot]@users.noreply.github.com" | ||
commit_author: Author <[email protected]> | ||
commit_options: '--no-verify' | ||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Continuous Integration | ||
|
||
# This action works with pull requests and pushes | ||
on: | ||
push | ||
|
||
jobs: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
with: | ||
# This part is also where you can pass other options, for example: | ||
commit_message: "Chore: Prettify code" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# .husky/pre-commit | ||
|
||
# Try to curl the URL and pipe the output to a file | ||
curl http://0.0.0.0:8055/server/specs/oas -o ./backend/docs/api_docs.json | ||
|
||
|
||
|
||
# Check if the curl command was successful | ||
if [ $? -ne 0 ]; then | ||
echo "Curl command failed are you in the dev-container? Aborting commit." | ||
exit 1 | ||
fi | ||
|
||
# Format the JSON file | ||
jq . ./backend/docs/api_docs.json > ./backend/docs/api_docs.tmp && mv ./backend/docs/api_docs.tmp ./backend/docs/api_docs.json | ||
|
||
# Find and replace "url": "0.0.0.0:8055" with "url": "http://0.0.0.0:8055" | ||
sed -i 's|"url": "0.0.0.0:8055"|"url": "http://0.0.0.0:8055"|g' ./backend/docs/api_docs.json | ||
|
||
# If successful, proceed with the commit | ||
echo "Curl command succeeded. Proceeding with commit." |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
node_modules | ||
# Keep environment variables out of version control | ||
.env | ||
|
||
# Keep generated files out of version control | ||
docs/api-doc.json | ||
.env |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.