llvm / llvm/llvm-project

[CI] clang-format job shouldn't block reverts

Open Beginner friendly
#219,809 3 comments 0 reactions 0 assignees View on GitHub
infrastructure
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

When reverting a patch and the previous code wasn't clang-format-clean, the git-clang-format CI job fails, preventing auto merges. The CI job shouldn't run/fail when the PR is a revert (e.g., as indicated by a title starting with "Revert ").

Contributor guide

Open the contributing guide

Research direction

Start by locating the CI configuration that defines the git-clang-format job and read how pull-request titles are exposed to it. Verify the job is skipped for titles beginning with "Revert " while still running for ordinary pull requests, so reverts no longer block auto merges.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.