Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a2261c7cd9 |
@@ -21,6 +21,10 @@ class Collaborator(BaseModel):
|
|||||||
class Commit(BaseModel):
|
class Commit(BaseModel):
|
||||||
id: Optional[str]
|
id: Optional[str]
|
||||||
message: Optional[str]
|
message: Optional[str]
|
||||||
|
sourceApplication: Optional[str]
|
||||||
|
totalChildrenCount: Optional[int]
|
||||||
|
branchName: Optional[str]
|
||||||
|
parents: Optional[List[str]]
|
||||||
authorName: Optional[str]
|
authorName: Optional[str]
|
||||||
authorId: Optional[str]
|
authorId: Optional[str]
|
||||||
authorAvatar: Optional[str]
|
authorAvatar: Optional[str]
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ class Resource(ResourceBase):
|
|||||||
object_id: str,
|
object_id: str,
|
||||||
branch_name: str = "main",
|
branch_name: str = "main",
|
||||||
message: str = "",
|
message: str = "",
|
||||||
|
source_application: str = "PySpeckle",
|
||||||
) -> str:
|
) -> str:
|
||||||
"""
|
"""
|
||||||
Creates a commit on a branch
|
Creates a commit on a branch
|
||||||
@@ -101,6 +102,7 @@ class Resource(ResourceBase):
|
|||||||
object_id {str} -- the hash of your commit object
|
object_id {str} -- the hash of your commit object
|
||||||
branch_name {str} -- the name of the branch to commit to (defaults to "main")
|
branch_name {str} -- the name of the branch to commit to (defaults to "main")
|
||||||
message {str} -- optional: a message to give more information about the commit
|
message {str} -- optional: a message to give more information about the commit
|
||||||
|
source_application {str} -- optional: the name of the application creating the commit (defaults to "PySpeckle")
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str -- the id of the created commit
|
str -- the id of the created commit
|
||||||
@@ -116,6 +118,7 @@ class Resource(ResourceBase):
|
|||||||
"branchName": branch_name,
|
"branchName": branch_name,
|
||||||
"objectId": object_id,
|
"objectId": object_id,
|
||||||
"message": message,
|
"message": message,
|
||||||
|
"sourceApplication": source_application,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user