Branch protection with required status check #14508

Closed
opened 2025-11-02 11:14:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @top-psi on GitHub (May 20, 2025).

Description

We have branch protection enabled with required status check set for "Lint yaml files / *".
Administrators must follow branch protection rules is enabled.

The required check failed on this PR. However, I was ​‌able to​‌ merge the PR.

https://gitea.psi.ch/HPCE/hashi-vault/pulls/12/commits
https://gitea.psi.ch/HPCE/hashi-vault/actions/runs/177/jobs/1

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

RHEL 9

How are you running Gitea?

Docker

Database

PostgreSQL

Originally created by @top-psi on GitHub (May 20, 2025). ### Description We have branch protection enabled with required status check set for "Lint yaml files / *". Administrators must follow branch protection rules is enabled. The required check failed on this PR. However, I was ​‌able to​‌ merge the PR. https://gitea.psi.ch/HPCE/hashi-vault/pulls/12/commits https://gitea.psi.ch/HPCE/hashi-vault/actions/runs/177/jobs/1 ### Gitea Version 1.23.8 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System RHEL 9 ### How are you running Gitea? Docker ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 11:14:52 -06:00
Author
Owner

@lunny commented on GitHub (May 26, 2025):

Can you post some screenshots? I suspect it's an automerge button bug.
It should be like this.

Image
@lunny commented on GitHub (May 26, 2025): Can you post some screenshots? I suspect it's an automerge button bug. It should be like this. <img width="992" alt="Image" src="https://github.com/user-attachments/assets/bf076d90-4776-48d2-8c7a-6cfa103396dd" />
Author
Owner

@pozsa commented on GitHub (May 26, 2025):

https://gitea.psi.ch/pozsa_k/merge-bug/pulls/2

Image

@pozsa commented on GitHub (May 26, 2025): https://gitea.psi.ch/pozsa_k/merge-bug/pulls/2 ![Image](https://github.com/user-attachments/assets/4eb0f6da-4705-4818-93da-50a2de8f65ef)
Author
Owner

@badhezi commented on GitHub (May 27, 2025):

can you share your branch protection rule configuration?
@pozsa

@badhezi commented on GitHub (May 27, 2025): can you share your branch protection rule configuration? @pozsa
Author
Owner

@pozsa commented on GitHub (May 30, 2025):

can you share your branch protection rule configuration? @pozsa

  • pattern: main
  • push: disable push
  • require signed commits: true
  • force push: disable force push
  • restrict approvals: false
  • dismiss stale approvals: true
  • enable status check: true
    • pattern: Lint yaml files / *
  • pr merge: enable merge
  • block merge on rejected reviews: true
  • block merge on official review requests: true
  • block merge if pr is outdated: true
  • admins must follow branch protection rules: true

@badhezi

@pozsa commented on GitHub (May 30, 2025): > can you share your branch protection rule configuration? [@pozsa](https://github.com/pozsa) - pattern: main - push: disable push - require signed commits: true - force push: disable force push - restrict approvals: false - dismiss stale approvals: true - enable status check: true - pattern: `Lint yaml files / *` - pr merge: enable merge - block merge on rejected reviews: true - block merge on official review requests: true - block merge if pr is outdated: true - admins must follow branch protection rules: true @badhezi
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14508