Skip to content

User that is not in the white list of the protected branch can update the protected branch by pull request  #2875

Closed
@diufanman

Description

@diufanman

Description

In the repository cnsze/testing, I

  1. Assign user cchai as the collaborator with "Write" permission"
  2. protected the branch master, only cnsze can push to the branch master

I tried user cchai cannot push to the master branch (this is correct)

However the master branch can be updated by cchai by pull request

Steps to reproduce the bug:

  1. cchai create a pull request (base: master, compare: b1)
  2. cchai click the "Merge Pull Request" button
  3. the branch master is updated (which is not expected as it suppose to be protected (only the user (which is user "cnsze") in the white list can update it))

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions