:calls: `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable `_ :rtype: bool
(self)
| 237 | return status == 204 |
| 238 | |
| 239 | def enable(self) -> bool: |
| 240 | """ |
| 241 | :calls: `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable <https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow>`_ |
| 242 | :rtype: bool |
| 243 | """ |
| 244 | status, _, _ = self._requester.requestJson("PUT", f"{self.url}/enable") |
| 245 | return status == 204 |
| 246 | |
| 247 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 248 | if "badge_url" in attributes: # pragma no branch |
no test coverage detected