Skip to content

[Schema Inaccuracy] Github action, create datetime query not working #2542

Open
@duchenpaul

Description

@duchenpaul

Schema Inaccuracy

I would like to query all workflow runs since a datetime, it does not work as expected.

Expected

Requesting API:

https://api.github.com/repos/{user]/{repo}/actions/runs?created=2023-05-11T00:00:00+08:00..* 

It should return all the workflows that were created after 2023-05-11T00:00:00, timezone UTC+8.

Actually, it returns:

{
  "total_count": 0,
  "workflow_runs": []
}

Seems the API does not support time? The doc Understanding the search syntax is very very misleading, 😞

Reproduction Steps

Requesting API is mentioned above. BTW is it possible to query all the workflow runs in the past time range, like 24hours?

Related issue: #2195
Reference: https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions