Skip to content

Commit

Permalink
Merge PR #216 into master
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Nov 6, 2023
2 parents ed5f573 + a3402b4 commit 5687d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oca_github_bot/tasks/migration_issue_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _create_or_find_branch_milestone(gh_repo, branch):
def _find_issue(gh_repo, milestone, target_branch):
issue_title = f"Migration to version {target_branch}"
issue = False
for i in gh_repo.issues(milestone=milestone.number):
for i in gh_repo.issues(milestone=milestone.number, state="all"):
if i.title == issue_title:
issue = i
break
Expand Down
2 changes: 1 addition & 1 deletion tests/cassettes/test_find_issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ interactions:
authorization:
- DUMMY
method: GET
uri: https://api.github.com/repos/OCA/contract/issues?milestone=8&per_page=100
uri: https://api.github.com/repos/OCA/contract/issues?milestone=8&per_page=100&state=all
response:
body:
string: |-
Expand Down

0 comments on commit 5687d24

Please sign in to comment.