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

feat(scanner): Adds branch name to FossID scan code. #8641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kamil-bielecki-bosch
Copy link

Adds branch name (revision) to FossID scan code for easier identification of scanned source code.
As FossID accepts maximum of 255 characters in scan code, branch name is trimmed to size, that is compliant with this constraint.

@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch from efc3d6c to 088c960 Compare May 13, 2024 06:30
Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.88%. Comparing base (833dac3) to head (f1628a0).
Report is 50 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8641      +/-   ##
============================================
- Coverage     67.92%   67.88%   -0.04%     
- Complexity     1005     1165     +160     
============================================
  Files           244      244              
  Lines          7772     7732      -40     
  Branches        876      865      -11     
============================================
- Hits           5279     5249      -30     
- Misses         2110     2124      +14     
+ Partials        383      359      -24     
Flag Coverage Δ
funTest-docker 66.84% <ø> (+0.79%) ⬆️
funTest-non-docker 34.19% <ø> (-0.60%) ⬇️
test 38.03% <ø> (+0.19%) ⬆️

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.

@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch 3 times, most recently from 651c2b3 to bbf6e42 Compare May 17, 2024 08:15
@kamil-bielecki-bosch kamil-bielecki-bosch marked this pull request as ready for review May 17, 2024 08:18
@sschuberth
Copy link
Member

feat(scanner): Adds branch name to FossID scan code.

Commit messages should be written in "imperative mood" and titles should not end in a dot, so use "feat(scanner): Add a branch name to the FossID scan code"

@nnobelis
Copy link
Member

Please also document the new builtin: https://github.com/oss-review-toolkit/ort/blob/main/plugins/scanners/fossid/src/main/kotlin/FossIdNamingProvider.kt#L28-L39

@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch 4 times, most recently from 82595dc to 4f493bc Compare May 24, 2024 07:52
@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch 3 times, most recently from 35c3ced to c2f0f80 Compare May 24, 2024 08:02
Add branch name (revision) to FossID scan code for easier
identification of scanned source code.
As FossID accepts maximum of 255 characters in scan code, branch name
is trimmed to size, that is compliant with this constraint.

Signed-off-by: Kamil Bielecki <kamil.bielecki@pl.bosch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants