Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
**What this PR does / why we need it**:
# Proposed Changes

**Which issue(s) this PR fixes**:
Fixes #

**Special notes for your reviewer**:

**Release note**:
<!-- Write your release note:
1. Enter your release note in the below block.
2. If no release note is required, just write "NONE" within the block.
-
-
-

Format of block header: <category> <target_group>
Possible values:
- category: breaking|feature|bugfix|doc|other
- target_group: user|operator|developer|dependency
-->
```feature user

```
Fixes #
28 changes: 16 additions & 12 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Features'
- title: '⚠️ Breaking'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
- 'api-change'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: 'Maintenance'
- title: '🧰 Maintenance'
labels:
- 'chore'
- 'dependencies'
- 'documentation'
- 'marketing'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
Expand All @@ -33,16 +37,10 @@ exclude-labels:
autolabeler:
- label: 'api-change'
files:
- '/apis/*'
- label: 'compute'
files:
- '/controllers/compute/*'
- label: 'storage'
files:
- '/controllers/storage/*'
- '/api/*'
- label: 'documentation'
files:
- '**/*.md'
- '*.md'
branch:
- '/docs{0,1}\/.+/'
- label: 'bug'
Expand All @@ -55,6 +53,12 @@ autolabeler:
- '/feature\/.+/'
body:
- '/JIRA-[0-9]{1,4}/'
- label: 'enhancement'
branch:
- '/enh\/.+/'
- label: 'chore'
branch:
- '/chore\/.+/'
template: |
## Changes
$CHANGES
2 changes: 1 addition & 1 deletion .github/workflows/clean-cache.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cleanup caches by a branch
name: Cleanup caches by a branch
on:
pull_request:
types:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,31 @@ name: Build and Publish Docker Image
on:
release:
types:
- published
- published
push:
branches:
- main
- main
tags:
- v*
- v*
paths-ignore:
- 'docs/**'
- '**/*.md'
- 'docs/**'
- '**/*.md'
pull_request:
types:
- labeled
paths-ignore:
- 'docs/**'
- '**/*.md'
- 'docs/**'
- '**/*.md'
types: [labeled, unlabeled, opened, synchronize, reopened]

jobs:
buildAndPush:
permissions:
contents: read
packages: write
if: ${{ github.event.label.name == 'ok-to-image' }} || ${{ github.event.label.name == 'ok-to-🐳' }} || ${{ github.ref == 'refs/heads/main' }}
# Condition: Run on push to main, published release, OR PR with 'ok-to-image' label
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ok-to-image')) ||
(github.event_name == 'release' && github.event.action == 'published')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading