Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 0e396ad

Browse files
authored
Merge pull request #772 from instructlab/fix-dependabot-and-mergify-configs
fix: Mergify and Dependabot configs YAML are incorrect/inconsistent
2 parents cd6bac0 + b5cff91 commit 0e396ad

5 files changed

Lines changed: 111 additions & 41 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,19 @@ updates:
6363
target-branch: "main"
6464
labels:
6565
- "docker dependencies"
66+
- package-ecosystem: pip
67+
directory: "/"
68+
schedule:
69+
interval: "weekly"
70+
reviewers:
71+
- "instructlab/ui-maintainers"
72+
groups:
73+
python-packages:
74+
patterns:
75+
- "*"
6676

6777
# Enable version updates for the following package ecosystems for release-1.0 branch
68-
- package-ecosystem: "npm"
78+
- package-ecosystem: "npm"
6979
directory: "/"
7080
schedule:
7181
interval: "weekly"
@@ -129,7 +139,7 @@ updates:
129139
- "docker dependencies"
130140

131141
# Enable version updates for the following package ecosystems for release-1.2 branch
132-
- package-ecosystem: "npm"
142+
- package-ecosystem: "npm"
133143
directory: "/"
134144
schedule:
135145
interval: "weekly"
@@ -191,3 +201,13 @@ updates:
191201
target-branch: "release-1.2"
192202
labels:
193203
- "docker dependencies"
204+
- package-ecosystem: pip
205+
directory: "/api-server/qna-eval"
206+
schedule:
207+
interval: "weekly"
208+
reviewers:
209+
- "instructlab/ui-maintainers"
210+
groups:
211+
python-packages:
212+
patterns:
213+
- "*"

.github/mergify.yml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
11
pull_request_rules:
2-
- name: dependabot-auto-merge
3-
description: Automatically merge dependabot PRs that pass CI
4-
conditions:
5-
- author=dependabot[bot]
6-
- check-success=golangci-lint-worker
7-
- check-success=golangci-lint-bot
8-
- check-success=ansible
9-
- check-success=Shellcheck
10-
- check-success=markdown-lint
11-
- check-success=DCO
12-
- label!=hold
13-
actions:
14-
merge:
15-
method: merge
2+
- name: dependabot-auto-merge
3+
description: Automatically merge dependabot PRs that pass CI
4+
conditions:
5+
- author=dependabot[bot]
6+
- check-success=golangci-lint-worker
7+
- check-success=golangci-lint-bot
8+
- check-success=ansible
9+
- check-success=Shellcheck
10+
- check-success=markdown-lint
11+
- check-success=DCO
12+
- label!=hold
13+
actions:
14+
merge:
15+
method: merge
1616

17-
- name: auto-merge
18-
description: automatic merge for main with > 1 approved reviews, all requested reviews have given feedback, not held, and CI is successful
19-
conditions:
20-
- "#approved-reviews-by>=1"
21-
- "#review-requested=0"
22-
- "#changes-requested-reviews-by=0"
23-
- base=main
24-
- label!=hold
25-
- check-success=golangci-lint-worker
26-
- check-success=golangci-lint-bot
27-
- check-success=ansible
28-
- check-success=Shellcheck
29-
- check-success=markdown-lint
30-
- check-success=DCO
31-
# If files are changed in .github/, the actionlint check must pass
32-
- or:
33-
- and:
34-
# regex should match the one in .github/workflows/actionlint.yml
35-
- files~=.github/.*$
36-
- check-success=actionlint
37-
- -files~=.github/.*$
38-
actions:
39-
merge:
40-
method: merge
17+
- name: auto-merge
18+
description: >
19+
automatic merge for main with > 1 approved reviews,
20+
all requested reviews have given feedback, not held, and CI is successful
21+
conditions:
22+
- "#approved-reviews-by>=1"
23+
- "#review-requested=0"
24+
- "#changes-requested-reviews-by=0"
25+
- base=main
26+
- label!=hold
27+
- check-success=golangci-lint-worker
28+
- check-success=golangci-lint-bot
29+
- check-success=ansible
30+
- check-success=Shellcheck
31+
- check-success=markdown-lint
32+
- check-success=DCO
33+
# If files are changed in .github/, the actionlint check must pass
34+
- or:
35+
- and:
36+
# regex should match the one in .github/workflows/actionlint.yml
37+
- files~=.github/.*$
38+
- check-success=actionlint
39+
- -files~=.github/.*$
40+
actions:
41+
merge:
42+
method: merge

.github/workflows/cherry-pick.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88

99
jobs:
1010
cherry_pick:
11-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0')
11+
if: github.event.pull_request.merged == true &&
12+
contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0')
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout repository

.github/workflows/lint-jobs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1515
cancel-in-progress: true
1616

17+
defaults:
18+
run:
19+
shell: bash
20+
1721
jobs:
1822
shellcheck:
1923
name: Shellcheck
@@ -33,3 +37,30 @@ jobs:
3337
uses: DavidAnson/markdownlint-cli2-action@v19
3438
with:
3539
globs: "**/*.md"
40+
41+
yamllint:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: "Harden Runner"
45+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
46+
with:
47+
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
48+
49+
- name: "Checkout"
50+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
with:
52+
# https://github.com/actions/checkout/issues/249
53+
fetch-depth: 0
54+
55+
# yamllint is a Python-based tool
56+
- name: Setup Python 3.11
57+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
58+
with:
59+
python-version: 3.11
60+
61+
- name: Setup yamllint
62+
run: pip install yamllint>=1.35.1
63+
64+
# TODO: Expand YAML linting to beyond .github to validate other YAML files
65+
- name: Run yamllint
66+
run: yamllint -c yamllint.yaml .github

yamllint.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
rules:
2+
quoted-strings:
3+
quote-type: any
4+
required: false
5+
allow-quoted-quotes: true
6+
check-keys: true
7+
8+
line-length:
9+
max: 120
10+
allow-non-breakable-words: true
11+
allow-non-breakable-inline-mappings: false
12+
13+
indentation:
14+
spaces: consistent
15+
indent-sequences: whatever
16+
check-multi-line-strings: false

0 commit comments

Comments
 (0)