Giter Site home page Giter Site logo

simple-release-notes's Introduction

Simple Release Notes

A batteries-included and opinionated drop-in solution to generating and managing github release notes.

Overview

Two main workflows

reusable-update-release-candidate-notes.yml

Inputs

Input Required Type Default Description
branch-with-candidate-code No string Optionally provide a specific branch that contains the candidate code, otherwise the default branch of the repository will be selected.

Outputs

Output Description
CANDIDATE_BRANCH The branch that was used to generate release notes from
CANDIDATE_COMMIT The latest commit hash from the candidate branch
URL Link to the release candidate

reusable-create-release-notes.yml

Inputs

Input Required Type Default Description
tag Yes string Tag to associate the release to. Can be new or existing.
auto-clear-release-candidate-notes No boolean true Whether the notes of the release candidate should be cleared

Outputs

Output Description
URL Link to the release

Setup

changelog via release.yml

Create a .github/release.yml

This will define the categorial structure of the release notes. When a pull request label matches an entry in the release.yml, it will be placed under the respective section. It matched against the first label to have an entry in the categories section.

Sample release.yml

changelog:
  categories:
    - title: ๐ŸŽ‰ New Features
      labels:
        - new feature
    - title: โœจ Enhancements
      labels:
        - enhancement
    - title: ๐Ÿ›  Breaking Changes
      labels:
        - breaking change
    - title: ๐Ÿ› Bug fixes
      labels:
        - bug
    - title: โšก๏ธ Optimisations
      labels:
        - optimisation
    - title: ๐Ÿ”ญ Observability
      labels:
        - observability
    - title: ๐Ÿ”’๏ธ Security
      labels:
        - security
    - title: ๐Ÿ“ Documentation
      labels:
        - documentation
    - title: ๐Ÿ“ฆ๏ธ Dependencies
      labels:
        - dependencies
    - title: Other Changes
      labels:
        - '*'

Integrate

Candidate

A long-lived mutable release-candidate tag can optionally be managed through the action reusable-update-release-candidate-notes.yml.

This will persist a single release instance for candidate changes that moves when changes are being made to your repository.

jobs:
  update-candidate:
    name: Update Release Candidate Notes
    permissions:
      id-token: write
      contents: write
    uses: danielebra/simple-release-notes/.github/workflows/reusable-update-release-candidate-notes.yml
    with:
      branch-with-candidate-code: main

This image demonstrates a release candidate managed by the above workflow.

Release Candidate

Latest Release

Latest Release Notes

The latest release is managed by detecting the current latest release before creating a new one. Given this spread, release notes will automatically be generated, alongside a change diff. A release will be published that is now marked as latest. The release title is named after the tag of the release.

jobs:
  create-release
    name: Create Release Notes
    permissions:
      id-token: write
      contents: write
    uses: danielebra/simple-release-notes/.github/workflows/reusable-create-release-notes.yml
    with:
      tag: v1.0.0

The default behaviour of the reusable-create-release-notes workflow will automatically clear the release notes from the candidate release. To disable candidate notes, you can opt-out of this via

with:
  auto-clear-release-candidate-notes: false

simple-release-notes's People

Contributors

danielebra avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

prezzee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.