Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-code-quality
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft authored Dec 4, 2024
2 parents 9bc0aa4 + ba2306d commit 780889a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm" # for frontend dependencies
directory: "/frontend"
schedule:
interval: "weekly"
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 10

- package-ecosystem: "pip" # for backend dependencies
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 10
44 changes: 44 additions & 0 deletions .github/workflows/sync-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Sync Main to dependabotchanges

on:
# Schedule the sync job to run daily or customize as needed
schedule:
- cron: '0 1 * * *' # Runs every day at 1 AM UTC
# Trigger the sync job on pushes to the main branch
push:
branches:
- main

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for accurate branch comparison

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Sync main to dependabotchanges
run: |
# Ensure we're on the main branch
git checkout main
# Fetch the latest changes
git pull origin main
# Switch to dependabotchanges branch
git checkout dependabotchanges
# Merge main branch changes
git merge main --no-edit
# Push changes back to dependabotchanges1 branch
git push origin dependabotchanges
- name: Notify on Failure
if: failure()
run: echo "Sync from main to dependabotchanges failed!"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ uvicorn==0.24.0
aiohttp==3.10.5
gunicorn==20.1.0
pydantic-settings==2.2.1

# Development Tools
pylint==2.17.5
autopep8==2.0.2
Expand All @@ -19,4 +18,4 @@ isort==5.12.0
flake8==6.0.0
pyment==0.3.3
charset-normalizer==3.3.0
pycodestyle==2.10.0
pycodestyle==2.10.0

0 comments on commit 780889a

Please sign in to comment.