1
0
mirror of https://github.com/quay/quay.git synced 2026-10-23 09:49:06 +03:00
Files
quay/.gitlint
Chai-bot 63d378c39f NO-ISSUE: fix(ci): accept mirror-registry backport titles (#7596)
* NO-ISSUE: fix(ci): accept mirror-registry backport titles

Allow mirror-registry release branches to use the same CI title format as redhat backports.

* NO-ISSUE: fix(ci): support mirror-registry backport labels

Document the Mirror Registry title prefix and apply backport labels to its release branches.

* NO-ISSUE: fix(ci): provision mirror-registry labels

Create missing Mirror Registry backport labels before applying them to pull requests.

* NO-ISSUE: fix(ci): recover concurrent label creation

Read Octokit response diagnostics before recovering a concurrent label creation race.
2026-10-08 16:47:27 +00:00

40 lines
1.4 KiB
Plaintext

# Commit-message lint rules for Project Quay
#
# CI enforces a PR-title regex via .github/scripts/check-pr-title.sh
# (see .github/workflows/ci-lint.yaml). Because the PR title is derived
# from the commit subject, validating the subject here catches format
# errors before they reach CI.
#
# Usage:
# - fullsend agents: gitlint is installed in the sandbox image and agents
# run `gitlint --commit HEAD` to validate each commit before pushing.
# - Human contributors: run `gitlint` locally to catch format errors
# before pushing.
#
# Accepted subject formats:
# PROJQUAY-12345: fix(scope): description
# QUAYIO-12345: feat: description
# NO-ISSUE: docs(agents): add contributing guide
# [redhat-3.12] PROJQUAY-12345: fix(api): backport pagination fix
# [mirror-registry-3.0] PROJQUAY-12345: fix(omr): backport upgrade fix
[general]
# Ignore merge commits and reverts — they have auto-generated subjects.
ignore-merge-commits=true
ignore-revert-commits=true
regex-style-search=true
[title-max-length]
line-length=120
[title-match-regex]
# Must match the CI regex in .github/scripts/check-pr-title.sh exactly.
regex=^(\[(redhat|mirror-registry)-[0-9]+\.[0-9]+\] )?(PROJQUAY-[0-9]+|QUAYIO-[0-9]+|NO-ISSUE): [a-z]+(\([^)]+\))?: .+$
[body-max-line-length]
line-length=120
[ignore-body-lines]
# Allow long URLs and signed-off-by lines in the body.
regex=(^https?://|^Signed-off-by:)