Skip to content

Commit 780889a

Browse files
Merge branch 'main' into feature/add-code-quality
2 parents 9bc0aa4 + ba2306d commit 780889a

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "pip" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: "npm" # for frontend dependencies
9+
directory: "/frontend"
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"
12+
commit-message:
13+
prefix: "build"
14+
target-branch: "dependabotchanges"
15+
open-pull-requests-limit: 10
16+
17+
- package-ecosystem: "pip" # for backend dependencies
18+
directory: "/"
19+
schedule:
20+
interval: "monthly"
21+
commit-message:
22+
prefix: "build"
23+
target-branch: "dependabotchanges"
24+
open-pull-requests-limit: 10
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Sync Main to dependabotchanges
2+
3+
on:
4+
# Schedule the sync job to run daily or customize as needed
5+
schedule:
6+
- cron: '0 1 * * *' # Runs every day at 1 AM UTC
7+
# Trigger the sync job on pushes to the main branch
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0 # Fetch all history for accurate branch comparison
21+
22+
- name: Configure Git
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
27+
- name: Sync main to dependabotchanges
28+
run: |
29+
# Ensure we're on the main branch
30+
git checkout main
31+
# Fetch the latest changes
32+
git pull origin main
33+
34+
# Switch to dependabotchanges branch
35+
git checkout dependabotchanges
36+
# Merge main branch changes
37+
git merge main --no-edit
38+
39+
# Push changes back to dependabotchanges1 branch
40+
git push origin dependabotchanges
41+
42+
- name: Notify on Failure
43+
if: failure()
44+
run: echo "Sync from main to dependabotchanges failed!"

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ uvicorn==0.24.0
1010
aiohttp==3.10.5
1111
gunicorn==20.1.0
1212
pydantic-settings==2.2.1
13-
1413
# Development Tools
1514
pylint==2.17.5
1615
autopep8==2.0.2
@@ -19,4 +18,4 @@ isort==5.12.0
1918
flake8==6.0.0
2019
pyment==0.3.3
2120
charset-normalizer==3.3.0
22-
pycodestyle==2.10.0
21+
pycodestyle==2.10.0

0 commit comments

Comments
 (0)