Skip to content

Commit 4cc6ae1

Browse files
committed
[DOP-25347] Setup Dependabot
1 parent b0b5d3b commit 4cc6ae1

File tree

5 files changed

+153
-1
lines changed

5 files changed

+153
-1
lines changed

.github/dependabot.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: weekly
9+
labels:
10+
- type:ci
11+
# https://til.simonwillison.net/github/dependabot-python-setup
12+
groups:
13+
github-actions:
14+
patterns:
15+
- "*"
16+
17+
- package-ecosystem: "docker"
18+
directory: docker/
19+
schedule:
20+
interval: "weekly"
21+
# https://til.simonwillison.net/github/dependabot-python-setup
22+
groups:
23+
docker:
24+
patterns:
25+
- "*"
26+
27+
- package-ecosystem: npm
28+
directory: /
29+
schedule:
30+
interval: weekly
31+
labels:
32+
- type:dependency
33+
# https://til.simonwillison.net/github/dependabot-python-setup
34+
groups:
35+
npm-packages:
36+
patterns:
37+
- "*"
38+
ignore:
39+
- dependency-name: "*"
40+
update-types: ["version-update:semver-major"]

.github/labels.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# config for https://github.com/marketplace/actions/github-labeler
2+
3+
- name: attention:help wanted
4+
description: Extra attention is needed
5+
color: bfdadc
6+
from_name: help wanted
7+
8+
- name: attention:invalid
9+
description: This doesn't seem right
10+
color: ea2357
11+
from_name: invalid
12+
13+
- name: kind:bug
14+
description: Something isn't working
15+
color: d73a4a
16+
from_name: bug
17+
18+
- name: kind:feature
19+
description: New feature or request
20+
color: 389a3f
21+
22+
- name: kind:improvement
23+
description: Improvement of some existing feature
24+
color: 1a92c2
25+
from_name: enhancement
26+
27+
- name: kind:question
28+
description: Further information is requested
29+
color: 0e857c
30+
from_name: question
31+
32+
- name: resolution:duplicate
33+
description: This issue or pull request already exists
34+
color: cfd3d7
35+
from_name: duplicate
36+
37+
- name: resolution:wontfix
38+
description: This will not be worked on
39+
color: ec103b
40+
from_name: wontfix
41+
42+
- name: type:ci
43+
description: CI-related changes
44+
color: cdb0bd
45+
46+
- name: type:dependency
47+
description: Dependency-related changes
48+
color: 214efe
49+
50+
- name: type:documentation
51+
description: Improvements or additions to documentation
52+
color: 6b9f54
53+
from_name: documentation
54+
55+
- name: type:tests
56+
description: Tests-related changes
57+
color: 5cca5b

.github/workflows/automerge.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Automerge
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
automerge:
8+
name: Enable pull request automerge
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'dependabot[bot]'
11+
12+
steps:
13+
- uses: alexwilson/[email protected]
14+
with:
15+
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
16+
merge-method: REBASE
17+
18+
autoapprove:
19+
name: Automatically approve pull request
20+
needs: [automerge]
21+
runs-on: ubuntu-latest
22+
if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'dependabot[bot]'
23+
24+
steps:
25+
- uses: hmarr/auto-approve-action@v4
26+
with:
27+
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Repo labels sync
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
paths:
8+
- .github/labels.yml
9+
- .github/workflows/repo-labels-sync.yml
10+
pull_request:
11+
paths:
12+
- .github/labels.yml
13+
- .github/workflows/repo-labels-sync.yml
14+
workflow_dispatch:
15+
16+
jobs:
17+
labeler:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Run Labeler
24+
uses: crazy-max/ghaction-github-labeler@v5
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
yaml-file: .github/labels.yml
28+
dry-run: ${{ github.event_name == 'pull_request' }}

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use amd64 for building .js and .css (which are platform agnostic),
33
# and then copy to platform-specific nginx image
44

5-
FROM --platform=linux/amd64 node:23.10.0 AS build
5+
FROM --platform=linux/amd64 node:23.11.0 AS build
66

77
WORKDIR /app
88

0 commit comments

Comments
 (0)