From e0eeeed6648003ce1e78d42ca336cd751f66cd0e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 24 Jan 2017 14:20:09 +0000 Subject: docs: Add events to usage guide Signed-off-by: Stephen Finucane Tested-by: Daniel Axtens --- docs/usage/overview.md | 130 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) (limited to 'docs/usage') diff --git a/docs/usage/overview.md b/docs/usage/overview.md index 4020fac..de808c8 100644 --- a/docs/usage/overview.md +++ b/docs/usage/overview.md @@ -178,6 +178,136 @@ for merge to the tree. Patchwork users can store a to-do list of patches. +## Events + +Events are raised whenever patches are created or modified. + +All events have a number of common properties, along with some event-specific +properties: + +
+
category
+
The type of event
+
project
+
The project this event belongs to
+
date
+
When this event was created
+
+ +**NOTE:** Checks can only be created and read through the Patchwork APIs. Refer +to the [API documentation][doc-api] for more information. + +### Cover Letter Created + +Sent when a cover letter is created. + +
+
category
+
cover-created
+
cover
+
Created cover letter
+
+ +### Patch Created + +Sent when a patch is created. + +
+
category
+
patch-created
+
patch
+
Created patch
+
+ +### Patch Completed + +Sent when a patch in a series has its dependencies met, or when a patch that is +not in a series is created (since that patch has no dependencies). + +
+
category
+
patch-completed
+
patch
+
Completed patch
+
series
+
Series from which patch dependencies were extracted, if any
+
+ +### Patch Delegated + +Sent when a patch's delegate is changed. + +
+
category
+
patch-delegated
+
patch
+
Updated patch
+
previous
+
Previous delegate, if any
+
current
+
Current delegate, if any
+
+ +### Patch State Changed + +Sent when a patch's state is changed. + +
+
category
+
patch-state-changed
+
patch
+
Updated patch
+
previous
+
Previous state
+
current
+
Current state
+
+ +### Check Created + +Sent when a patch check is created. + +
+
category
+
check-created
+
check
+
Created check
+
+ + +### Series Created + +Sent when a series is created. + +
+
category
+
series-created
+
series
+
Created series
+
+ +### Series Completed + +Sent when a series is completed. + +
+
category
+
series-completed
+
series
+
Completed series
+
+ +### What's Not Exposed + +* Bundles + + We don't expose an "added to bundle" event as it's unlikely that this will + be useful to either users or CI setters. + +* Comments + + Like Bundles, there likely isn't much value in exposing these via the API. + [doc-api]: rest.md [doc-autodelegation]: delegation.md [ref-kernel-submission]: https://www.kernel.org/doc/Documentation/SubmittingPatches -- cgit v1.2.3