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.
1 parent 161e691 commit 17f0720Copy full SHA for 17f0720
.github/workflows/collect-user-submission.py
@@ -28,16 +28,15 @@ class IssueInfo:
28
gh_event_path: pydantic.FilePath
29
submission: Submission = pydantic.Field(default=None)
30
31
- def __post_init_post_parse__(self):
32
- with open(self.gh_event_path) as f:
33
- self.data = json.load(f)
34
-
35
def create_submission(self):
36
self._get_inputs()
37
self._create_submission_input()
38
return self
39
40
def _get_inputs(self):
+ with open(self.gh_event_path) as f:
+ self.data = json.load(f)
+
41
self.author = self.data['issue']['user']['login']
42
self.title = self.data['issue']['title']
43
self.body = self.data['issue']['body']
0 commit comments