Skip to content

Commit 164ef89

Browse files
authored
Merge pull request #1425 from dbfixtures/issue-1411
Migrate the automerge workflow - closes #1411
2 parents e9b482e + 09eb8e6 commit 164ef89

6 files changed

Lines changed: 41 additions & 23 deletions

File tree

‎.coderabbit.yaml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: en-GB
22
reviews:
3-
profile: assertive
3+
profile: "assertive"
4+
suggested_labels: true
5+
auto_apply_labels: true
46
path_instructions:
57
- path: "newsfragments/*.rst"
68
instructions: |
@@ -24,9 +26,12 @@ reviews:
2426
Read the towncrier configuration from pyproject.toml to determine valid newsfragment types.
2527
If no newsfragment is present, suggest which type should be added based on the PR changes.
2628
Suggest the filename format: [issue_number].[type].rst (or +[hash].[type].rst for orphan fragments)
27-
Remind contributors to use: `uv run towncrier create [issue_number].[type].rst` (or `uv run towncrier create +.[type]` for orphan fragments)
29+
Remind contributors to use: `uv run towncrier create [issue_number].[type].rst` (or `uv run towncrier create +.[type].rst` for orphan fragments)
2830
Skip the check if the PR only updates existing newsfragments or is a trivial change.
2931
auto_review:
30-
auto_pause_after_reviewed_commits: 0
32+
auto_pause_after_reviewed_commits: 1
3133
labels: ["!no code rabbit"]
32-
drafts: true
34+
drafts: false
35+
slop_detection:
36+
enabled: true
37+
label: "ai-spam"

‎.github/dependabot.yml‎

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,32 @@ updates:
1414
commit-message:
1515
prefix: " "
1616
- package-ecosystem: github-actions
17-
directory: "/"
17+
directories:
18+
- "/"
19+
- "/.github/actions/*"
1820
schedule:
19-
interval: weekly
20-
time: "06:00"
21-
day: "sunday"
22-
open-pull-requests-limit: 2
21+
interval: daily
22+
time: "03:10"
23+
open-pull-requests-limit: 1
2324
cooldown:
2425
default-days: 7
26+
groups:
27+
fizyk-actions-reuse:
28+
patterns:
29+
- "fizyk/actions-reuse/*"
30+
checkout:
31+
patterns:
32+
- "actions/checkout"
33+
setup-postgres:
34+
patterns:
35+
- "ankane/setup-postgres"
2536
commit-message:
2637
prefix: " "
38+
- package-ecosystem: pre-commit
39+
directory: "/"
40+
schedule:
41+
interval: daily
42+
time: "04:10"
43+
open-pull-requests-limit: 1
44+
cooldown:
45+
default-days: 7

‎.github/workflows/automerge.yml‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
name: Merge me test dependencies!
22

3-
on: # zizmor: ignore[dangerous-triggers]
4-
workflow_run:
5-
types:
6-
- completed
7-
workflows:
8-
# List all required workflow names here.
9-
- 'Run tests'
10-
- 'Run linters'
11-
- 'Test build package'
12-
check_suite:
13-
types:
14-
- completed
3+
on: # zizmor: ignore[dangerous-triggers] intentional: this workflow runs in the context of the base branch
4+
pull_request_target:
5+
types: [opened, reopened, synchronize]
156

167
permissions: {}
178

189
jobs:
1910
automerge:
20-
uses: fizyk/actions-reuse/.github/workflows/shared-automerge.yml@e434952f57d1da48b52d0fe5454b365b2f297d2d # v5.2.6
11+
permissions: {}
12+
uses: fizyk/actions-reuse/.github/workflows/shared-automerge.yml@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
2113
secrets:
2214
client_id: ${{ secrets.MERGE_APP_CLIENT_ID }}
2315
private_key: ${{ secrets.MERGE_APP_PRIVATE_KEY }}

‎newsfragments/1411.misc.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Migrated the Automerge workflow to `fizyk/actions-reuse` version 5.5.0.

‎newsfragments/1415.misc.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Configure Dependabot to update pre-commit dependencies.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "uv_build"
3-
requires = [ "uv-build>=0.11" ]
3+
requires = [ "uv-build>=0.11,<0.13" ]
44

55
[project]
66
name = "pytest-postgresql"

0 commit comments

Comments
 (0)