diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index db83e72ad2..17efde6c33 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,6 +101,8 @@ Also note that if you record your test data with `--auth_with_token` then you al ```python def setUp(self): self.tokenAuthMode = True + super().setUp() + ... ``` A simple alternative is to replace `token private_token_removed` with `Basic login_and_password_removed` in all your newly generated ReplayData files. diff --git a/github/Organization.py b/github/Organization.py index d145a4f69b..a708f3447b 100644 --- a/github/Organization.py +++ b/github/Organization.py @@ -1023,6 +1023,7 @@ def convert_to_outside_collaborator(self, member: NamedUser) -> None: def get_public_key(self, secret_type: str = "actions") -> PublicKey: """ :calls: `GET /orgs/{org}/{secret_type}/secrets/public-key `_ + :param secret_type: string options actions or dependabot :rtype: :class:`github.PublicKey.PublicKey` """ headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/{secret_type}/secrets/public-key") diff --git a/github/OrganizationSecret.py b/github/OrganizationSecret.py index 78f6715294..e7cdca7b6a 100644 --- a/github/OrganizationSecret.py +++ b/github/OrganizationSecret.py @@ -73,6 +73,7 @@ def edit( :param variable_name: string :param value: string :param visibility: string + :param secret_type: string options actions or dependabot :rtype: bool """ assert isinstance(value, str), value diff --git a/github/Repository.py b/github/Repository.py index 52bae92190..c42b305b5f 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -3009,6 +3009,7 @@ def get_network_events(self) -> PaginatedList[Event]: def get_public_key(self, secret_type: str = "actions") -> PublicKey: """ :calls: `GET /repos/{owner}/{repo}/actions/secrets/public-key `_ + :param secret_type: string options actions or dependabot :rtype: :class:`github.PublicKey.PublicKey` """ assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"