Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-2141

Inform user about accepting fork repo invite in /backport command reply

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • bots
    • None

      When a user issues the /backport command on a commit/PR in GitHub, it provides instructions about how to further update the PR source branch if needed. In order to do so, the user must be a collaborator with write access in that repo and branch. To achieve this, the bot automatically sends an invite, but the user must accept that invite before the permissions go into effect.

      Lately it also seems like users are prevented from even creating the PR without accepting the invite. There have been multiple reports that GitHub gives an error message like this:

      "Pull request creation failed. Validation Failed: must be a collaborator"

      However, I'm not 100% sure this is the issue so we should probably verify that that is the case.

      To help alleviate this, we should include something in the bot reply to the /backport command if the forge is GitHub. I would suggest something along the lines of:

      "If this is the first time you are using the /backport command for this particular target repository, a `collaborator` invite will be sent out for my fork <fork name>. You will need to accept this invite before you can proceed."

            zsong Zhao Song
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: