Verified Commit fb651a75 authored by David Runge's avatar David Runge 🐿
Browse files

gitlab: Change signature of constructor

Change the `Upstream` constructor to accept private_token to be an
optional string.
parent 0a72736d
......@@ -11,14 +11,14 @@ class Upstream(gitlab.Gitlab):
self.select_release(), self.download_release() and self.promote_release().
def __init__(self, url: str, private_token: str, name: str):
def __init__(self, url: str, private_token: Optional[str], name: str):
"""Create an instance of Upstream
url: str
The URL of the gitlab instance to interact with
private_token: str
private_token: Optional[str]
An API token to use to interact with the gitlab instance
name: str
The name of the project to interact with
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment