-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Infra] Add CI workflow to make sure pr titles are following conventi…
…ons (#1135)
- Loading branch information
1 parent
cdb650d
commit 9a117a5
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Verify PR Title Convention" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
check-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check PR title convention" | ||
id: title-check | ||
env: | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
run: | | ||
if [[ ! "$PR_TITLE" =~ ^\[(Integration|Core|Docs|CI|Infra)\]\ .+ ]]; then | ||
echo "PR title does not match the required convention." | ||
echo "Examples of acceptable titles:" | ||
echo "[Integration] Resolve missing team context in board ingestion for non-default teams" | ||
echo "[Core] Ensure ingestion of integration logs" | ||
echo "[Core] Upgrade FastAPI version to improve performance and compatibility" | ||
echo "[Docs] Correct documentation on Ocean's denial-of-service vulnerability in http-proxy-middleware" | ||
echo "[Integration] Enable region-specific resource querying support" | ||
exit 1 | ||
else | ||
echo "PR title matches the required convention." | ||
fi |