Skip to content

Commit e21a340

Browse files
authored
ci: sync with netresearch/.github templates/go-app (#568)
Auto-opened by sync-template.sh. Brings this repo back into alignment with the canonical `go-app` template in `netresearch/.github`. To keep any diverging files, add their paths to `.github/template.yaml`'s `intentional-drift:` list before merging — otherwise the next sync run will revert them.
2 parents 781bdd8 + a3edf87 commit e21a340

18 files changed

Lines changed: 254 additions & 1473 deletions

.github/dependabot.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for more information:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
# https://containers.dev/guide/dependabot
6-
71
version: 2
82
updates:
9-
- package-ecosystem: "devcontainers"
10-
directory: "/"
11-
schedule:
12-
interval: weekly
13-
- package-ecosystem: "gomod"
14-
directory: "/"
3+
- package-ecosystem: gomod
4+
directory: /
155
schedule:
166
interval: weekly
7+
day: monday
8+
open-pull-requests-limit: 10
9+
groups:
10+
go-dependencies:
11+
patterns: ['*']
1712

1813
- package-ecosystem: github-actions
1914
directory: /
2015
schedule:
2116
interval: weekly
17+
day: monday
18+
open-pull-requests-limit: 5
2219
groups:
2320
github-actions:
24-
patterns:
25-
- "*"
21+
patterns: ['*']
22+
23+
- package-ecosystem: docker
24+
directory: /
25+
schedule:
26+
interval: weekly
27+
day: monday
28+
open-pull-requests-limit: 3
29+
groups:
30+
docker:
31+
patterns: ['*']

.github/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
documentation:
2+
- changed-files:
3+
- any-glob-to-any-file: ['**/*.md', 'docs/**/*']
4+
ci:
5+
- changed-files:
6+
- any-glob-to-any-file: ['.github/**/*']
7+
dependencies:
8+
- changed-files:
9+
- any-glob-to-any-file: ['go.mod', 'go.sum']
10+
tests:
11+
- changed-files:
12+
- any-glob-to-any-file: ['**/*_test.go', 'testdata/**/*']

.github/template.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Managed by netresearch/.github/templates/
2+
# Drift from the template is blocking CI in this repo (check-template-drift.yml).
3+
# Record explicit exceptions under intentional-drift[] to unblock.
4+
template: go-app
5+
intentional-drift:
6+
- path: .github/workflows/container.yml
7+
reason: "GHCR package name is 'ofelia' (short form), not 'netresearch/ofelia' \u2014\
8+
\ pre-dates template; renaming would break existing image consumers."
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Template Drift
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
permissions: {}
10+
11+
jobs:
12+
drift:
13+
uses: netresearch/.github/.github/workflows/check-template-drift.yml@main
14+
with:
15+
template: go-app
16+
permissions:
17+
contents: read

0 commit comments

Comments
 (0)