File tree Expand file tree Collapse file tree
src/hermes_plugin_software_card Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def from_env(cls) -> Self | None:
111111
112112 return super ().from_env ()
113113
114- def url_data (self ):
114+ def url_data (self ) -> dict [ str , str ] :
115115 """Return the data to be passed to the Software CaRD user interface."""
116116 return {
117117 "gitlab_ci_server" : self .ci_server_url ,
@@ -165,7 +165,7 @@ def from_env(cls) -> Self | None:
165165
166166 return super ().from_env ()
167167
168- def url_data (self ):
168+ def url_data (self ) -> dict [ str , str ] :
169169 """Return the data to be passed to the Software CaRD user interface."""
170170 return {
171171 "github_ci_server" : self .github_server_url ,
@@ -185,7 +185,7 @@ def get() -> Environment | None:
185185 return github_actions or gitlab_ci
186186
187187
188- def format_app_url (base_url : str , environment : Environment ) -> str :
188+ def format_app_url (base_url : str , env : Environment ) -> str :
189189 """Format the url for visiting the Software CaRD web interface."""
190- query = urlencode (environment .url_data ())
190+ query = urlencode (env .url_data ())
191191 return f"{ base_url } ?{ query } "
You can’t perform that action at this time.
0 commit comments