Skip to content

Add "today" as query option #3298

Closed
Closed

Description

@tyler36

I want to add 2 queries:

  • show new issues
  • show issues closed today

Somethign similar to:

        {
            "label": "New Issues",
            "query": "state:open repo:${owner}/${repository} sort:created-desc closed:>=${yesterday}"
        },
        {
            "label": "Closed Issues",
            "query": "state:closed repo:${owner}/${repository} sort:created-desc closed:>=${today}"
        }

However, all the Github search documentation relates to setting a specific date.

Is something like this already available? I feel like this would be a variable handled by the extension.

Ideally, something like the below (php) psuedo code:

  • ${today} => now()->format('Y-m-d')
  • ${yesterday} => now()->subDay()->format('Y-m-d')

I would love to be able to do something like created:>=${yesderay}T18:00:00 => issues that were created after I left work.

Activity

  1. added this to the On Deck milestone on Feb 7, 2022
  2. alexr00 commented on Dec 9, 2022

    @alexr00
    Member

    Since we're just using GitHub's query language for this I'm going to call this an upstream issue and close this.

  3. tyler36 commented on Feb 17, 2025

    @tyler36
    Author

    This feature was added in 0.104.0. Well, today was.

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

Metadata

Metadata

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions