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
66 changes: 33 additions & 33 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
---
name-template: $RESOLVED_VERSION
tag-template: $RESOLVED_VERSION
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: Major Changes
- title: 'Major Changes'
labels:
- major # c6476b
- title: Minor Changes
- 'major' # c6476b
- title: 'Minor Changes'
labels:
- feature # 006b75
- enhancement # ededed
- refactoring
- title: Bugfixes
- 'feature' # 006b75
- 'enhancement' # ededed
- 'refactoring'
- title: 'Bugfixes'
labels:
- bug # fbca04
- title: Deprecations
- 'bug' # fbca04
- title: 'Deprecations'
labels:
- deprecated # fef2c0
- 'deprecated' # fef2c0
exclude-labels:
- skip-changelog
- duplicate
- 'skip-changelog'
- 'duplicate'
version-resolver:
major:
labels:
- major
- 'major'
minor:
labels:
- minor
- feature
- enhancement
- refactoring
- 'minor'
- 'feature'
- 'enhancement'
- 'refactoring'
patch:
labels:
- patch
- bug
- deprecated
- 'patch'
- 'bug'
- 'deprecated'
default: patch
autolabeler:
- label: skip-changelog
title: /chore/i
- label: bug
title: /fix/i
- label: enhancement
title: /(enhance|improve)/i
- label: feature
title: /feature/i
- label: dreprecated
title: /deprecat/i
change-template: "* $TITLE by @$AUTHOR in #$NUMBER"
- label: 'skip-changelog'
title: '/chore/i'
- label: 'bug'
title: '/fix/i'
- label: 'enhancement'
title: '/(enhance|improve)/i'
- label: 'feature'
title: '/feature/i'
- label: 'dreprecated'
title: '/deprecat/i'
change-template: '* $TITLE by @$AUTHOR in #$NUMBER'
template: |
What's Changed
===
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/conventional-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
on:
pull_request_target:
types: [opened, edited, synchronize, reopened]
permissions:
pull-requests: write
name: Auto label pull request
jobs:
pr-label:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: "Confirm correct pull request title"
uses: mmubeen/action-pr-title@master # until PR gets merged https://github.com/deepakputhraya/action-pr-title/pull/29
with:
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog,patch'

- name: "Apply label"
if: github.event.pull_request.labels.length == 0
uses: bcoe/conventional-release-labels@v1
with:
type_labels: |
{
"feature": "enhancement",
"feat": "enhancement",
"fix": "bugfix",
"major": "major",
"breaking": "breaking",
"minor": "minor",
"enhancement": "enhancement",
"deprecated": "deprecated",
"removed": "removed",
"security": "security",
"bug": "bug",
"bugfix": "bugfix",
"docs": "trivial",
"packaging": "trivial",
"test": "trivial",
"refactor": "trivial",
"refactoring": "trivial",
"skip-release": "skip_changelog",
"skip_changelog": "skip_changelog",
"patch": "trivial"
}

role-label:
runs-on: ubuntu-latest
needs: pr-label
if: github.event.pull_request.labels.length == 0
steps:
- uses: actions/checkout@v3

- name: Get changed roles
id: changed-roles
uses: tj-actions/changed-files@v35
with:
path: "roles"
diff_relative: "true"
files: "**"
dir_names: "true"
dir_names_max_depth: "1"
sha: ${{ github.event.pull_request.head.sha }}

- name: Add changed roles labels
uses: actions/github-script@v6
if: |
steps.changed-roles.outputs.all_changed_and_modified_files
with:
script: |
const labels = '${{ steps.changed-roles.outputs.all_changed_and_modified_files }}'.split(' ').map(i => 'roles/' + i);
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: labels
})
9 changes: 6 additions & 3 deletions roles/ceems_api_server/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ galaxy_info:
galaxy_tags:
- monitoring
- prometheus
- exporter
- api
- metrics
- batchjob
- hpc
- slurm
- cloud
- openstack
- k8s
- vm
- pod
- cgroups
- energy
- ipmi
- rapl
- gpu
5 changes: 5 additions & 0 deletions roles/ceems_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ galaxy_info:
- batchjob
- hpc
- slurm
- cloud
- openstack
- k8s
- vm
- pod
- cgroups
- energy
- ipmi
Expand Down
8 changes: 2 additions & 6 deletions roles/nvidia_dcgm_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ galaxy_info:
- prometheus
- exporter
- metrics
- batchjob
- hpc
- slurm
- cgroups
- energy
- ipmi
- rapl
- dcgm
- gpu
- nvidia