17 lines
405 B
Python
17 lines
405 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Any, Protocol
|
||
|
|
|
||
|
|
|
||
|
|
class IssueProvider(Protocol):
|
||
|
|
def get_issue(self, repo: str, issue_number: int) -> dict[str, Any]: ...
|
||
|
|
|
||
|
|
def post_issue_comment(
|
||
|
|
self,
|
||
|
|
repo: str,
|
||
|
|
issue_number: int,
|
||
|
|
body: str,
|
||
|
|
) -> dict[str, Any]: ...
|
||
|
|
|
||
|
|
def parse_issue_comment_event(self, payload: dict[str, Any]) -> dict[str, Any]: ...
|