Skip to main content

Commands to automate some release tasks

Project description

CuteJoe

Commands to automate some release tasks.

Comb

Installation

Or on the local machine

pip install cutejoe

Usage

Some commands are available on CLI. To see all available commands, type:

cutejoe --help

Commands

Configuration File

Script to create default configuration file.

cutejoe config-file --help

start and end are the range commits to get the log messages. folder is where the changelogs will be saved. kinds are composed of: - labels (prefix of the commit messages), - title (title of this kind section), - version (major, minor or patch). default_title is the title used if the commit message has no valid kind.

Changelog

Script to generate changelog based on the commit messages.

cutejoe changelog --help

Changes on changelog generation

For every PR, the reviewer will be required to follow this pattern when "squash and merge" the PR:

<kind>:<message>

The kind and message must be written by the PR owner on the PR message. The reviewer must only copy the kind and message to the merge commit body.

* Valid kinds:

  • break: fix or feature that would cause existing functionality to not work as expected;
  • add: non-breaking change that adds functionality;
  • change: non-breaking change that changes existing functionality;
  • deprecate: non-breaking change that deprecates existing functionality;
  • remove: non-breaking change that removes existing functionality;
  • security: non-breaking change that fixes existing vulnerability;
  • fix: non-breaking change that fixes existing issue.

(kinds are defined on the configuration file)

**If someone forget to prefix with the kind, the message will be on the Uncategorized subsection.

Example:

add:script to generate changelog based on commit messages <- THIS MESSAGE MUST BE COPIED TO THE MERGE COMMIT MESSAGE

Changes on release and tag process

When a release is to be made, we checkout to the develop specific commit and run this command:

cutejoe changelog

The changelog is created to the /changelog folder and the release branch name is printed on the screen, like release/v1.0.1

Template for the .github/PULL_REQUEST_TEMPLATE.md of your project

In order to standardize the PR commit messages, it's desirable to create/change the .github/PULL_REQUEST_TEMPLATE.md:

## Squash and Merge Message

Please write the merge message:

`<type*>:<message>`

**\* Valid types:**
- `break`: fix or feature that would cause existing functionality to not work as expected;
- `add`: non-breaking change that adds functionality;
- `change`: non-breaking change that changes existing functionality;
- `deprecate`: non-breaking change that deprecates existing functionality;
- `remove`: non-breaking change that removes existing functionality;
- `security`: non-breaking change that fixes existing vulnerability;
- `fix`: non-breaking change that fixes existing issue.

(kinds are defined on the config file, change the valid types section according to your config file)

Template for the README.md of your project

It's advisable to inform on the README.md the PR commit pattern adopted by your project:

This project follows the [CuteJoe PR commit pattern and changelog](https://github.com/MatheusBrochi/CuteJoe).

TODOs

  • Commands to automate the entire release process (create branch, change version, etc);

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CuteJoe-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CuteJoe-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file CuteJoe-0.1.1.tar.gz.

File metadata

  • Download URL: CuteJoe-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for CuteJoe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2ebb604e0b464e31703cf16bcc14ac940cbd4e4b8f57c294d447336d47faac5
MD5 c67ab299495bbd735a17a0124afe5d49
BLAKE2b-256 494ebd74ca2f59b0c5ed0b1b53db20b5618481db70de315b84145269b6c48569

See more details on using hashes here.

File details

Details for the file CuteJoe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: CuteJoe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for CuteJoe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26b3b293a87ac66a159060322d12575bd45918b69e8d15ba707e87861358827d
MD5 410cef03b8acaee4c848999ef27ca4d3
BLAKE2b-256 d0aecbc64d793ea930fe2c68dd26ac38cc36c7265f12f0fa0b93119904a28864

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page