Giter VIP home page Giter VIP logo

Comments (14)

fregante avatar fregante commented on May 20, 2024 3

Tags that include the word nightly and tags that don't have a version (minimum \d\.\d expected) are now excluded:

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 1.0.0 and release/2.0.0 and beta/2.0.0 and I can't figure out every combination of that.

from refined-github.

fregante avatar fregante commented on May 20, 2024 2

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.

from refined-github.

fregante avatar fregante commented on May 20, 2024 1

Thank you @aryairani πŸ™ ☺️

from refined-github.

aryairani avatar aryairani commented on May 20, 2024 1

(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.)

from refined-github.

aryairani avatar aryairani commented on May 20, 2024 1

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 --force, so it's not something we should support

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?

image image

release/0.5.13 includes the PR and is earlier than pre-release

We just ask GitHub for the order

Where does this happen? Maybe I can help debug.

from refined-github.

aryairani avatar aryairani commented on May 20, 2024 1

As a workaround I will maybe rename my pre-release to nightly, which comes before release in alphabetical order. 🀦 Thanks for looking into this.

from refined-github.

aryairani avatar aryairani commented on May 20, 2024 1

@wookayin Oh yeah! 🀦
@fregante maybe this issue should be "closing-remarks shows earliest tag alphabetically rather than chronologically".
i.e. you could see the same problem if the versioning scheme changes (even though none of them would necessarily be non-version tags)

from refined-github.

fregante avatar fregante commented on May 20, 2024

from refined-github.

aryairani avatar aryairani commented on May 20, 2024

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?
Thank you!

from refined-github.

fregante avatar fregante commented on May 20, 2024

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 --force, so it's not something we should support

from refined-github.

fregante avatar fregante commented on May 20, 2024

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.

from refined-github.

aryairani avatar aryairani commented on May 20, 2024

Should we reopen this bug since I don't think it's a dup of #7206?

from refined-github.

wookayin avatar wookayin commented on May 20, 2024

@aryairani Alphabetically, nightly < pre-release < release-* < v, so you might instead want a tag that comes after release, i.e. s, t, u, v, w, ... I have a similar issue with you in #7206, where nightly precedes v.

from refined-github.

aryairani avatar aryairani commented on May 20, 2024

Ok, I guess I have my functioning workaround in place now, thanks to @wookayin's alphabet help, by calling my nightly tag trunk-build, which comes after release/* alphabetically. (I had called it my "trunk build" tag trunk briefly, but ran into conflicts with the trunk branch.)

from refined-github.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.