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
closing-remarks
shows earliest tag alphabetically, not chronologically
#7208
Comments
closing-remarks
shows pre-release tags
Thank you @aryairani 🙏 |
Hi @fregante — I'm a little uncertain. I don't believe it's an issue of excluding or including pre-release tags. My understanding is that the UI is supposed to show the earliest tag that included the PR in question. In my scenario, the earliest tag isn't the pre-release tag, it's the actual release tag; but the UI is showing the pre-release tag. What am I missing? |
(Actually I think it might the same issue described in #7206, but the submitter mistakenly focused on "pre-release" vs "release" metadata, which I think are a red herring which led to the issue being closed prima facie.) |
We just ask GitHub for the order, so you can change it by changing the time of creation of the tags. But the core logic remains: this pattern requires |
closing-remarks
shows pre-release tagsclosing-remarks
doesn't show earliest tag
Sorry, I still didn't understand. I do want pre-release tags to be included in the results. #7206 is asking to exclude pre-releases, but I'm not asking for that. I'm just reporting that in this case the pre-release tag is not the earliest tag, but it's being reported as the earliest tag. I think maybe the order is coming back wrong or needs to be sorted differently?
Where does this happen? Maybe I can help debug. |
See the firstTag updater function: https://github.com/refined-github/refined-github/blob/main/source/features/closing-remarks.tsx I wonder if GitHub is showing the tags in an unexpected order in the dom, I thought we were using the API. Probably there isn't an equivalent API. |
Should we reopen this bug since I don't think it's a dup of #7206? |
So it seems that GitHub lists tag in alphabetical order: We expect the "earliest tag" to appear last on that list, because that's generally the case. To fix this issue and to future-proof this feature, I'd be open to use the API, if it's possible. I think we went with this snippet because the API doesn't expose this information, calculating it would be expensive. |
closing-remarks
doesn't show earliest tagclosing-remarks
doesn't show earliest tag if non-version tags exist
As a workaround I will maybe rename my |
@aryairani Alphabetically, |
closing-remarks
doesn't show earliest tag if non-version tags existclosing-remarks
shows earliest tag alphabetically, not chronologically
Ok, I guess I have my functioning workaround in place now, thanks to @wookayin's alphabet help, by calling my nightly tag |
Tags that include the word This specific issue can stay open because I'd still want ordering, but I think this can only be done via API. The API can return the tags in order of creation. I don't want to get into the sorting of tags out of the current HTML snippet because soon enough there will be a repo with |
Description
The feature says the first tag containing the PR was
pre-release
But the first tag is actually
release/0.5.13
;pre-release
happens to be the last tag containing the PR.Note: the
pre-release
tag in this repo changes over time, but the bug still happens after clearing the extension cache, so I don't suppose it's a stale result.How to replicate the issue + URL
unisonweb/unison#4519
Extension version
23.12.17
Browser(s) used
Chrome 120.0.6099.129 (Official Build) (arm64)
The text was updated successfully, but these errors were encountered: