Skip to content

Commit e061ea2

Browse files
fix: Dependabotchanges to dev
2 parents 0e606bc + c984878 commit e061ea2

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ updates:
2929
patterns:
3030
- "*"
3131

32+
# Python index scripts dependencies - grouped
33+
- package-ecosystem: "pip"
34+
directory: "/infra/scripts/index_scripts"
35+
schedule:
36+
interval: "monthly"
37+
target-branch: "dependabotchanges"
38+
commit-message:
39+
prefix: "build"
40+
open-pull-requests-limit: 10
41+
groups:
42+
index-scripts-deps:
43+
patterns:
44+
- "*"
45+
3246
# Frontend npm dependencies - grouped
3347
- package-ecosystem: "npm"
3448
directory: "/src/App"

.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ jobs:
4242
run: |
4343
sudo apt update
4444
sudo apt install -y gh
45+
46+
- name: Retarget Dependabot PRs from main to dependabotchanges
47+
env:
48+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
echo "🔄 Checking for Dependabot PRs targeting 'main' that need retargeting..."
51+
pr_batch=$(gh pr list --state open --json number,title,author,baseRefName,headRefName \
52+
--jq '.[] | "\(.number)|\(.title)|\(.author.login)|\(.baseRefName)|\(.headRefName)"')
53+
while IFS='|' read -r number title author base head; do
54+
author=$(echo "$author" | xargs)
55+
base=$(echo "$base" | xargs)
56+
if [[ "$author" == "app/dependabot" && "$base" == "main" ]]; then
57+
echo "🔀 Retargeting PR #$number from 'main' to 'dependabotchanges'..."
58+
gh pr edit "$number" --base dependabotchanges || echo "⚠️ Failed to retarget PR #$number"
59+
fi
60+
done <<< "$pr_batch"
61+
4562
- name: Fetch & Filter Dependabot PRs
4663
env:
4764
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/api/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ pydantic[email]==2.11.10
88
# Azure SDK Core
99
azure-core==1.37.0
1010
requests==2.32.5
11-
types-requests==2.32.4.20250913
12-
aiohttp==3.13.2
11+
types-requests==2.32.4.20260107
12+
aiohttp==3.13.3
1313

1414
# Azure Services
1515
azure-identity==1.25.1

0 commit comments

Comments
 (0)