Skip to content

Commit 98e25e3

Browse files
[Internal] Remove prefix from github reference (#4497)
## Changes Remove prefix from github reference. GitHub API requires the full reference, but the PyGitHub library adds it automatically. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] using Go SDK - [ ] using TF Plugin Framework NO_CHANGELOG=true
1 parent 42bdb4c commit 98e25e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GitHubRepo:
3131
def __init__(self, repo: Repository):
3232
self.repo = repo
3333
self.changed_files: list[InputGitTreeElement] = []
34-
self.ref = "refs/heads/main"
34+
self.ref = "heads/main"
3535
head_ref = self.repo.get_git_ref(self.ref)
3636
self.sha = head_ref.object.sha
3737

0 commit comments

Comments
 (0)