We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 178e7b4 + 55356f8 commit 2f9cdffCopy full SHA for 2f9cdff
gitopscli/commands/delete_pr_preview.py
@@ -1,4 +1,3 @@
1
-import hashlib
2
import logging
3
import os
4
import uuid
@@ -41,7 +40,6 @@ def delete_pr_preview_command(
41
40
)
42
43
apps_git.checkout(branch)
44
- preview_id = hashlib.sha256(branch.encode("utf-8")).hexdigest()[:8]
45
logging.info("App repo branch %s checkout successful", branch)
46
try:
47
gitops_config = GitOpsConfig(apps_git.get_full_file_path(".gitops.config.yaml"))
@@ -73,7 +71,7 @@ def delete_pr_preview_command(
73
71
repository_name,
74
72
git_provider,
75
git_provider_url,
76
- preview_id,
+ branch,
77
78
79
finally:
0 commit comments