coala-bears icon indicating copy to clipboard operation
coala-bears copied to clipboard

New actions for GitCommitBear

Open akshatkarani opened this issue 5 years ago • 22 comments

This adds two new actions for GitCommitBear:

  1. AddNewlineAction: This adds a newline between shortlog and body of the commit message.
  2. EditCommitMessageAction: Open an editor in which user can edit the commit message

This also modifies CommitBear.py to pass these actions when Result is yielded.

Temp changes for travis commit is temporary commit because this PR depends on https://github.com/coala/coala/pull/6029

akshatkarani avatar Jun 19 '19 12:06 akshatkarani

EditCommitMessageAction and AddNewlineAction in action

akshatkarani avatar Jun 30 '19 12:06 akshatkarani

Travis is failing because it depends on https://github.com/coala/coala/pull/6029

akshatkarani avatar Jul 21 '19 11:07 akshatkarani

Yeah, please add the coala requirement as your branch.

abhishalya avatar Jul 21 '19 12:07 abhishalya

Yeah, please add the coala requirement as your branch.

Btw this is only temporary, to check if the changes work fine.

abhishalya avatar Jul 21 '19 13:07 abhishalya

Yeah, please add the coala requirement as your branch.

I made these changes, am I doing something wrong because the first travis job is failing because of some weird reason but it was passing before.

akshatkarani avatar Jul 21 '19 15:07 akshatkarani

You can ignore the first job of Sentinel since it fails for moban. But, the rest should pass... Looks like a breaking test.

abhishalya avatar Jul 21 '19 15:07 abhishalya

Btw, I think the rest of the jobs would stop if Sentinel fails (which it would eventually since the first one would fail due to moban) so instead of restarting those you can also make relevant changes to travis.

abhishalya avatar Jul 21 '19 15:07 abhishalya

Look at the error of the second build. This is because the changes in https://github.com/coala/coala/pull/6029 are not there yet.

akshatkarani avatar Jul 21 '19 15:07 akshatkarani

coala is being installed correctly there from your branch, let me try this out locally

abhishalya avatar Jul 21 '19 15:07 abhishalya

@akshatkarani This seems to be the problem...

abhishalya avatar Jul 21 '19 16:07 abhishalya

Removed the first sentinel build, now only one build is failing and the error is the same.

akshatkarani avatar Jul 22 '19 07:07 akshatkarani

Okay build is passing with these temporary changes.

akshatkarani avatar Jul 22 '19 11:07 akshatkarani

Nice, (since other mentors aren't active) give me some time to check this (and the core changes) in more detail.

abhishalya avatar Jul 22 '19 13:07 abhishalya

Ping @Makman2

abhishalya avatar Aug 11 '19 15:08 abhishalya

  1. What about the temp-commit? ;)
  2. I would expect in the commit for AddNewlineAction to just do stuff with this action only, not mixing with EditCommitMessageAction. Please properly separate into the commits :+1:

Makman2 avatar Aug 13 '19 14:08 Makman2

  1. What about the temp-commit? ;)

This PR depends on https://github.com/coala/coala/pull/6029, so for builds to pass this commit has been added. Once that PR is merged it can be removed.

  1. I would expect in the commit for AddNewlineAction to just do stuff with this action only, not mixing with EditCommitMessageAction. Please properly separate into the commits +1

Yes, I will.

akshatkarani avatar Aug 13 '19 14:08 akshatkarani

@Makman2 I have separated the commits properly. Also some comments you made on commits have been lost because I amended them, link to it

akshatkarani avatar Aug 14 '19 06:08 akshatkarani

Temp commit not required now, also needs rebase.

abhishalya avatar Aug 25 '19 12:08 abhishalya

Temp commit not required now

This PR still depends on https://github.com/coala/coala/pull/6029 :confused:

akshatkarani avatar Aug 25 '19 14:08 akshatkarani

https://github.com/coala/coala-bears/pull/2855 seems related to moban sync. Also, the commit should be a part of separate PR.

abhishalya avatar Sep 04 '19 08:09 abhishalya

#2855 seems related to moban sync.

Looks pretty old, idk what the rest of changes are for.

Also, the commit should be a part of separate PR.

Okay, https://github.com/coala/coala-bears/pull/2957

akshatkarani avatar Sep 07 '19 11:09 akshatkarani

Don't want to merge this until we have a green build here. coala-bears is already a bit messed up to add more changes. Will keep this back in my head though.

abhishalya avatar Mar 26 '21 17:03 abhishalya