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
42 changes: 41 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,52 @@
version: 2

multi-ecosystem-groups:
infrastructure:
schedule:
interval: "weekly"
day: "wednesday"
open-pull-requests-limit: 25
commit-message:
prefix: "chore"
include: "scope"

updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
open-pull-requests-limit: 25
cooldown:
default-days: 7
commit-message:
prefix: "chore"
include: "scope"
groups:
dotnet:
dotnet-minor-patch:
update-types:
- "minor"
- "patch"
patterns:
- "*"
dotnet-major:
update-types:
- "major"
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
patterns:
- "*"
multi-ecosystem-group: "infrastructure"
cooldown:
default-days: 7

- package-ecosystem: "uv"
directory: "/"
patterns:
- "*"
multi-ecosystem-group: "infrastructure"
cooldown:
default-days: 7
42 changes: 42 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Dependabot auto-merge

on:
pull_request_target:
types: [opened, synchronize, reopened]

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'LayeredCraft/optimized-enums'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Generate app token
id: app-token
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
with:
app-id: ${{ secrets.DEPENDABOT_AUTOMERGE_APP_ID }}
private-key: ${{ secrets.DEPENDABOT_AUTOMERGE_PRIVATE_KEY }}

- name: Approve PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ steps['app-token'].outputs.token }}

- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ steps['app-token'].outputs.token }}
39 changes: 23 additions & 16 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,37 @@
<!-- EFCore package -->
<PackageVersion Include="Testcontainers.PostgreSql" Version="4.12.0" />
</ItemGroup>
<!-- Microsoft/System.Text.Json/EF Core packages ship parallel stable and preview build lines.
Pin each per-TargetFramework with bounded ranges so Dependabot can raise
lower bounds without crossing into the next major/preview line. -->
<ItemGroup Label="STJ pinned for netstandard" Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'">
<PackageVersion Include="System.Text.Json" Version="10.0.9" />
<PackageVersion Include="System.Text.Json" Version="[10.0.9, 11.0.0)" />
</ItemGroup>
<ItemGroup Label="Microsoft (TFM pinned)" Condition="'$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'">
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.26" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.26" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="[8.0.26, 9.0.0)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="[8.0.26, 9.0.0)" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="[8.0.11, 9.0.0)" />
</ItemGroup>
<ItemGroup Label="Microsoft (TFM pinned)" Condition="'$(TargetFramework)' == 'net9.0'">
<PackageVersion Include="System.Text.Json" Version="9.0.17" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="9.0.17" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.17" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.4" />
<PackageVersion Include="System.Text.Json" Version="[9.0.17, 10.0.0)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="[9.0.17, 10.0.0)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="[9.0.17, 10.0.0)" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="[9.0.4, 10.0.0)" />
</ItemGroup>
<ItemGroup Label="Microsoft (TFM pinned)" Condition="'$(TargetFramework)' == 'net10.0'">
<PackageVersion Include="System.Text.Json" Version="10.0.9" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.9" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.9" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.2" />
<PackageVersion Include="System.Text.Json" Version="[10.0.9, 11.0.0)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="[10.0.9, 11.0.0)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="[10.0.9, 11.0.0)" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="[10.0.2, 11.0.0)" />
</ItemGroup>
<!-- Lower bounds here are prereleases, which causes NuGet to consider
prerelease candidates for these package IDs. Use a letter-led prerelease
marker on the exclusive upper bound so the ranges stay below all 12.0.0
previews as well as 12.0.0 stable. -->
<ItemGroup Label="Microsoft (TFM pinned)" Condition="'$(TargetFramework)' == 'net11.0'">
<PackageVersion Include="System.Text.Json" Version="11.0.0-preview.5.26302.115" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="11.0.0-preview.5.26302.115" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="11.0.0-preview.5.26302.115" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="11.0.0-preview.5" />
<PackageVersion Include="System.Text.Json" Version="[11.0.0-preview.5.26302.115, 12.0.0-a)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="[11.0.0-preview.5.26302.115, 12.0.0-a)" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="[11.0.0-preview.5.26302.115, 12.0.0-a)" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="[11.0.0-preview.5, 12.0.0-a)" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions LayeredCraft.OptimizedEnums.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<File Path=".github\workflows\release-drafter.yaml" />
<File Path=".gitignore" />
<File Path=".github\dependabot.yml" />
<File Path=".github\workflows\dependabot-auto-merge.yml" />
<File Path=".github\workflows\build.yaml" />
<File Path=".github\workflows\docs.yml" />
<File Path=".github\workflows\pr-build.yaml" />
Expand Down
Loading