Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
# Python dependencies (uv/pip)
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: Europe/London
open-pull-requests-limit: 10
commit-message:
prefix: "chore(deps)"
labels:
- dependencies
- python
groups:
dev-dependencies:
patterns:
- "pytest*"
- "ruff"
- "ty"
- "pre-commit"
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern "pre-commit" is included in the dev-dependencies group, but pre-commit is not a Python package managed by pip in this project. It's managed via the git-hooks.nix flake module (see flake.nix). This pattern will not match any Python dependencies and should be removed from the dev-dependencies group.

Suggested change
- "pre-commit"

Copilot uses AI. Check for mistakes.
update-types:
- minor
- patch
ai-frameworks:
patterns:
- "openai*"
- "langchain*"
- "crewai*"
- "mcp*"
update-types:
- minor
- patch

# GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: Europe/London
open-pull-requests-limit: 5
commit-message:
prefix: "chore(deps)"
labels:
- dependencies
- github-actions
groups:
actions:
patterns:
- "*"
update-types:
- minor
- patch
63 changes: 63 additions & 0 deletions .github/workflows/nix-flake-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "Scheduled: Nix flake update"

on:
schedule:
# Run every Monday at 09:00 UTC (aligns with Dependabot's 09:00 Europe/London schedule in winter; 10:00 Europe/London in summer)
- cron: "0 9 * * 1"
workflow_dispatch: # Allow manual trigger

permissions:
contents: write
pull-requests: write

jobs:
update-flake:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent version pinning for actions/checkout. This workflow uses v4.3.1, but all other workflows in the repository use v6.0.1 (commit hash 8e8c483db84b4bee98b60c0593521ed34d9990e8). For consistency and to use the same version as the rest of the codebase, this should be updated to match the version used in ci.yaml, release.yaml, and nix-flake.yaml.

Suggested change
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

Copilot uses AI. Check for mistakes.

- name: Setup Nix
uses: ./.github/actions/setup-nix

- name: Update flake.lock
run: nix flake update

- name: Check if flake.lock changed
id: check-changes
run: |
if git diff --quiet flake.lock; then
echo "changed=false" >> $GITHUB_OUTPUT
else
echo "changed=true" >> $GITHUB_OUTPUT
fi

- name: Create Pull Request
id: create-pr
if: steps.check-changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(deps): update nix flake inputs"
title: "chore(deps): update nix flake inputs"
body: |
## Summary
- Automated update of Nix flake inputs

## Test plan
- [ ] `nix flake check` passes in CI
- [ ] Development shell works correctly

---
🤖 This PR was automatically created by the scheduled Nix flake update workflow.
branch: chore/nix-flake-update
labels: |
dependencies
nix
delete-branch: true

- name: Enable auto-merge
if: steps.create-pr.outputs.pull-request-number
run: gh pr merge --auto --squash "${{ steps.create-pr.outputs.pull-request-url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}