Commit 0a6188b
committed
Set correct pull request message for --dry-run case
When --only is used, if --dry-run is used it calls save_pr(), otherwise
file_pr() is called. This fix ensures that the same string value is
passed to the delta parameter of both functions.
The call to save_pr was incorrectly passing the list args.only instead
of the string delta which contains the contents of args.only
This caused a TypeError exception in get_pr_text when concatenating
the list to a string.
File ".../superflore/superflore/utils.py", line 59, in get_pr_text
msg += '\n' + delta + '\n'
~~~~~^~~~~~~
TypeError: can only concatenate str (not "list") to str
Signed-off-by: Rob Woolley <rob.woolley@windriver.com>1 parent 816eb6a commit 0a6188b
3 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
148 | 149 | | |
149 | | - | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
0 commit comments