-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AlternatePatchAction #5
Conversation
|
fbb3963
to
9d150a7
Compare
Yes, it's a list where each element if an alternative diff. |
0dc52a6
to
f8886c1
Compare
c293d22
to
74f753f
Compare
3a7e574
to
84f2979
Compare
84f2979
to
be14567
Compare
ae834bb
to
1b23c11
Compare
1b8740d
to
7d94ee0
Compare
89c2ef5
to
372df4f
Compare
8004c44
to
45ba67a
Compare
106d17a
to
1557eee
Compare
1f12998
to
b3901ed
Compare
6b2b630
to
d3d08d9
Compare
This adds a new attribute `alternate_diffs` to Result class. It is a list of dictionaries where each element is an alternate patch suggested by the bear. Corresponding to each `alternate_diff` an instance of AlternatePatchAction is added to the list of actions.
d3d08d9
to
0500f0d
Compare
@akshatkarani Appveyor is failing because it can't find the appveyor.yml file in home directory. Manually add the path to the appveyor.yml file in your CI settings. |
Also, create a PR on the upstream repo now. |
Done coala#6057 |
Added new attribute in
Result
class,alternate_diffs
which is the list of alternative patches that bear is suggesting. For eachalternate_diff
anAlterantePatchAction
instance is added.The idea is very similar to adding multiple instances of
ShowPatchAction
,AlternatePatchAction
just helps with manipulating between the original patch and the alternate patch.Also because of the way how the user chooses an action and how actions are printed on the screen,
AlternatePatchAction
needs it's ownget_metadata
function. The part of updating the description and passingcount
seems a little hackish but I didn't see any other way.