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

chore: check for uncommitted files and commit api specs #1077

Merged
merged 2 commits into from
Oct 16, 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
9 changes: 9 additions & 0 deletions .github/workflows/pre-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ jobs:
run: dotnet restore src
- name: Build
run: dotnet build src --configuration Release --no-restore
- name: Check for uncommitted files in working directory # refers to updated api specifications, please refer to /docs/api/README.md
run: |
git_status=$(git status --porcelain)
if [ -n "$git_status" ]; then
echo "Please commit the file(s) in your working directory after executing the build command"
exit 1
else
echo "No modified files found in the working directory."
fi
- name: Check Format
run: dotnet format src --verify-no-changes --no-restore
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion docs/api/apps-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@ components:
description: Price.
leadPictureId:
type: string
description: Lead pircture Id.
description: Lead picture Id.
format: uuid
useCases:
type: array
Expand Down
9 changes: 9 additions & 0 deletions docs/api/services-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2362,6 +2362,11 @@ components:
provider:
type: string
description: Provider of the app.
leadPictureId:
type: string
description: Lead picture Id.
format: uuid
nullable: true
contactEmail:
type: string
description: Contact email address.
Expand Down Expand Up @@ -2496,6 +2501,10 @@ components:
nullable: true
provider:
type: string
leadPictureId:
type: string
format: uuid
nullable: true
contactEmail:
type: string
nullable: true
Expand Down
Loading