dependabot: add yt-dlp in qa

Also sets up an auto-approve for dependabot PRs.
This commit is contained in:
Misty De Méo 2025-05-08 09:55:11 -07:00 committed by Misty De Méo
parent 2984bd955b
commit b4d2726e54
2 changed files with 30 additions and 0 deletions

21
.github/workflows/dependabot.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Dependabot
on: pull_request
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'internetarchive/brozzler'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

9
dependabot.yml Normal file
View file

@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "daily"
target-branch: "qa"
allow:
- dependency-name: yt-dlp