Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

fix(sync-jira-pr): Remove condition "Sync only PRs without comments" #52

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sync_issues_to_jira/sync_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def sync_remain_prs(jira):
repo = github.get_repo(os.environ['GITHUB_REPOSITORY'])
prs = repo.get_pulls(state="open", sort="created", direction="desc")
for pr in prs:
if not repo.has_in_collaborators(pr.user.login) and not pr.comments:
if not repo.has_in_collaborators(pr.user.login):
# mock a github issue using current PR
gh_issue = {"pull_request": True,
"labels": [{"name": l.name} for l in pr.labels],
Expand Down