Giter VIP home page Giter VIP logo

create-release-draft's Introduction

create-release-draft

Prepare the change log and create the release draft. The change log is created using labelled pull requests.
The change log can have several sections. Each section can have a set of labels used to filter pull requests.

Process for creating the change log is:

  1. We find the 2 commits associated with tag and prev_tag.
  2. We find all the commits between the 2 commits.
  3. We find all the pull requests that are associated with these commits.
  4. We group the pull requests by label.
  5. We sort the pull requests in each group by timestamp.
  6. We create each line in each section using line = line_template(pull_request).

Action Inputs

Name Description Required
token GitHub API token with push permissions to the repo. Used for creating the release draft. true
tag An existing tag to use for the release draft. true
prev_tag The previous tag to start calculating the change log from. true
owner Owner of the repo to create the release draft for. Default is the owner of the current repo. false
repo Repo to create the release draft for. Default is the current repo. false
title The title for the release draft. Default is 'Release ' + tag. false
title_prefix title = prefix + tag. If both title and title_prefix are specified then title takes priority. false
header The header will be placed before the change log in the release body. Default empty string. false
footer The footer will be placed after the change log in the release body. Default empty string. false
no_changes_message This message will be placed in the release body when the change log is empty. Default is "No changes from the previous release." false
draft Set to false to publish this release draft. Default is true. false
prerelease Set to true if this is a prerelease. By default it parses the tag as a semantic version to see if it is a prerelease. false
config Path to a configuration file. By default no config is used. The settings specified here override those in the config. false

Configuration

The config file is just a .js javascript file containing the same settings as above and some extras. Example:

module.exports = {
    title_prefix: "My App ",
    // valid PR types: ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert']
    sections:
        [
            { title: "๐Ÿš€ Features", labels: ["enhancement", "feat", "perf"] },
            { title: "๐Ÿ› Bug Fixes", labels: ["bug", "fix", "revert"] },
            { title: "๐Ÿงน Maintenance", labels: ["docs", "style", "refactor", "test", "build", "ci", "chore"] },
        ],
    header: `For more documentation and support please visit https://konveyor.io/move2kube/
# Changelog`,
    line_template: x => `- ${x.title} [#${x.number}](${x.html_url})`,
}

Example change log

For more documentation and support please visit https://konveyor.io/move2kube/
# Changelog

## ๐Ÿš€ Features

- feat: Move fixers to a package and simplify convert logic [#404](https://github.com/konveyor/move2kube/pull/404)
- feat: order containerization options in terms of container build type priority [#422](https://github.com/konveyor/move2kube/pull/422)
- feat: support * as a match all selector in qa keys [#415](https://github.com/konveyor/move2kube/pull/415)

## ๐Ÿ› Bug Fixes

- fix: parsing of config strings [#416](https://github.com/konveyor/move2kube/pull/416)

## ๐Ÿงน Maintenance

- chore: allow install script to install any tag [#424](https://github.com/konveyor/move2kube/pull/424)
- chore: get the new index.yaml from the latest release [#420](https://github.com/konveyor/move2kube/pull/420)
- chore: combine all 3 steps of asking a question into a single function call [#418](https://github.com/konveyor/move2kube/pull/418)
- chore: octokit is not defined in github workflows, use github instead [#413](https://github.com/konveyor/move2kube/pull/413)

create-release-draft's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

create-release-draft's Issues

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.