-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple commit log to the binaries release (#1026)
* Add simple commit log to the binaries release Opening this PR for discussion/consideration. This is naive and simple, but is still useful as it shows exactly what went into each binaries release and saves having to run `git log` to confirm that a release contains a specific feature. * Only consider source code paths * Update RELEASING.md
- Loading branch information
1 parent
ce70539
commit 7655f1a
Showing
3 changed files
with
41 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Generates a simple commit log for changes to the binaries between the last two tags. | ||
|
||
latest_tag="$(git tag | grep '^v.*' | sort -Vr | head -1)" | ||
previous_tag="$(git tag | grep '^v.*' | sort -Vr | head -2 | tail -1)" | ||
echo -e "Changes:\n$(git log --pretty='format:- %s (by %an) on %cs' ${previous_tag}..${latest_tag} -- internal/ cmd/ go.mod)" |