Skip to content

Commit

Permalink
Use origin_branch in case fork is not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Nov 26, 2024
1 parent 9ecd429 commit 14bdbfc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
dockerfiles: ./Dockerfile
image: betka
tags: latest 1 ${{ github.sha }} 0.9.7
tags: latest 1 ${{ github.sha }} 0.9.8

- name: Push betka image to Quay.io
id: push-to-quay
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM quay.io/fedora/fedora:37

ENV NAME=betka-fedora \
RELEASE=0.9.7 \
RELEASE=0.9.8 \
ARCH=x86_64 \
SUMMARY="Syncs changes from upstream repository to downstream" \
DESCRIPTION="Syncs changes from upstream repository to downstream" \
Expand Down
2 changes: 1 addition & 1 deletion betka/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def create_gitlab_merge_request(
"description": desc_msg,
"target_project_id": self.project_id,
}
if not self.betka_config["use_gitlab_forks"]:
if not self.is_fork_enabled():
data["target_branch"] = origin_branch
return self.create_project_mergerequest(data)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_requirements():

setup(
name="betka",
version="0.9.7",
version="0.9.8",
packages=find_packages(exclude=["examples", "tests"]),
url="https://github.com/sclorg/betka",
license="GPLv3+",
Expand Down

0 comments on commit 14bdbfc

Please sign in to comment.