Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release drafter fix and autolabeling (for release) #1678

Merged
merged 17 commits into from
Dec 18, 2024
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
177 changes: 177 additions & 0 deletions .github/rd-release-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
filter-by-commitish: False
include-pre-releases: false
categories:
- title: 'Features'
labels:
- 'features'
- title: 'Enhancements'
labels:
- 'performance'
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'bug'
- title: 'Benchmarking'
label: 'benchmarking'
- title: 'Documentation'
labels:
- 'documentation'
- title: 'Testing'
label: 'testing'
- title: 'Security'
labels:
- 'security'
- title: 'Core'
label: 'core'
- title: 'Classification'
label: 'classification'
- title: 'Cluster'
label: 'cluster'
- title: 'Datasets'
label: 'datasets'
- title: 'Decomposition'
label: 'decomposition'
- title: 'FFT'
label: 'fft'
- title: 'Graph'
label: 'graph'
- title: 'Linear Algebra'
label: 'linalg'
- title: 'Naive Bayes'
label: 'naive bayes'
- title: 'Neural Networks'
labels:
- 'nn'
- 'neural net'
- title: 'Optimization'
label: 'optim'
- title: 'Preprocessing'
label: 'preprocessing'
- title: 'Regression'
label: 'regression'
- title: 'Sparse'
label: 'sparse'
- title: 'Spatial'
label: 'spatial'
- title: 'Utils'
label: 'utils'
exclude-labels:
- 'github-actions'
- 'dependencies'
- 'chore'
- 'workflows'

autolabeler:
- label: 'workflows'
files:
- '.github/**/*'
title:
- '/Workflow.+/'
- label: 'chore'
title:
- '/\[pre-commit.ci\].+/'
- label: 'features'
title:
- '/feat/i'
- '/feature/i'
- '/implement/i'
- '/add/i'
- '/new/i'
branch:
- '/feature/i'
- '/feat/i'
- label: 'enhancement'
title:
- '/Refactor.+/'
- '/Expand.+/'
- label: 'documentation'
files:
- 'doc/**/*'
- '*.md'
- label: 'benchmarking'
files:
- 'benchmarks/**/*'
- label: 'docker'
files:
- 'docker/**/*'
- label: 'backport release'
title:
- '/bug/i'
- '/resolve/i'
- '/fix/i'
branch:
- '/bug/i'
- '/fix/i'
- label: 'bug'
title:
- '/bug/i'
- '/resolve/i'
- '/fix/i'
branch:
- '/bug/i'
- '/fix/i'
- label: 'interoperability'
title:
- '/Support.+/'
- label: 'testing'
files:
- '**/tests/**/*'
- label: 'classification'
files:
- 'heat/classification/**/*'
- label: 'cluster'
files:
- 'heat/cluster/**/*'
- label: 'core'
files:
- 'heat/core/**/*'
- label: 'datasets'
files:
- 'heat/datasets/**/*'
- label: 'decomposition'
files:
- 'heat/decomposition/**/*'
- label: 'fft'
files:
- 'heat/fft/**/*'
- label: 'graph'
files:
- 'heat/graph/**/*'
- label: 'naive bayes'
files:
- 'heat/naive_bayes/**/*'
- label: 'nn'
files:
- 'heat/nn/**/*'
- label: 'optim'
files:
- 'heat/optim/**/*'
- label: 'preprocessing'
files:
- 'heat/preprocessing/**/*'
- label: 'regression'
files:
- 'heat/regression/**/*'
- label: 'sparse'
files:
- 'heat/sparse/**/*'
- label: 'spatial'
files:
- 'heat/spatial/**/*'
- label: 'utils'
files:
- 'heat/utils/**/*'
- label: 'linalg'
files:
- 'heat/core/linalg/**/*'

change-template: '- #$NUMBER $TITLE (by @$AUTHOR)'
category-template: '### $TITLE'
template: |
## Changes

$CHANGES

## Contributors

$CONTRIBUTORS
113 changes: 0 additions & 113 deletions .github/release-drafter.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: Release Drafter

on:
pull_request_target:
types: [closed]

permissions:
contents: read

types: [opened, reopened, synchronize]
jobs:
update_release_draft:
permissions:
Expand All @@ -15,10 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit

- uses: release-drafter/release-drafter@09c613e259eb8d4e7c81c2cb00618eb5fc4575a7 # v5.25.0
- uses: release-drafter/release-drafter@v6 # v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: 'release'
name: ${{ github.ref_name }} - Draft release
config-name: rd-release-config.yml
Loading
Loading