Skip to content

Commit 564f210

Browse files
Onboard repository to Dependabot for automated testing and AI dependency updates (#800)
* Initial plan * Add Dependabot configuration for automated dependency updates Co-authored-by: eiriktsarpalis <[email protected]> * Add Dependabot documentation and complete onboarding Co-authored-by: eiriktsarpalis <[email protected]> * Refactor Dependabot config to only update testing dependencies and remove documentation Co-authored-by: eiriktsarpalis <[email protected]> * Remove redundant allow list and use groups + ignore instead Co-authored-by: eiriktsarpalis <[email protected]> * Use wildcard patterns in ignore list for cleaner configuration Co-authored-by: eiriktsarpalis <[email protected]> * Add Microsoft.Extensions.AI group and remove from ignore list Co-authored-by: eiriktsarpalis <[email protected]> * Update .github/dependabot.yml * Move microsoft-extensions-ai group to top of groups section Co-authored-by: eiriktsarpalis <[email protected]> * Update .github/dependabot.yml * Update .github/dependabot.yml * Remove packages with fixed version strings from dependency groups Co-authored-by: eiriktsarpalis <[email protected]> * remove Microsoft.Extensions packages --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: eiriktsarpalis <[email protected]> Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent f286391 commit 564f210

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/dependabot.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Configuration for Dependabot automatic dependency updates
2+
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
# Monitor testing dependencies only
7+
- package-ecosystem: "nuget"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
day: "monday"
12+
time: "06:00"
13+
# Dependencies are controlled via the groups below
14+
# Group dependencies to reduce PR noise
15+
groups:
16+
testing-frameworks:
17+
patterns:
18+
- "xunit.*"
19+
- "Microsoft.NET.Test.Sdk"
20+
- "coverlet.*"
21+
- "GitHubActionsTestLogger"
22+
- "Moq"
23+
opentelemetry-testing:
24+
patterns:
25+
- "OpenTelemetry*"
26+
serilog-testing:
27+
patterns:
28+
- "Serilog*"
29+
other-testing:
30+
patterns:
31+
- "Anthropic.SDK"
32+
- "System.Linq.AsyncEnumerable"
33+
- "System.Net.Http"
34+
- "JsonSchema.Net"
35+
# Ignore product dependencies - only allow testing dependencies in groups above
36+
ignore:
37+
# Ignore all Microsoft product dependencies except those explicitly defined in groups.
38+
- dependency-name: "Microsoft.Extensions.Hosting.Abstractions"
39+
- dependency-name: "Microsoft.Extensions.Logging.Abstractions"
40+
- dependency-name: "Microsoft.Extensions.AI.OpenAI"
41+
- dependency-name: "Microsoft.Extensions.TimeProvider.Testing"
42+
- dependency-name: "Microsoft.AspNetCore.*"
43+
- dependency-name: "Microsoft.IdentityModel.*"
44+
- dependency-name: "Microsoft.Bcl.*"
45+
- dependency-name: "Microsoft.SourceLink.*"
46+
# Ignore all System product dependencies except those explicitly in testing groups
47+
- dependency-name: "System.Diagnostics.*"
48+
- dependency-name: "System.IO.*"
49+
- dependency-name: "System.Text.*"
50+
- dependency-name: "System.Threading.*"
51+
- dependency-name: "System.Net.ServerSentEvents"
52+
# Limit the number of open pull requests for testing dependencies
53+
open-pull-requests-limit: 5
54+
# Add labels to dependency update PRs
55+
labels:
56+
- "dependencies"
57+
- "testing"
58+
59+
# Monitor GitHub Actions
60+
- package-ecosystem: "github-actions"
61+
directory: "/"
62+
schedule:
63+
interval: "weekly"
64+
day: "monday"
65+
time: "06:00"
66+
# Limit the number of open pull requests for GitHub Actions to 5
67+
open-pull-requests-limit: 5
68+
# Add labels to GitHub Actions update PRs
69+
labels:
70+
- "dependencies"
71+
- "github-actions"

0 commit comments

Comments
 (0)