Allow to properly dump the multiples PRs #6
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
If there is more than one PRs open_prs is a list of dict and trying to
stringify it is not working too well:
Traceback (most recent call last):
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 1542, in
main()
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 1529, in main
args.func(stack, args)
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 1042, in cmd_update
load_pr_info_for_forest(forest)
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 531, in load_pr_info_for_forest
b.load_pr_info()
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 303, in load_pr_info
self.pr_info, self.open_pr_info = get_pr_info(self.name)
File "/data/home/mpatou/Rockset/rs/../rs2/scripts/stacky", line 251, in get_pr_info
die("Branch {} has more than one open PR: {}", branch, ", ".join(open_prs))
TypeError: sequence item 0: expected str instance, dict found
## Test plan
Reran with the fix and got this instead:
Reviewers: tudor