Skip to content

Commit f5ab509

Browse files
committed
test new action wrapper
1 parent 8ca4aea commit f5ab509

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

devolv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.2.16"
1+
__version__ = "0.2.17"
22

devolv/drift/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _update_local_and_create_pr(doc, policy_file, repo_full_name, policy_name, i
113113
pr_body = f"This PR updates `{policy_file}` {description}.\n\nLinked to issue #{issue_num}.".strip()
114114
pr_num, pr_url = create_github_pr(repo_full_name, branch, pr_title, pr_body, issue_num=issue_num)
115115

116-
typer.echo(f"✅ Created PR #{pr_num}: {pr_url}")
116+
#typer.echo(f"✅ Created PR #{pr_num}: {pr_url}")
117117

118118
# Auto-close issue
119119
gh = Github(token)

devolv/drift/github_approvals.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,22 @@ def create_github_pr(repo: str, head_branch: str, title: str, body: str, base: s
4343
head=head_branch,
4444
base=base
4545
)
46-
print(f"✅ Created PR #{pr.number} in {repo}: {pr.html_url}")
46+
print(f"✅ Created PR #{pr.number}: {pr.html_url}")
4747

4848
if issue_num:
4949
issue = repo_obj.get_issue(number=issue_num)
5050
issue.create_comment(f"A PR has been created for this sync: {pr.html_url}")
5151
issue.edit(state="closed")
52-
print(f"💬 Commented on and closed issue #{issue_num}.")
52+
print(f"💬 Linked and closed issue #{issue_num}")
5353

5454
return pr.number, pr.html_url
5555

5656
except Exception as e:
57-
print(f"❌ Failed to create PR in {repo}: {e}")
57+
print(f"❌ Failed to create PR: {e}")
5858
raise
5959

6060

61+
6162
def push_branch(branch_name: str):
6263
"""
6364
Create and push a branch with committed changes.

0 commit comments

Comments
 (0)