-
Notifications
You must be signed in to change notification settings - Fork 380
fix contributors list in release notes #830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hack/make-release-notes.sh
Outdated
echo | ||
echo "Thanks to our contributors for helping out with ${TAG}:" | ||
git log "$(git describe --tags --abbrev=0)..HEAD" --format=%an | | ||
git log "$(git describe --tags --match 'v*' --abbrev=0 "${TAG}^")..${TAG}" --format=%an | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be checking prev version..new version
but with what it was it was checking TAG..HEAD
which is the same commit. not sure what changed in the ci but this should fix it.
some tests i ran locally
$ TAG=v0.4.3 bash -c 'git log "$(git describe --tags --match "v*" --abbrev=0 "${TAG}^")..${TAG}" --format=%an | sort | uniq -c | sort -rn | sed -E "s,^(\s+[0-9]+\s),- ,g"'
- Chris Kim
- Ahmet Alp Balkan
- zhengtianbao
- Cornelius Weig
- Alexandre Garnier
- ferhat elmas
- Vincent
- Samuel Walker
- Kazuki Suda
- Kai
- Jun
- Gábor Lipták
- Evgeny Shmarnev
- Chok Yip Lau
- Carlos Alexandro Becker
- Batuhan Apaydın
- Allianzcortex
$ TAG=v0.4.2 bash -c 'git log "$(git describe --tags --match "v*" --abbrev=0 "${TAG}^")..${TAG}" --format=%an | sort | uniq -c | sort -rn | sed -E "s,^(\s+[0-9]+\s),- ,g"'
- Chris Kim
- Cornelius Weig
- Ahmet Alp Balkan
- ferhat elmas
- Vincent
- Evgeny Shmarnev
- Chok Yip Lau
- Alexandre Garnier
these match the outputs in the release notes (https://github.com/kubernetes-sigs/krew/releases/tag/v0.4.3 and https://github.com/kubernetes-sigs/krew/releases/tag/v0.4.2)
i added that glob match in case we ever tag with something else (highly unlikely but figured it didnt hurt to add)
/assign @ahmetb |
Funny I don't remember running into this. I ran |
hack/make-release-notes.sh
Outdated
echo | ||
echo "Thanks to our contributors for helping out with ${TAG}:" | ||
git log "$(git describe --tags --abbrev=0)..HEAD" --format=%an | | ||
git log "$(git describe --tags --match 'v*' --abbrev=0 "${TAG}^")..${TAG}" --format=%an | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit interesting though:
git describe --tags --match 'v*' --abbrev=0 "v0.4.3^"
v0.4.1
it skips v0.4.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya im not sure why. that was the release i did so maybe i messed something up? although i do see it when i git tag -l
and i see it here
ya sorry i mentioned it in slack but i manually edited it when i run this on master the contributor list is empty
|
actually think i need to look at this more /hold |
that's normal since you probably have v0.4.4 already tagged, but release notes must be computed before tagging in https://github.com/kubernetes-sigs/krew/blob/22f508a02fba9e1b4039ac69d583a70f1b5e510f/docs/RELEASING_KREW.md. So if you
I think this is how we've always done it on every release. I don't think GitHub picks up a tag's message/annotations as release description, unless you integrate with GitHub API. |
ah ok i see. i forgot that we manually uploaded the release notes and didnt have it in the ci till https://github.com/kubernetes-sigs/krew/pull/781/files
|
setting the fetch depth fixes it. here's a run i did (after deleting the v0.4.4 tag) https://github.com/chriskim06/krew/actions/runs/5683675067/job/15404722587 and here's the release it created https://github.com/chriskim06/krew/releases/tag/v0.4.4-test the contributor list is messed up since i dont have the 0.4.3 tag but this simplifies the release process for sure. lmk what you think @ahmetb, |
/hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, chriskim06 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [kubernetes-sigs/krew](https://github.com/kubernetes-sigs/krew) | patch | `v0.4.4` -> `v0.4.5` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>kubernetes-sigs/krew (kubernetes-sigs/krew)</summary> ### [`v0.4.5`](https://github.com/kubernetes-sigs/krew/releases/tag/v0.4.5) [Compare Source](kubernetes-sigs/krew@v0.4.4...v0.4.5) ## Installation To install this release, refer to the instructions at https://github.com/kubernetes-sigs/krew/blob/v0.4.5/README.md. ## Release Assets Artifacts for this release can be downloaded from the following links. It is recommended to follow [installation instructions](https://github.com/kubernetes-sigs/krew/blob/v0.4.5/README.md) and not using these artifacts directly. - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-darwin_amd64.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-darwin_amd64.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-darwin_arm64.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-darwin_arm64.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_amd64.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_amd64.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_arm.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_arm.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_arm64.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_arm64.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_ppc64le.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-linux_ppc64le.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-windows_amd64.tar.gz - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew-windows_amd64.tar.gz.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew.exe - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew.exe.sha256 - https://github.com/kubernetes-sigs/krew/releases/download/v0.4.5/krew.yaml Thanks to our contributors for helping out with v0.4.5: - Chris Kim - William Allen - Wenhao Ji - Marvin Beckers - Janki Chhatbar - Ahmet Alp Balkan (krew v0.4.5 was tagged on Tue Mar 18 16:41:42 UTC 2025.) <details> <summary>Merged pull requests</summary> Collecting pull request that were merged since the last release: v0.4.4 (2023-07-13 21:53:48 +0000 UTC) - docs: updated the link of the plugin stats dashboard [#​872](kubernetes-sigs/krew#872) - use an exact number for search integration test [#​864](kubernetes-sigs/krew#864) - Fixing search results [#​863](kubernetes-sigs/krew#863) - fix: chmod 0755 store/PLUGIN/VER dir [#​841](kubernetes-sigs/krew#841) - Update to Go 1.22 and latest Go dependencies [#​854](kubernetes-sigs/krew#854) - add aliases to a few commands [#​839](kubernetes-sigs/krew#839) - Add missing 'kubectl\` prefix to krew command [#​842](kubernetes-sigs/krew#842) - fix contributors list in release notes [#​830](kubernetes-sigs/krew#830) </details> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTIuMiIsInVwZGF0ZWRJblZlciI6IjM5LjIxMi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Fixes #...
Related issue: #...