Skip to content

See "Last updated" date on Pinned issues #2747

Closed

Description

@yakov116

Example URL: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc

I am so used to seeing when the last time an issue was updated (thanks RH 😉), it would be nice to have it on pinned issues.
The only time I would want to see it, is if there is a comment. (not a label update etc..)

Draft:
image

something like this should do the job

{
  repository(owner: "sindresorhus", name: "refined-github") {
    issue (number:2671){
      comments(last:1) {
          nodes {
            updatedAt
          }
      } 
    }
  }
}

Activity

  1. added
    small
    and removed on Feb 2, 2020
  2. fregante commented on Feb 2, 2020

    @fregante
    Member

    Sounds reasonable. Does GitHub ever show anything else on that line? Like any tags and such

  3. yakov116 commented on Feb 2, 2020

    @yakov116
    MemberAuthor

    @fregante did some spot checking. Not that I noticed.

    I updated the query also to look at specifically, what I want to see.

  4. fregante commented on Feb 3, 2020

    @fregante
    Member

    That wouldn’t match the time that GitHub shows; we’d have to use the issue’s update time, not the last comment’s (which also doesn’t include review comments, as far as I know)

  5. yakov116 commented on Feb 3, 2020

    @yakov116
    MemberAuthor

    @fregante exactly my point. I don't see the need to know when a help wanted label has been added. I wish github had an option sort by last comment added.

    I want to know when the last comment was added.

  6. yakov116 commented on Feb 3, 2020

    @yakov116
    MemberAuthor

    What if we would write instead of updated, commented?

  7. changed the title [-]See last updated on Pinned issues[/-] [+]See "Last updated" date on Pinned issues[/+] on Feb 15, 2020
  8. fregante commented on Feb 15, 2020

    @fregante
    Member

    My point is that we can't change the how GitHub's regular sorting works so it's best to match its definitions as well. If an issue appears both pinned and at the top of an issue list the user will see 2 different dates, labelled slightly different. We shouldn't do that.

  9. yakov116 commented on Feb 16, 2020

    @yakov116
    MemberAuthor

    @fregante OK..

    I started writing a PR. I got so lost with typescript that I sort of gave up :(

  10. fregante commented on Feb 16, 2020

    @fregante
    Member

    If it works but types give you grief, open a draft PR and ask for help

  11. yakov116 commented on Feb 16, 2020

    @yakov116
    MemberAuthor

    @fregante will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions