1
0
Fork 0

Merging upstream version 0.10.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 13:52:11 +01:00
parent 2625ec8580
commit cbd8ff99bc
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
5 changed files with 97 additions and 15 deletions

View file

@ -0,0 +1,41 @@
name: "rn-pr-labeler"
author: "@gmuloc"
description: "Parse a conventional commit compliant PR title and add it as a label to the PR with the prefix 'rn: '"
inputs:
auto_create_label:
description: "Boolean to indicate if the label should be auto created"
required: false
default: false
runs:
using: "composite"
steps:
- name: 'Looking up existing "rn:" label'
run: |
echo "OLD_LABEL=$(gh pr view ${{ github.event.pull_request.number }} --json labels -q .labels[].name | grep 'rn: ')" >> $GITHUB_ENV
shell: bash
- name: 'Delete existing "rn:" label if found'
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "${{ env.OLD_LABEL }}"
shell: bash
if: ${{ env.OLD_LABEL }}
- name: Set Label
# Using toJSON to support ' and " in commit messages
# https://stackoverflow.com/questions/73363167/github-actions-how-to-escape-characters-in-commit-message
run: echo "LABEL=$(echo ${{ toJSON(github.event.pull_request.title) }} | cut -d ':' -f 1 | tr -d ' ')" >> $GITHUB_ENV
shell: bash
# an alternative to verifying if the target label already exist is to
# create the label with --force in the next step, it will keep on changing
# the color of the label though so it may not be desirable.
- name: Check if label exist
run: |
EXIST=$(gh label list -L 100 --search "rn:" --json name -q '.[] | select(.name=="rn: ${{ env.LABEL }}").name')
echo "EXIST=$EXIST" >> $GITHUB_ENV
shell: bash
- name: Create Label if auto-create and label does not exist already
run: |
gh label create "rn: ${{ env.LABEL }}"
shell: bash
if: ${{ inputs.auto_create_label && ! env.EXIST }}
- name: Labelling PR
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "rn: ${{ env.LABEL }}"
shell: bash

40
.github/release.yml vendored Normal file
View file

@ -0,0 +1,40 @@
changelog:
exclude:
labels:
- 'rn: test'
- 'rn: ci'
categories:
- title: Breaking Changes
labels:
- 'rn: feat!'
- 'rn: feat(cli)!'
- 'rn: fix!'
- 'rn: fix(cli)!'
- 'rn: cut!'
- 'rn: cut(cli)!'
- 'rn: revert!'
- 'rn: revert(cli)!'
- 'rn: refactor!'
- 'rn: refactor(cli)!'
- 'rn: bump!'
- 'rn: bump(cli)!'
- 'rn: feat!'
- 'rn: fix!'
- 'rn: cut!'
- 'rn: revert!'
- 'rn: refactor!'
- 'rn: bump!'
- title: New features and enhancements
labels:
- 'rn: feat'
- 'rn: feat(cli)'
- title: Fixed issues
labels:
- 'rn: fix'
- 'rn: fix(cli)'
- title: Documentation
labels:
- 'rn: doc!'
- title: Other Changes
labels:
- '*'

1
.gitignore vendored
View file

@ -346,3 +346,4 @@ report.html
*.swp
arista.xml
tester.py
*.tgz

View file

@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "eos_downloader"
version = "v0.10.1"
version = "v0.10.2"
readme = "README.md"
authors = [{ name = "Thomas Grimonet", email = "thomas.grimonet@gmail.com" }]
maintainers = [
@ -22,11 +22,11 @@ dependencies = [
"scp",
"tqdm",
"loguru",
"rich>=13.5.2,<13.8.0",
"rich>=13.5.2",
"cvprac>=1.0.7",
"click~=8.1.6",
"click-help-colors~=0.9",
"pydantic>2.0.0,<3.0.0",
"click>=8.1.6",
"click-help-colors>=0.9",
"pydantic>2.0.0",
]
keywords = ["eos_downloader", "Arista", "eos", "cvp", "network", "automation", "networking", "devops", "netdevops"]
classifiers = [
@ -51,7 +51,7 @@ requires-python = ">=3.8"
[project.optional-dependencies]
dev = [
"mypy==1.8.0",
"mypy==1.10.0",
"isort==5.13.2",
"mypy-extensions>=0.4.3",
"pre-commit>=2.20.0",
@ -62,7 +62,7 @@ dev = [
"pytest-html>=3.1.1",
"pytest-metadata>=1.11.0",
"pylint-pydantic>=0.2.4",
"tox~=4.11",
"tox>=4.11",
"types-PyYAML",
"types-paramiko",
"types-requests",
@ -94,7 +94,7 @@ namespaces = false
# Version
################################
[tool.bumpver]
current_version = "0.10.1"
current_version = "0.10.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump: Version {old_version} -> {new_version}"
commit = true