Skip to content

Commit 2cb0abc

Browse files
authored
chore: apply CI template update (#967)
1 parent 57e9cf5 commit 2cb0abc

8 files changed

Lines changed: 84 additions & 26 deletions

File tree

.copier-answers.ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 9121f24
2+
_commit: 908a424
33
_src_path: gh:athackst/ci
44
bump_script_path: .github/bump.sh
55
release_template: "# Get it\n\n ## Python\n\n Install it with pip\n\n ```bash\n\

.github/ci-config.yml

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This file is generated from athackst/ci/template/.github/ci-config.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
14
name-template: "Release v$RESOLVED_VERSION"
25
tag-template: "v$RESOLVED_VERSION"
36
template-file: ".github/release_template.md"
@@ -52,44 +55,64 @@ version-resolver:
5255

5356
labels:
5457
breaking:
55-
- head-branch: ["^major", "^breaking", "^break"]
58+
- head-branch: ["^major", "^break"]
5659
- description: "Breaking or major-version change"
57-
- color: "b91c1c"
60+
- color: "#7f1d1d"
5861

59-
fix:
62+
bug:
6063
- head-branch: ['^fix', '^bug']
6164
- description: "Something isn't working"
62-
- color: "ea580c"
65+
- color: "#d73a4a"
6366

64-
feature:
67+
enhancement:
6568
- head-branch: ["^feat", "^new", "^enhance"]
6669
- description: "New feature or request"
67-
- color: "0f766e"
68-
69-
documentation:
70-
- changed-files:
71-
- any-glob-to-any-file: "**/*.md"
72-
- head-branch: ["^doc"]
73-
- description: "Change to documentation"
74-
- color: "65a30d"
75-
70+
- color: "#0f766e"
71+
7672
maintenance:
7773
- head-branch: ['^chore', '^maint', '^noop', '^no-op', '^upkeep', '^dev']
74+
- changed-files:
75+
- any-glob-to-any-file: [".github/**", ".vscode/**"]
7876
- description: "Non-behavior related change"
79-
- color: "7c3aed"
77+
- color: "#0ea5e9"
8078

8179
dependencies:
8280
- head-branch: ['^deps', '^dependencies']
8381
- description: "Pull requests that update a dependency file"
84-
- color: "2563eb"
82+
- color: "#1d4ed8"
8583

86-
devops:
84+
documentation:
8785
- changed-files:
88-
- any-glob-to-any-file: [".github/**", ".vscode/**"]
89-
- description: "Change to development workflows"
90-
- color: "0ea5e9"
86+
- any-glob-to-any-file: "**/*.md"
87+
- head-branch: ["^doc"]
88+
- description: "Improvements or additions to documentation"
89+
- color: "#64748b"
9190

9291
automerge:
93-
- head-branch: ['^dependabot/', '^chore/update-ci-template$']
94-
- description: "PRs eligible for automatic merge"
95-
- color: "eab308"
92+
- head-branch: ['^dependabot/', '^ci/']
93+
- description: "Automatically merge"
94+
- color: "#eab308"
95+
96+
good first issue:
97+
- description: "Good for newcomers"
98+
- color: "#c4b5fd"
99+
100+
help wanted:
101+
- description: "Extra attention is needed"
102+
- color: "#db2777"
103+
104+
question:
105+
- description: "Further information is requested"
106+
- color: "#7e22ce"
107+
108+
duplicate:
109+
- description: "This is a duplicate"
110+
- color: "#cbd5e1"
111+
112+
invalid:
113+
- description: "This doesn't seem right"
114+
- color: "#a3a3a3"
115+
116+
wontfix:
117+
- description: "This will not be worked on"
118+
- color: "#78716c"

.github/release_template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- This file is generated from .copier-answers.ci.yml. Do not edit directly; update the template instead. -->
2+
13
# Get it
24

35
## Python

.github/workflows/ci_update.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
# This file is generated from athackst/ci/template/.github/workflows/ci_update.yml.jinja.
3+
# Do not edit directly; update the template instead.
4+
15
name: CI Update
26

37
on:

.github/workflows/pr_bot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/pr_bot.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
14
name: PR Bot
25

36
on:
@@ -6,16 +9,15 @@ on:
69

710
jobs:
811
pr-label:
9-
if: ${{ github.event_name == 'pull_request' }}
1012
permissions:
1113
contents: read
1214
pull-requests: write
1315
uses: athackst/ci/.github/workflows/pr_labeler.yml@main
1416
secrets: inherit
1517

1618
pr-automerge:
17-
needs: pr-label
1819
if: ${{ github.event_name == 'pull_request_target' }}
20+
needs: pr-label
1921
permissions:
2022
contents: write
2123
pull-requests: write

.github/workflows/release_draft.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/release_draft.yml.jinja.
2+
# Do not edit directly; update the template instead.
13
name: Release Draft
24

35
on:

.github/workflows/setup_labels.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/setup_labels.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
4+
name: Setup labels
5+
6+
on:
7+
push:
8+
branches: [main]
9+
paths:
10+
- ".github/ci-config.yml"
11+
workflow_dispatch:
12+
13+
jobs:
14+
setup-labels:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Setup labels
18+
id: setup-labels
19+
uses: athackst/ci/actions/setup-labels@main
20+
with:
21+
github-token: ${{ secrets.CI_BOT_TOKEN || github.token }}
22+
configuration-path: .github/ci-config.yml

.github/workflows/site.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/site.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
14
name: Site
25

36
on:

0 commit comments

Comments
 (0)