An open API service indexing awesome lists of open source software.

https://github.com/lee-dohm/extract-release-notes

A GitHub Action to extract release notes from pull requests
https://github.com/lee-dohm/extract-release-notes

action extract pull-requests release-notes

Last synced: 11 months ago
JSON representation

A GitHub Action to extract release notes from pull requests

Awesome Lists containing this project

README

          

# Extract Release Notes Action

A GitHub Action that extracts release notes from pull requests.

## Use

Release notes are extracted from the body of the pull request. It looks for content starting after a [Markdown header](https://spec.commonmark.org/0.29/#atx-headings) of `Release notes`, case insensitive and the trailing `s` is optional. Everything after that header is considered to be release notes content.

> **Please note:** The space after the one to six `#` characters _is required._

Example:

```markdown
This is the body of a pull request. Describe everything necessary to do with the PR here.

## Release notes

- Fixed the thingamabob
- Tweaked the whoosywhatsis
- Added a foozle
```

If no release notes section is found, an error status is returned.

### Inputs

- `releaseNotesPath` — Path to the file where you want the release notes stored when found (_default:_ `$GITHUB_WORKSPACE/__RELEASE_NOTES.md`)

### Outputs

- `releaseNotesPath` — Path where the release notes were stored if they were found

### Example

Validate that a pull request contains a release notes section:

```yaml
name: Validate release notes

on:
pull_request:
types: [opened, reopened, synchronized, edited]

jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- name: Extract release notes
uses: lee-dohm/extract-release-notes@v2
```

## License

[MIT](LICENSE.md)