Skip to content

Add event-list command to query Patchwork events#42

Merged
stephenfin merged 1 commit intogetpatchwork:mainfrom
acerv:events_list
Apr 10, 2026
Merged

Add event-list command to query Patchwork events#42
stephenfin merged 1 commit intogetpatchwork:mainfrom
acerv:events_list

Conversation

@acerv
Copy link
Copy Markdown
Contributor

@acerv acerv commented Apr 10, 2026

The Patchwork REST API exposes an events endpoint that can be filtered by category, project and date. Add an event-list command so users can query events such as series-completed directly from the CLI. Supports format strings for scriptable output.

@acerv
Copy link
Copy Markdown
Contributor Author

acerv commented Apr 10, 2026

FYI I'm currently maintaining LTP project that is using patchwork as our main tracking system. We are currently using curl + git am to track events, download patches and applying them to the current branch before testing them via CI.

We faced issues related to shell scripts in the CI that we would like to resolve and we found pwclient suited for this job. It's actually missing a couple of supports, including events list which is implemented in this patch.

The idea is that we need to obtain completed patch-series from patchwork once every N minutes, apply the patch and start the CI. This implementation will permit us to gain stability over CI and run tests without operational errors.

Copy link
Copy Markdown
Member

@stephenfin stephenfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine bar one small request inline.

EDIT: Also, looks like you need to resolve the linter failures. You can do that with tox -e pep8 or pre-commit run -a (same thing)

Copy link
Copy Markdown
Member

@stephenfin stephenfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming CI looks good

The Patchwork REST API exposes an events endpoint that can be
filtered by category, project and date. Add an event-list command
so users can query events such as series-completed directly from
the CLI. Supports format strings for scriptable output.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
@stephenfin stephenfin merged commit 1998be9 into getpatchwork:main Apr 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants