Patch
- class patchwork.Patch.Patch
Class for Patch object
- property id
- Type:
integer
- property url
- Type:
string
- property web_url
- Type:
string
- property msgid
- Type:
string
- property list_archive_url
- Type:
string
- property date
- Type:
datetime.datetime
- property name
- Type:
string
- property commit_ref
- Type:
integer
- property pull_url
- Type:
boolean
- property state
- Type:
string
- property archived
- Type:
string
- property hash
- Type:
string
- property mbox
- Type:
string
- property comments
- Type:
string
- property check
- Type:
string
- property checks
- Type:
string
- property tags
- Type:
dict
- property headers
- Type:
dict
- property content
- Type:
string
- property diff
- Type:
string
- property prefixes
- Type:
list
- get_project()
Project detail (partial)
- Return type:
- get_submitter()
Submitter detail (partial)
- Return type:
- get_series()
Series detail (partial)
- Return type:
List of
patchwork.Series.Series
List of related patch detail (partial)
- Return type:
List of
patchwork.Patch.Patch
- get_delegate()
Delegated User detail (partial)
- Return type:
- get_comments()
List comments
- Calls:
GET /api/patches/{id}/comments
- Return type:
List of
patchwork.Comment.Comment
- get_checks()
List checks
- Calls:
GET /api/patches/{id}/checks
- Return type:
List of
patchwork.Check.Check
- get_check(check_id)
Show a check
- Calls:
GET /api/patches/{id}/checks/{check_id}
- Parameters:
check_id (integer) – A unique integer value identifying this check
- Return type:
- create_check(user, state, context, target_url=None, description=None)
Create a check
- Calls:
POST /api/patches/{patch_id}/checks/
- Parameters:
user (
patchwork.User.User) – User objectstate (string) – Result of the check like success, warning, fail, pending. Rquired.
target_url (string) – URL of the check detail. Must be a valid URL. Optional
context (string) – Context of the check like test name. Required field. No space allowed.
description (string) – Description of the check. Optional
- Return type: