Skip to content

Commit a4bdf90

Browse files
committed
Harmonize github workflows and templates
1 parent aa9d268 commit a4bdf90

File tree

4 files changed

+35
-41
lines changed

4 files changed

+35
-41
lines changed

.github/pull_request_template.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
**What this PR does / why we need it**:
1+
# Proposed Changes
22

3-
**Which issue(s) this PR fixes**:
4-
Fixes #
5-
6-
**Special notes for your reviewer**:
7-
8-
**Release note**:
9-
<!-- Write your release note:
10-
1. Enter your release note in the below block.
11-
2. If no release note is required, just write "NONE" within the block.
3+
-
4+
-
5+
-
126

13-
Format of block header: <category> <target_group>
14-
Possible values:
15-
- category: breaking|feature|bugfix|doc|other
16-
- target_group: user|operator|developer|dependency
17-
-->
18-
```feature user
19-
20-
```
7+
Fixes #

.github/release-drafter.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name-template: 'v$RESOLVED_VERSION'
22
tag-template: 'v$RESOLVED_VERSION'
33
categories:
4-
- title: 'Features'
4+
- title: '⚠️ Breaking'
5+
labels:
6+
- 'breaking'
7+
- title: '🚀 Features'
58
labels:
69
- 'feature'
710
- 'enhancement'
8-
- title: 'Bug Fixes'
11+
- 'api-change'
12+
- title: '🐛 Bug Fixes'
913
labels:
1014
- 'fix'
1115
- 'bugfix'
1216
- 'bug'
13-
- title: 'Maintenance'
17+
- title: '🧰 Maintenance'
1418
labels:
1519
- 'chore'
1620
- 'dependencies'
17-
- 'documentation'
21+
- 'marketing'
1822
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
1923
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
2024
version-resolver:
@@ -33,16 +37,10 @@ exclude-labels:
3337
autolabeler:
3438
- label: 'api-change'
3539
files:
36-
- '/apis/*'
37-
- label: 'compute'
38-
files:
39-
- '/controllers/compute/*'
40-
- label: 'storage'
41-
files:
42-
- '/controllers/storage/*'
40+
- '/api/*'
4341
- label: 'documentation'
4442
files:
45-
- '**/*.md'
43+
- '*.md'
4644
branch:
4745
- '/docs{0,1}\/.+/'
4846
- label: 'bug'
@@ -55,6 +53,12 @@ autolabeler:
5553
- '/feature\/.+/'
5654
body:
5755
- '/JIRA-[0-9]{1,4}/'
56+
- label: 'enhancement'
57+
branch:
58+
- '/enh\/.+/'
59+
- label: 'chore'
60+
branch:
61+
- '/chore\/.+/'
5862
template: |
5963
## Changes
6064
$CHANGES

.github/workflows/clean-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cleanup caches by a branch
1+
name: Cleanup caches by a branch
22
on:
33
pull_request:
44
types:

.github/workflows/publish-docker.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,31 @@ name: Build and Publish Docker Image
33
on:
44
release:
55
types:
6-
- published
6+
- published
77
push:
88
branches:
9-
- main
9+
- main
1010
tags:
11-
- v*
11+
- v*
1212
paths-ignore:
13-
- 'docs/**'
14-
- '**/*.md'
13+
- 'docs/**'
14+
- '**/*.md'
1515
pull_request:
16-
types:
17-
- labeled
1816
paths-ignore:
19-
- 'docs/**'
20-
- '**/*.md'
17+
- 'docs/**'
18+
- '**/*.md'
19+
types: [labeled, unlabeled, opened, synchronize, reopened]
2120

2221
jobs:
2322
buildAndPush:
2423
permissions:
2524
contents: read
2625
packages: write
27-
if: ${{ github.event.label.name == 'ok-to-image' }} || ${{ github.event.label.name == 'ok-to-🐳' }} || ${{ github.ref == 'refs/heads/main' }}
26+
# Condition: Run on push to main, published release, OR PR with 'ok-to-image' label
27+
if: |
28+
github.event_name == 'push' ||
29+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ok-to-image')) ||
30+
(github.event_name == 'release' && github.event.action == 'published')
2831
runs-on: ubuntu-latest
2932
steps:
3033
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)