Skip to content

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

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

Open
duchenpaul opened this issue May 31, 2023 · 0 comments
Open
Labels

Comments

@duchenpaul
Copy link

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

@ahoglund ahoglund added the P3 label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants