Automations with "PR opened" trigger fail on GitLab self-hosted MRs opened from a fork ("The starting branch or commit does not exist")

Hi @ray233, the failure isn’t from your GitLab setup. Automations don’t run pull request triggers on merge requests opened from a fork: the agent would be running the fork’s code with the upstream repo’s access, so those runs are refused. It’s covered in the note at the end of Source control triggers.

The message you got is misleading, though. It should tell you fork merge requests aren’t supported instead of suggesting the branch was deleted. I’ve passed that to the team, along with your request to support fork MRs through the merge request ref.

For now, pushing the branch to the upstream repo and opening the MR from there lets the automation run. Bugbot handles fork MRs separately, which is why it still works on the same MR.