Skip to content

Commit

Permalink
ci: rightlib-sync: allow maintainers to modify PR (#13070)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitka authored Dec 27, 2024
1 parent df406e3 commit 3250bfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ydb/ci/rightlib/sync-rightlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RightlibSync:
failed_comment_mark = "<!--RightLibSyncFailed-->"
rightlib_check_status_name = "rightlib-merge"

def __init__(self, repo, base_branch, head_branch, token):
def __init__(self, repo, base_branch, head_branch, token):
self.repo_name = repo
self.base_branch = base_branch
self.head_branch = head_branch
Expand Down Expand Up @@ -180,7 +180,9 @@ def create_new_pr(self):
else:
pr_body = f"PR was created by rightlib sync script"

pr = self.repo.create_pull(self.base_branch, dev_branch_name, title=pr_title, body=pr_body)
pr = self.repo.create_pull(
self.base_branch, dev_branch_name, title=pr_title, body=pr_body, maintainer_can_modify=True
)
pr.add_to_labels(self.pr_label_rightlib)

def sync(self):
Expand Down

0 comments on commit 3250bfc

Please sign in to comment.