Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2981

API comment doesn't work when job approver isn't PR author

    XMLWordPrintableJSON

Details

    • Icon: Build Failure Build Failure
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • Build
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      E.g. build failure log for the comment action:

      + git clone https://github.com/mongodb/mongo-go-driver
      Cloning into 'mongo-go-driver'...
      + cd mongo-go-driver
      + git remote add source https://github.com/qingyang-hu/mongo-go-driver
      + git fetch origin master
      From https://github.com/mongodb/mongo-go-driver
       * branch              master     -> FETCH_HEAD
      + git fetch source cev/bson-allocs
      fatal: couldn't find remote ref cev/bson-allocs
      Error: Process completed with exit code 128.
      

      See the full action here.

      Seems to be caused by the $GITHUB_ACTOR not being equal to the PR author, so the remote doesn't have the expected branch. See here.

      Attachments

        Activity

          People

            steve.silvester@mongodb.com Steve Silvester
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: