Skip to content

Commit 828dbf8

Browse files
authored
ci: dependabot automerge (#114)
* ci: dependabot automerge * add codeowners
1 parent 2ac69dc commit 828dbf8

File tree

6 files changed

+45
-21
lines changed

6 files changed

+45
-21
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This is a comment.
2+
3+
# Each line is a file pattern followed by one or more owners.
4+
# These owners will be the default owners for everything in
5+
# the repo. Unless a later match takes precedence,
6+
# @global-owner1 and @global-owner2 will be requested for
7+
# review when someone opens a pull request.
8+
# * @global-owner1 @global-owner2
9+
* @yxtay

.github/dependabot.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
version: 2
2+
23
updates:
34
- package-ecosystem: docker
45
directory: /
56
schedule:
6-
interval: weekly
7+
interval: daily
78
commit-message:
89
prefix: build(docker)
910
groups:
1011
docker:
11-
patterns: ["*"]
12+
update-types: [minor, patch]
1213

1314
- package-ecosystem: github-actions
1415
directory: /
1516
schedule:
16-
interval: weekly
17+
interval: daily
1718
commit-message:
1819
prefix: ci(github-actions)
1920
groups:
2021
github-actions:
21-
patterns: ["*"]
22+
update-types: [minor, patch]
2223

2324
- package-ecosystem: pip
2425
directory: /
2526
schedule:
26-
interval: weekly
27+
interval: daily
2728
commit-message:
2829
prefix: build(pip)
2930
groups:
3031
pip:
31-
patterns: ["*"]
32+
update-types: [minor, patch]

.github/workflows/pr.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ name: pr
22

33
on:
44
pull_request:
5-
# pull_request_target: # for forked PR
65
types:
76
- opened
87
- edited
98
- reopened
109
- synchronize
1110

1211
jobs:
13-
title-linter:
14-
name: lint title
12+
lint-title:
1513
permissions:
1614
pull-requests: read
1715
runs-on: ubuntu-latest
@@ -21,8 +19,7 @@ jobs:
2119
env:
2220
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2321

24-
labeler:
25-
name: label
22+
label:
2623
permissions:
2724
contents: read
2825
pull-requests: write
@@ -31,8 +28,7 @@ jobs:
3128
- name: labeler
3229
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
3330

34-
size-labeler:
35-
name: label size
31+
label-size:
3632
permissions:
3733
contents: read
3834
pull-requests: write
@@ -46,3 +42,25 @@ jobs:
4642
package-lock.json
4743
*.lock
4844
docs/**
45+
46+
dependabot:
47+
if: github.actor == 'dependabot[bot]'
48+
permissions:
49+
contents: write
50+
pull-requests: write
51+
runs-on: ubuntu-latest
52+
steps:
53+
- id: metadata
54+
uses: dependabot/fetch-metadata@v2
55+
56+
- name: log metadata
57+
env:
58+
DEPENDABOT_METADATA: ${{ toJson(steps.metadata.outputs) }}
59+
run: echo ${DEPENDABOT_METADATA}
60+
61+
- name: automerge
62+
if: ${{ !contains(steps.metadata.outputs.update-type, 'major' ) }}
63+
run: gh pr merge --auto --squash ${PR_NUMBER}
64+
env:
65+
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
66+
GH_TOKEN: ${{ github.token }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ repos:
8181
- id: markdownlint
8282

8383
- repo: https://github.com/astral-sh/ruff-pre-commit
84-
rev: v0.9.5
84+
rev: v0.9.6
8585
hooks:
8686
- id: ruff
8787
types_or: [python, pyi, jupyter]
@@ -95,11 +95,11 @@ repos:
9595
- id: taplo-format
9696

9797
- repo: https://github.com/astral-sh/uv-pre-commit
98-
rev: 0.5.29
98+
rev: 0.5.30
9999
hooks:
100100
- id: uv-lock
101101

102102
- repo: https://github.com/google/yamlfmt
103-
rev: v0.15.0
103+
rev: v0.16.0
104104
hooks:
105105
- id: yamlfmt

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["poetry-core"]
2+
requires = ["poetry-core>=2.0,<3.0"]
33
build-backend = "poetry.core.masonry.api"
44

55
[project]

renovate.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
{
66
"automerge": true,
77
"matchUpdateTypes": ["minor", "patch", "pin", "digest"]
8-
},
9-
{
10-
"automerge": true,
11-
"matchDepTypes": ["devDependencies"]
128
}
139
]
1410
}

0 commit comments

Comments
 (0)