We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0369849 + c24d57f commit 969ce6eCopy full SHA for 969ce6e
1 file changed
src/logdetective_packit/models.py
@@ -1,4 +1,5 @@
1
from datetime import datetime
2
+from typing import Optional
3
from pydantic import BaseModel, Field
4
import enum
5
@@ -15,9 +16,12 @@ class BuildInfo(BaseModel):
15
16
)
17
build_system: str = Field(description="System where the build was launched")
18
project_url: str = Field(description="URL of the project being analyzed")
- commit_sha: str = Field(description="SHA of the commit used as basis of the build")
19
- pr_id: int = Field(
20
- description="ID of the pull request, or equivalent of the given forge"
+ commit_sha: Optional[str] = Field(
+ description="SHA of the commit used as basis of the build", default=None
21
+ )
22
+ pr_id: Optional[int] = Field(
23
+ description="ID of the pull request, or equivalent of the given forge",
24
+ default=None,
25
26
27
0 commit comments