From 095077a88e787ad2eca5a7b6a584d646fddb3cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Mon, 20 May 2024 12:31:58 -0400 Subject: [PATCH 1/2] Gh 41735 (#83) * GH-41735: [CI][Archery] Update archery to be compatible with pygit2 1.15 API change * Minor update to variable name --- dev/archery/archery/crossbow/core.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py index c85f1f754b99..0b5d242bbacc 100644 --- a/dev/archery/archery/crossbow/core.py +++ b/dev/archery/archery/crossbow/core.py @@ -427,8 +427,14 @@ def create_branch(self, branch_name, files, parents=None, message='', return branch def create_tag(self, tag_name, commit_id, message=''): + git_object_commit = ( + pygit2.GIT_OBJECT_COMMIT + if getattr(pygit2, 'GIT_OBJECT_COMMIT') + else pygit2.GIT_OBJ_COMMIT + ) tag_id = self.repo.create_tag(tag_name, commit_id, - pygit2.GIT_OBJ_COMMIT, self.signature, + git_object_commit, + self.signature, message) # append to the pushable references From 282b149641e8aaeafb9e20f80ed6d6158d03d33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Mon, 20 May 2024 18:33:27 +0200 Subject: [PATCH 2/2] This is just to trigger a Test Pr on my fork --- dev/archery/archery/crossbow/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py index 0b5d242bbacc..70700a16c964 100644 --- a/dev/archery/archery/crossbow/core.py +++ b/dev/archery/archery/crossbow/core.py @@ -427,6 +427,7 @@ def create_branch(self, branch_name, files, parents=None, message='', return branch def create_tag(self, tag_name, commit_id, message=''): + # Trigger a PR git_object_commit = ( pygit2.GIT_OBJECT_COMMIT if getattr(pygit2, 'GIT_OBJECT_COMMIT')