Skip to content

Conversation

chriskim06
Copy link
Member

Fixes #...
Related issue: #...

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 18, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 18, 2023
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 |
Copy link
Member Author

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)

@chriskim06
Copy link
Member Author

/assign @ahmetb

@ahmetb
Copy link
Member

ahmetb commented Jul 19, 2023

Funny I don't remember running into this. I ran git show v0.4.4 after invoking this script and the contributor list was (and still is) there. And I also see https://github.com/kubernetes-sigs/krew/releases/tag/v0.4.4 is populated (did you edit it?) - so I don't know if there's a problem.

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 |
Copy link
Member

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?

Copy link
Member Author

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

@chriskim06
Copy link
Member Author

chriskim06 commented Jul 19, 2023

Funny I don't remember running into this. I ran git show v0.4.4 after invoking this script and the contributor list was (and still is) there. And I also see https://github.com/kubernetes-sigs/krew/releases/tag/v0.4.4 is populated (did you edit it?) - so I don't know if there's a problem.

ya sorry i mentioned it in slack but i manually edited it


when i run this on master the contributor list is empty

  ckim@not-computer   ~/src/chriskim06/krew    master: $|u= 
  19:18  TAG=v0.4.4 hack/make-release-artifacts.sh
Creating krew-darwin_amd64.tar.gz archive.
a ./LICENSE
a ./krew-darwin_amd64
krew-darwin_amd64.tar.gz checksum: a5784671b6a28eee1770e68a73aa1055e92e1f4955067ab3986e821679235e4c
Written out/krew-darwin_amd64.tar.gz.sha256.
Written out/krew.yaml.

  ckim@not-computer   ~/src/chriskim06/krew    master: $|u= 
  19:18  TAG=v0.4.4 hack/make-release-notes.sh
Installation
------------
To install this release, refer to the instructions at https://github.com/kubernetes-sigs/krew/blob/v0.4.4/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.4/README.md)
and not using these artifacts directly.

- https://github.com/kubernetes-sigs/krew/releases/download/v0.4.4/krew-darwin_amd64.tar.gz
- https://github.com/kubernetes-sigs/krew/releases/download/v0.4.4/krew-darwin_amd64.tar.gz.sha256
- https://github.com/kubernetes-sigs/krew/releases/download/v0.4.4/krew.yaml

Thanks to our contributors for helping out with v0.4.4:

(krew v0.4.4 is tagged on Wed Jul 19 02:18:53 UTC 2023.)

<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)
</details>

@chriskim06
Copy link
Member Author

actually think i need to look at this more

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2023
@ahmetb
Copy link
Member

ahmetb commented Jul 19, 2023

when i run this on master the contributor list is empty

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 git tag -d v0.4.4, I expect existing instructions to work.

i manually edited it

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.

@chriskim06
Copy link
Member Author

chriskim06 commented Jul 19, 2023

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

actions/checkout does a shallow clone so thats why checking the git log doesnt work there. think we'll need to update this https://github.com/actions/checkout/blob/v3.5.3/action.yml#L65-L67 to 0

@chriskim06
Copy link
Member Author

chriskim06 commented Jul 19, 2023

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, ill update the release docs later today as well. didnt have more time right now to do that after testing this out made some changes there

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 19, 2023
@chriskim06
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2023
@ahmetb
Copy link
Member

ahmetb commented Aug 9, 2023

/lgtm
/approve
Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 9, 2023
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit d2e660d into kubernetes-sigs:master Aug 9, 2023
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Mar 25, 2025
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 [#&#8203;872](kubernetes-sigs/krew#872)
-   use an exact number for search integration test [#&#8203;864](kubernetes-sigs/krew#864)
-   Fixing search results [#&#8203;863](kubernetes-sigs/krew#863)
-   fix: chmod 0755 store/PLUGIN/VER dir [#&#8203;841](kubernetes-sigs/krew#841)
-   Update to Go 1.22 and latest Go dependencies [#&#8203;854](kubernetes-sigs/krew#854)
-   add aliases to a few commands [#&#8203;839](kubernetes-sigs/krew#839)
-   Add missing 'kubectl\` prefix to krew command [#&#8203;842](kubernetes-sigs/krew#842)
-   fix contributors list in release notes [#&#8203;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=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants