Git Merge Request #94: [#8029] Correct merge message, below list works. (rejected)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Pranav Sharma wants to merge 0 commits from /u/pranav/allura/ to master, 2016-03-08

Determining commits...

Discussion

  • Dave Brondsema

    Dave Brondsema - 2016-02-24

    Few more details to sort out.

    self.merge() will actually do the merge server-side, on behalf of the user. We don't want to do that here, just update the status field.

    has_access doesn't ever return "None" but it will act like a boolean, so you can just do and has_access(self.req, 'write') and that's it. Also no need to use parantheses around individual expressions like that one and (self.req.creator == c.user). Save them for keeping "and" and "or" expressions grouped properly.

     
    • Pranav Sharma - 2016-02-26

      @Dave.
      I added that option so as the below list to work. Changing the status to merged, but not doing so actually, from the below list would just create the merge request to be added in the merged list by changing the status, but it won't actually work.

       
      • Dave Brondsema

        Dave Brondsema - 2016-03-04

        Sorry for the late reply, I lost track of this comment.

        It is correct for it to just change the status and not actually merge it. Some developers prefer to do the merging themself (not have Allura do the merge) and so then they just update the status. I'm sure the page and form designs could be changed at some point so that is more clear to people, but that's the way it works on "master" now so we shouldn't change that.

         
        • Pranav Sharma - 2016-03-06

          https://forge-allura.apache.org/u/pranav/allura/ci/ac9bee096b8e9bdc0862c41eed7af97f660f2ea2/

          Should the creator of merge request be given the permission to change only the status of a merge request to merged?

           

          Last edit: Pranav Sharma 2016-03-06
          • Dave Brondsema

            Dave Brondsema - 2016-03-07

            Creators should only be able to reject it. They shouldn't be able to mark it as merged, because only project developers can actually merge the code.

             
  • Pranav Sharma - 2016-03-08
    • Status: open --> rejected
     

Log in to post a comment.