From 37812dfeded12c5a9d421cdf6462dfe4aef2ab94 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sun, 3 Dec 2023 11:34:17 +0200 Subject: [PATCH] feat: Update pr_url assignment in github_provider.py for GitHub Actions compatibility --- pr_agent/git_providers/github_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index b8374a81..c001f81e 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -31,10 +31,10 @@ class GithubProvider(GitProvider): self.diff_files = None self.git_files = None self.incremental = incremental - self.pr_url = pr_url if pr_url and 'pull' in pr_url: self.set_pr(pr_url) self.last_commit_id = list(self.pr.get_commits())[-1] + self.pr_url = self.get_pr_url() # pr_url for github actions can be as api.github.com, so we need to get the url from the pr object def is_supported(self, capability: str) -> bool: return True