Skip to content

Commit 17fcb03

Browse files
new: updating release system and adding labels (#575)
## 📝 Description **What does this PR do and why is this change necessary?** Adds a label and release configuration file, adding labels to PRs will now correctly organize them in the Github Release notes.
1 parent bbdb8bb commit 17fcb03

File tree

18 files changed

+75
-40
lines changed

18 files changed

+75
-40
lines changed

.github/labels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- name: new-feature
2+
description: for new features in the changelog.
3+
color: 225fee
4+
- name: improvement
5+
description: for improvements in existing functionality in the changelog.
6+
color: 22ee47
7+
- name: repo-ci-improvement
8+
description: for improvements in the repository or CI workflow in the changelog.
9+
color: c922ee
10+
- name: bugfix
11+
description: for any bug fixes in the changelog.
12+
color: ed8e21
13+
- name: documentation
14+
description: for updates to the documentation in the changelog.
15+
color: d3e1e6
16+
- name: testing
17+
description: for updates to the testing suite in the changelog.
18+
color: 933ac9
19+
- name: breaking-change
20+
description: for breaking changes in the changelog.
21+
color: ff0000
22+
- name: ignore-for-release
23+
description: PRs you do not want to render in the changelog
24+
color: 7b8eac

.github/release-drafter.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: ⚠️ Breaking Change
7+
labels:
8+
- breaking-change
9+
- title: 🐛 Bug Fixes
10+
labels:
11+
- bugfix
12+
- title: 🚀 New Features
13+
labels:
14+
- new-feature
15+
- title: 💡 Improvements
16+
labels:
17+
- improvement
18+
- title: 🧪 Testing Improvements
19+
labels:
20+
- testing
21+
- title: ⚙️ Repo/CI Improvements
22+
labels:
23+
- repo-ci-improvement
24+
- title: 📖 Documentation
25+
labels:
26+
- documentation
27+
- title: 📦 Dependency Updates
28+
labels:
29+
- dependencies
30+
- title: Other Changes
31+
labels:
32+
- "*"

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

linodecli/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Launches the CLI
33
"""
4+
45
from linodecli import main
56

67
main()

linodecli/baked/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""
22
Collection of classes for handling the parsed OpenAPI Spec for the CLI
33
"""
4+
45
from .operation import OpenAPIOperation

linodecli/baked/colors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Applies shell color escapes for pretty printing
33
"""
4+
45
import os
56
import platform
67

linodecli/baked/operation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
CLI Operation logic
33
"""
4+
45
import argparse
56
import glob
67
import json

linodecli/baked/response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Converting the processed OpenAPI Responses into something the CLI can work with
33
"""
4+
45
from openapi3.paths import MediaType
56

67
from .colors import colorize_string

linodecli/output.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Handles formatting the output of commands used in Linode CLI
33
"""
4+
45
import copy
56
import json
67
from enum import Enum
@@ -157,9 +158,11 @@ def print_response(
157158
continue
158159

159160
self.print(
160-
self._scope_data_to_subtable(data, table_name)
161-
if table_name is not None
162-
else data,
161+
(
162+
self._scope_data_to_subtable(data, table_name)
163+
if table_name is not None
164+
else data
165+
),
163166
self._get_columns(table_attrs),
164167
title=table_name,
165168
to=to,

0 commit comments

Comments
 (0)