Skip to content

Commit 27ba951

Browse files
committed
remove unused code
1 parent 91b5007 commit 27ba951

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

scripts/trigger_release.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -134,46 +134,6 @@ def approve_deployment(self, run_id: int, environment_ids: list) -> bool:
134134
print(f"Response: {response.text}")
135135
return False
136136

137-
def extract_version_tag(self, jobs_data: Dict[Any, Any]) -> Optional[str]:
138-
"""Extract the version_tag output from the tag_release job."""
139-
for job in jobs_data.get("jobs", []):
140-
if job["name"] == "tag_release":
141-
# Check if job has completed successfully
142-
if job["conclusion"] == "success":
143-
# Try to get outputs from the job
144-
# (this may not be directly available)
145-
# We'll need to check the run details
146-
return self._get_job_outputs(job)
147-
return None
148-
149-
def _get_job_outputs(self, job: Dict[Any, Any]) -> Optional[str]:
150-
"""Try to extract outputs from job steps."""
151-
# GitHub API doesn't directly expose job outputs in the jobs endpoint
152-
# We need to parse from the run outputs or job logs
153-
# For now, we'll mark that we need to get this from the workflow
154-
# run outputs
155-
return None
156-
157-
def get_workflow_outputs(self, run_id: int) -> Optional[Dict[str, Any]]:
158-
"""Get workflow outputs (requires checking via runs endpoint)."""
159-
# GitHub doesn't expose workflow outputs directly via API
160-
# We'll need to infer from completed jobs or use alternate methods
161-
jobs_data = self.get_run_jobs(run_id)
162-
if not jobs_data:
163-
return None
164-
165-
# Look for the tag_release job and check if we can find version info
166-
for job in jobs_data.get("jobs", []):
167-
if "tag_release" in job["name"].lower():
168-
if job["conclusion"] == "success":
169-
# The version would be in the job outputs
170-
# Since API doesn't expose this directly, we'll
171-
# monitor job names that use the version (they
172-
# receive it as input from tag_release)
173-
return {"tag_release_completed": True}
174-
175-
return None
176-
177137
def check_for_errors(
178138
self, run_details: Dict[Any, Any], jobs_data: Dict[Any, Any]
179139
) -> Optional[str]:

0 commit comments

Comments
 (0)