MCPcopy
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/WorkflowJob.py:197–243  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

195 return headers["location"]
196
197 def _useAttributes(self, attributes: dict[str, Any]) -> None:
198 if "check_run_url" in attributes: # pragma no branch
199 self._check_run_url = self._makeStringAttribute(attributes["check_run_url"])
200 if "completed_at" in attributes: # pragma no branch
201 self._completed_at = self._makeDatetimeAttribute(attributes["completed_at"])
202 if "conclusion" in attributes: # pragma no branch
203 self._conclusion = self._makeStringAttribute(attributes["conclusion"])
204 if "created_at" in attributes: # pragma no branch
205 self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
206 if "head_branch" in attributes: # pragma no branch
207 self._head_branch = self._makeStringAttribute(attributes["head_branch"])
208 if "head_sha" in attributes: # pragma no branch
209 self._head_sha = self._makeStringAttribute(attributes["head_sha"])
210 if "html_url" in attributes: # pragma no branch
211 self._html_url = self._makeStringAttribute(attributes["html_url"])
212 if "id" in attributes: # pragma no branch
213 self._id = self._makeIntAttribute(attributes["id"])
214 if "labels" in attributes: # pragma no branch
215 self._labels = self._makeListOfStringsAttribute(attributes["labels"])
216 if "name" in attributes: # pragma no branch
217 self._name = self._makeStringAttribute(attributes["name"])
218 if "node_id" in attributes: # pragma no branch
219 self._node_id = self._makeStringAttribute(attributes["node_id"])
220 if "run_attempt" in attributes: # pragma no branch
221 self._run_attempt = self._makeIntAttribute(attributes["run_attempt"])
222 if "run_id" in attributes: # pragma no branch
223 self._run_id = self._makeIntAttribute(attributes["run_id"])
224 if "run_url" in attributes: # pragma no branch
225 self._run_url = self._makeStringAttribute(attributes["run_url"])
226 if "runner_group_id" in attributes: # pragma no branch
227 self._runner_group_id = self._makeIntAttribute(attributes["runner_group_id"])
228 if "runner_group_name" in attributes: # pragma no branch
229 self._runner_group_name = self._makeStringAttribute(attributes["runner_group_name"])
230 if "runner_id" in attributes: # pragma no branch
231 self._runner_id = self._makeIntAttribute(attributes["runner_id"])
232 if "runner_name" in attributes: # pragma no branch
233 self._runner_name = self._makeStringAttribute(attributes["runner_name"])
234 if "started_at" in attributes: # pragma no branch
235 self._started_at = self._makeDatetimeAttribute(attributes["started_at"])
236 if "status" in attributes: # pragma no branch
237 self._status = self._makeStringAttribute(attributes["status"])
238 if "steps" in attributes: # pragma no branch
239 self._steps = self._makeListOfClassesAttribute(github.WorkflowStep.WorkflowStep, attributes["steps"])
240 if "url" in attributes: # pragma no branch
241 self._url = self._makeStringAttribute(attributes["url"])
242 if "workflow_name" in attributes: # pragma no branch
243 self._workflow_name = self._makeStringAttribute(attributes["workflow_name"])

Callers

nothing calls this directly

Calls 5

_makeStringAttributeMethod · 0.80
_makeIntAttributeMethod · 0.80

Tested by

no test coverage detected