Skip to content

Commit 17ceb46

Browse files
committed
feat(dependabot): enhance configuration and remove stale actions
- Updated Dependabot configuration to include public NuGet registry and improved scheduling for package updates to daily frequency.
1 parent e6c0a35 commit 17ceb46

File tree

6 files changed

+270
-238
lines changed

6 files changed

+270
-238
lines changed

.github/dependabot.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
registries:
3+
public-nuget:
4+
type: nuget-feed
5+
url: https://api.nuget.org/v3/index.json
6+
updates:
7+
- package-ecosystem: nuget
8+
directory: "/src"
9+
registries:
10+
- public-nuget
11+
schedule:
12+
interval: daily
13+
open-pull-requests-limit: 15
14+
labels:
15+
- "area-dependencies"
16+
groups:
17+
all-dependencies:
18+
patterns:
19+
- "*"
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: daily
24+
open-pull-requests-limit: 5
25+
labels:
26+
- "area-dependencies"
27+
groups:
28+
all-dependencies:
29+
patterns:
30+
- "*"

.github/dependabot.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/stale.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Dependabot AutoMerge
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
dependabot:
14+
runs-on: ubuntu-latest
15+
if: github.event.pull_request.user.login == 'dependabot[bot]'
16+
steps:
17+
- name: Fetch Dependabot metadata
18+
id: metadata
19+
uses: dependabot/fetch-metadata@v2
20+
with:
21+
github-token: "${{ secrets.GITHUB_TOKEN }}"
22+
skip-commit-verification: true
23+
skip-verification: true
24+
25+
- name: Enable auto-merge
26+
run: gh pr merge --auto --squash "$PR_URL"
27+
env:
28+
PR_URL: ${{ github.event.pull_request.html_url }}
29+
GH_TOKEN: ${{ secrets.ES_GITHUB_PAT }}
30+
31+
- name: Approve the PR
32+
run: gh pr review --approve "$PR_URL"
33+
env:
34+
PR_URL: ${{ github.event.pull_request.html_url }}
35+
GH_TOKEN: ${{ secrets.ES_GITHUB_PAT }}

0 commit comments

Comments
 (0)