-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Changelog | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
paths: | ||
- '**.go' | ||
- '**/go.mod' | ||
- '**/go.sum' | ||
|
||
jobs: | ||
changelog: | ||
if: contains(github.event.pull_request.title, '[skip changelog]') == false && | ||
contains(github.event.pull_request.labels.*.name, 'skip/changelog') == false | ||
runs-on: ubuntu-latest | ||
name: Changelog | ||
steps: | ||
- id: changelog | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
ENDPOINT: repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files | ||
SELECTOR: 'map(select(.filename == "CHANGELOG.md")) | length' | ||
run: gh api "$ENDPOINT" --jq "$SELECTOR" | xargs -I{} echo "modified={}" | tee -a $GITHUB_OUTPUT | ||
- if: steps.changelog.outputs.modified == '0' | ||
env: | ||
MESSAGE: | | ||
CHANGELOG.md was not modified in this PR. Please do one of the following: | ||
- add a changelog entry | ||
- add `[skip changelog]` to the PR title | ||
- label the PR with `skip/changelog` | ||
run: | | ||
echo "::error::${MESSAGE//$'\n'/%0A}" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
Note: | ||
* The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). | ||
* This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Legend | ||
The following emojis are used to highlight certain changes: | ||
* 🛠 - BREAKING CHANGE. Action is required if you use this functionality. | ||
* ✨ - Noteworthy change to be aware of. | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- ✨ Now supports local cache sharing with peers provided via `--peering` (`RAINBOW_PEERING`). You can further read how this works in [`docs/environment-variables.md`](docs/environment-variables.md). | ||
|
||
### Changed | ||
|
||
### Removed | ||
|
||
### Fixed | ||
|
||
### Security | ||
|
||
## [v1.0.0] | ||
|
||
Our first version. Check the [README](README.md) for all the information regarding 🌈 Rainbow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters