Skip to content

Use push events to poll for new job runs #9

@simmel

Description

@simmel

Awesome tool!

I wanted to yak shave something similar but I just wanted to run in another terminal to see that my CI/CD got a green bar, not start a process after every time I've pushed and Github Actions has started the job (which can take some time sometimes).

My idea was:
Poll https://docs.github.com/en/rest/reference/activity#list-repository-events and look for push events. I know it says This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. but that's just a warning, I suspect it's pretty much always fast except if Githubs "bus" is very backlogged.

My additional idea was to list workflow and then from the workflow runs display the job logs but it turns out you can't stream them; the logs are only available when the job is done.

Yay or nay?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions