Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git: Add commit template #11512

Closed
wants to merge 2 commits into from
Closed

Conversation

jlucovsky
Copy link
Contributor

Issue: none

This commit adds a template that identifies commit message elements that we find important. The Suricata development team requests that contributions use the template to help improve commit messages. We reserve the right to strictly enforce adherence to the template in the future.

Configure git to use this template with:
git config commit.template ..github/commit-template.txt

Describe changes:

  • Add commit template with instructions on how to configure

Provide values to any of the below to override the defaults.

  • To use an LibHTP, Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.11%. Comparing base (5d766df) to head (5054682).
Report is 37 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #11512       +/-   ##
===========================================
+ Coverage   62.68%   83.11%   +20.43%     
===========================================
  Files         840      909       +69     
  Lines      153669   257883   +104214     
===========================================
+ Hits        96323   214346   +118023     
+ Misses      57346    43537    -13809     
Flag Coverage Δ
fuzzcorpus 60.93% <ø> (?)
livemode 19.43% <ø> (?)
pcap 44.31% <ø> (?)
suricata-verify 62.70% <ø> (+0.02%) ⬆️
unittests 59.26% <ø> (?)

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

Copy link
Contributor

@jufajardini jufajardini left a comment

Choose a reason for hiding this comment

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

When we get this approved, it would be good to add a version of what is this PR description in the commit session about contributing: https://docs.suricata.io/en/latest/devguide/contributing/code-submission-process.html#commits

.github/commit-template.txt Outdated Show resolved Hide resolved
@jlucovsky jlucovsky force-pushed the commit-template/1 branch 2 times, most recently from 75001d9 to f53a593 Compare July 18, 2024 13:55
@victorjulien
Copy link
Member

I like the idea, but I would expect the PR to contain a devguide update as well. It should explain how to use it.

@inashivb
Copy link
Member

I like the idea, but I would expect the PR to contain a devguide update as well. It should explain how to use it.

+1. I'd like to add that it should probably not live under .github as it is not a github specific thing.

Issue: none

This commit adds a template that identifies commit message elements that
we find important. The Suricata development team requests that
contributions use the template to help improve commit messages. We
reserve the right to strictly enforce adherence to the template in the
future.

Configure git to use this template with:
    git config commit.template ..github/commit-template.txt
Describe how to use the git commit template. The template helps ensure
that the information needed for evaluation and context is included in
the commit message.

Ticket: <Redmine ticket number>
@jlucovsky jlucovsky marked this pull request as ready for review November 19, 2024 14:34
@jlucovsky jlucovsky requested a review from a team as a code owner November 19, 2024 14:34
Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

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

Please remove empty sdfs file ;-p

@jlucovsky
Copy link
Contributor Author

Continued in #12212

@jlucovsky jlucovsky closed this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants