Auto-generator doesn't choose most current release as base diff #5975
-
|
While trying out the new release-notes auto-generation feature, I entered a new tag (patch-level; 1.8.1, previous being 1.8.0) and the generator chose to diff against an older tag: v1.7.1. If there's too much complexity in the magic of figuring out what Relevant repo: https://github.com/jbergstroem/hadolint-gh-action Aside: not a big fan of the author being part of the changelog; but I'm probably a minority here. |
Beta Was this translation helpful? Give feedback.
Replies: 20 comments 73 replies
-
|
oh hey @jbergstroem been a minute! This definitely seems like a bug, I wonder if it is at all related to the v1 tag that seems to have been published on the same date as v1.8.0. Could you try deleting that tag (if it isn't being used for anyting) and let me know if that helps? |
Beta Was this translation helpful? Give feedback.
-
|
I've been able to reproduce it on a play repo, too, but can't see anything obvious that would cause it. I did have a hunch that it might have been something to do with having a tag that wasn't connected to a release, after seeing one in each of mine and @jbergstroem's screenshots https://github.com/PromoFaux/TestRepo/ And actually, even after publishing the Happy to grant access to anyone who wants to debug it if needed |
Beta Was this translation helpful? Give feedback.
-
|
I'm not 100% but I think that moving from using pep440 to determine previous release instead of semver might fix some of the issues we are seeing. I'm not 100% that it will fix the issue but it does seem like part of the weirdness is a mix of semver and non semver compliant tags. In the case of the action with the v1 tag there might be even more weirdness in the UI and we might need to do some additional work to figure this out. |
Beta Was this translation helpful? Give feedback.
-
|
Hey all. We just rolled out what should hopefully be a fix for many edge cases folks have identified. Can you please give release note generation another go and let us know how it works out. Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
I have been trying to create a release for https://github.com/odpi/egeria. We've been doing monthly released with very fixed names (.... ...2.7,2.8,2.9,2.10,2.11,3.0,3.1,3.2 etc) and I'm now doing 3.3 & see the release notes diff goes back to 2.8. I should add, each tag has a 'V' (uppercase) as a prefix. The schedule is pretty fixed and I can't see inconsistencies. I tried this just now -- with the latest fix, and am still getting an incorrect diff |
Beta Was this translation helpful? Give feedback.
-
|
Hey! We're hitting a similar issue in https://github.com/crossplane/provider-aws . I want to generate release note for The latest release is My two cents, it'd be great if we can choose the base tag as configuration in the UI for the generation so that it doesn't have to know which tag it should be based on. |
Beta Was this translation helpful? Give feedback.
-
|
If it helps troubleshooting it, I'm facing the same issue on https://github.com/pelletier/go-toml. I am trying to generate the changelog for a new tag |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, We have a new feature flagged version determination algorithm we'd love to test out. If you are still having issues with getting the correct previous release we'd love to flag in your repo and see if it fixes things. Please respond here with the repo you'd like us to turn it on for |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, We've just rolled out the new release regex to all repositories. Please take a look and see if it fixes your issues. One of the issues folks have been running into here are repositories that are using advanced release strategies with release branches. The new regex is not going to help in those cases. Our release generating tool is built on top of Pull-Requests and requires that your PRs target the same target branch that the release is created from. I'm going to mark this thread as answered. Please let me know if you run into issues and we can open new discussions for additional bugs or features |
Beta Was this translation helpful? Give feedback.
-
|
@MylesBorins has the team considered a prompt for the base tag? It seems like that would give more flexibility and avoid confusion about the default behavior? |
Beta Was this translation helpful? Give feedback.
-
|
We're using a year-based version strategy (v2022.6.0 > v2022.7.0) and this doesn't work at all it seems. The v2022.7.0 release does not compare to any previous release (it just generates a link to all commits). This shouldn't be too different from a v1-2-3 scheme I would think. Anything that would hinder the recognition of the base tag here? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @PromoFaux How to get Automated release notes from just 1 previous tag i can see that release notes are created but it is using develop branch latest tag. Which is incorrect i want to choose latest tag of master branch although the last tag was created from master branch. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
Where do we find this 'release regex'? I've been looking but cannot find it in Settings. Update: if its this there's no mention about regular expression support. |
Beta Was this translation helpful? Give feedback.
-
|
Raised a new issue that will hopefully get clarified #12873 |
Beta Was this translation helpful? Give feedback.
-
|
Not working for our https://github.com/odpi/egeria releases (which we do monthly)- I end up having to edit the list manually as it insists on going back many many releases. Most commits get done on master. We do branch to a release of the form egeria-release-36 & tag as 'V3.6' format on a release - we've adopted a similar pattern for the last 1-2 years. On occasion we backport from master to the release if we find a regression in testing. |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, we are working on a feature to allow you to select the previous tag manually. If you would like to try it out please comment in this thread with the repository you would like us to enable the preview feature on |
Beta Was this translation helpful? Give feedback.
-
|
Selecting it manually is a good workaround, but I'm confused as to why it's not finding the prior releases automatically. I have several repos. All of them use semantic versioning beginning with a Auto-generated release notes are a great idea, but getting the right previous release is pretty key to making it useful. |
Beta Was this translation helpful? Give feedback.
-
|
I'm slightly confused by the behaviour here, what does it select by default as the previous release? I was expecting it to ignore pre-releases but that doesn't seem to be the case. We have a fairly simple versioning strategy, by year. For example, v2022.1.1 then v2022.2.1 then v2022.3.1. Whenever we create a release we mark it as "pre-release" until it has gone to production, at which point it is marked as the latest release. If we find a bug in the release, we fix it in master and then cut another, this time incrementing the final number. E.g. v2022.1.1 would be the first attempt at the first release of 2022, v2022.1.2 would be the second attempt at the first release of 2022. Unfortunately it seems that when the second attempt at the release is cut, it uses the previous pre-release as the basis for the release notes despite it not being considered the latest release. |
Beta Was this translation helpful? Give feedback.
-
|
Bump No way to select the last tag automatically instead of manually yet? |
Beta Was this translation helpful? Give feedback.
-
|
We're seeing "auto" make very strange choices. What I want: choose the most recent tag whose commit is an ancestor of the current tag's commit. (We use annotated tags.) For bonus points, limit to semver tags, but what we're seeing is seemingly randomly skipping past 5 or so tags in history, or using something from many dozens of tags ago. (Furthermore, once the tag is selected, the changelog doesn't even list the changes since that tag. Sometimes it will be one change that was from that chosen tag, and nothing since. And even when selecting the tag I want from the drop-down instead of using auto, the changelog is wrong, but I get that this particular issue is about the choice of the "from" tag, not the changelog that is produced from that. We have no |
Beta Was this translation helpful? Give feedback.













Hey all,
We've just rolled out the new release regex to all repositories. Please take a look and see if it fixes your issues.
One of the issues folks have been running into here are repositories that are using advanced release strategies with release branches. The new regex is not going to help in those cases.
Our release generating tool is built on top of Pull-Requests and requires that your PRs target the same target branch that the release is created from.
I'm going to mark this thread as answered. Please let me know if you run into issues and we can open new discussions for additional bugs or features