Skip to content

[ci] Add automated PR title check(#13867)#13868

Merged
aHenryJard merged 4 commits intomasterfrom
issue/13867
Feb 26, 2026
Merged

[ci] Add automated PR title check(#13867)#13868
aHenryJard merged 4 commits intomasterfrom
issue/13867

Conversation

@aHenryJard
Copy link
Member

@aHenryJard aHenryJard commented Jan 2, 2026

Proposed changes

  • Add a very permissive regexpr to check PR title:
    • start with [anyword]
    • ends with (# anyNumber)

OR

  • starts with[deps] (for renovate PRs)

Related issues

Example of failure.
image

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case (coverage and e2e)
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

@github-actions github-actions bot added the filigran team use to identify PR from the Filigran team label Jan 2, 2026
@aHenryJard aHenryJard changed the title Test a PR title check [ci] Add automated PR title check (#13867) Jan 2, 2026
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check (#13867) [ci] Add automated PR title check Jan 2, 2026
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.36%. Comparing base (1fb52ee) to head (351335d).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #13868    +/-   ##
========================================
  Coverage   32.36%   32.36%            
========================================
  Files        3096     3096            
  Lines      210896   210896            
  Branches    38196    38483   +287     
========================================
  Hits        68259    68259            
  Misses     142637   142637            
Flag Coverage Δ
opencti-client-python 45.50% <ø> (ø)
opencti-front 2.83% <ø> (ø)
opencti-graphql 67.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aHenryJard aHenryJard changed the title [ci] Add automated PR title check [ci] Add automated PR title check2 Jan 2, 2026
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check2 [ci] Add automated PR title check (#13867) Jan 2, 2026
@aHenryJard aHenryJard marked this pull request as ready for review January 2, 2026 10:08
@aHenryJard aHenryJard marked this pull request as draft January 2, 2026 10:24
@SamuelHassine SamuelHassine force-pushed the master branch 8 times, most recently from 1c222ef to 2cb4539 Compare January 10, 2026 19:59
@aHenryJard aHenryJard requested a review from Copilot January 14, 2026 07:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds automated validation of pull request titles using a GitHub Actions workflow. The workflow enforces that PR titles follow the format [component] Message (#issuenumber) as specified in the CONTRIBUTING.md file.

Changes:

  • Adds a new GitHub Actions workflow that triggers on PR open/edit events
  • Uses the Slashgear/action-check-pr-title action to validate PR title format
  • Provides a help message pointing to contribution guidelines

@aHenryJard aHenryJard changed the title [ci] Add automated PR title check (#13867) Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard changed the title Add automated PR title check (#13867) [ci] Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard marked this pull request as ready for review February 25, 2026 11:08
@aHenryJard
Copy link
Member Author

@copilot change the regexpr in this pull request to allow title format with "[backend/frontend] blabla (#1234)" or "[docs] blabla (#1234)(#4567)"

Copy link
Contributor

Copilot AI commented Feb 25, 2026

@aHenryJard I've opened a new pull request, #14605, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI mentioned this pull request Feb 25, 2026
4 tasks
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check (#13867) [ci/cd] Add automated PR title check (#13867)(#13867) Feb 25, 2026
@aHenryJard aHenryJard marked this pull request as draft February 25, 2026 12:15
@aHenryJard aHenryJard changed the title [ci/cd] Add automated PR title check (#13867)(#13867) [ci] Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check (#13867) [backend/frontend] Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard added the dependencies use for pull requests that update a dependency file label Feb 25, 2026
@aHenryJard aHenryJard changed the title [backend/frontend] Add automated PR title check (#13867) Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard changed the title Add automated PR title check (#13867) [ci] Add automated PR title check (#13867) Feb 25, 2026
@aHenryJard aHenryJard removed the dependencies use for pull requests that update a dependency file label Feb 25, 2026
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check (#13867) [deps] Add automated PR title check Feb 25, 2026
@aHenryJard aHenryJard changed the title [deps] Add automated PR title check [ci] Add automated PR title check Feb 25, 2026
@aHenryJard aHenryJard changed the title [ci] Add automated PR title check [ci] Add automated PR title check(#13867) Feb 25, 2026
@aHenryJard aHenryJard marked this pull request as ready for review February 26, 2026 08:54
Copy link
Member

@fellowseb fellowseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as a permissive solution (:. (the presence of .*s basically opens the door to many wild stuff, be we can refine later if we want to !)
Just for the component part consider either removing the [a-z]+ part given the .+ already allows anything, or constraining it more (like [\[[a-z\/\-]+\])

@aHenryJard aHenryJard merged commit ae02e11 into master Feb 26, 2026
37 checks passed
@aHenryJard aHenryJard deleted the issue/13867 branch February 26, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team use to identify PR from the Filigran team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically check PR title with contributing.md format

4 participants