Skip to content

Commit

Permalink
Merge pull request #62 from rafsaf/add-on-pull-request-to-ci
Browse files Browse the repository at this point in the history
fix lint issue, add on:pull_request in CI to handle PR created on github
  • Loading branch information
rafsaf committed May 23, 2024
2 parents ea9a261 + 5b51e5d commit ba24f1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- "**"
tags-ignore:
- "*.*"
pull_request:
types: [opened, reopened]

jobs:
tests:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- "**"
tags-ignore:
- "*.*"
pull_request:
types: [opened, reopened]

jobs:
type_check:
Expand Down
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
app.add_middleware(
CORSMiddleware,
allow_origins=[
str(origin).rstrip("/") for origin in get_settings().security.backend_cors_origins
str(origin).rstrip("/")
for origin in get_settings().security.backend_cors_origins
],
allow_credentials=True,
allow_methods=["*"],
Expand Down

0 comments on commit ba24f1a

Please sign in to comment.