Change (autotransform.change.base)
The base class and associated classes for Change components.
- class autotransform.change.base.Change
Bases:
NamedComponent
The base for Change components. Used by AutoTransform to manage submissions to code review and source control systems.
- name
The name of the Component.
- Type
ClassVar[ChangeName]
- abstract get_batch() Batch
Gets the Batch that was used to produce the Change.
- Returns
The Batch used to produce the Change.
- Return type
- get_created_timestamp() int
Returns the timestamp when the Change was created.
- Returns
The timestamp in seconds when the Change was created.
- Return type
int
- abstract get_labels() List[str]
Gets all labels for a Change.
- Returns
The list of labels.
- Return type
List[str]
- get_last_updated_timestamp() int
Returns the timestamp when the Change was last updated.
- Returns
The timestamp in seconds when the Change was last updated.
- Return type
int
- abstract get_reviewers() List[str]
Gets all reviewers for a Change.
- Returns
The list of reviewers.
- Return type
List[str]
- abstract get_schema() AutoTransformSchema
Gets the Schema that was used to produce the Change.
- Returns
The Schema used to produce the Change.
- Return type
- get_schema_name() str
Gets the name of the Schema that produced the Change.
- Returns
The name of the Schema.
- Return type
str
- abstract get_state() ChangeState
Gets the current state of the Change.
- Returns
The current state of the Change.
- Return type
- abstract get_team_reviewers() List[str]
Gets all team reviewers for a Change.
- Returns
The list of team reviewers.
- Return type
List[str]
- name: ClassVar[ChangeName]