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): Add branch name to FossID scan code #8641

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.84%. Comparing base (b2328c7) to head (30f2c3d).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8641   +/-   ##
=========================================
  Coverage     67.84%   67.84%           
  Complexity     1164     1164           
=========================================
  Files           244      244           
  Lines          7735     7735           
  Branches        864      864           
=========================================
  Hits           5248     5248           
  Misses         2128     2128           
  Partials        359      359           
Flag Coverage Δ
funTest-docker 66.84% <ø> (ø)
test 38.00% <ø> (ø)

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
@kamil-bielecki-bosch kamil-bielecki-bosch requested review from tsteenbe and a team as code owners 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
@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch from f1628a0 to 217c683 Compare June 11, 2024 09:39
@sschuberth sschuberth changed the title feat(scanner): Adds branch name to FossID scan code. feat(scanner): Add branch name to FossID scan code Jun 11, 2024
@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch 2 times, most recently from e4b35c8 to 1556a46 Compare June 12, 2024 09:58
@sschuberth sschuberth dismissed their stale review June 12, 2024 10:15

Comments addressed.

@oheger-bosch
Copy link
Member

My comments have been addressed as well. @nnobelis, anything open on your side? Otherwise, I think this can be merged once the detekt issues have been resolved.

@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch from 1556a46 to aefe288 Compare June 12, 2024 10:32
Copy link
Member

@nnobelis nnobelis left a comment

Choose a reason for hiding this comment

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

Comments addressed.

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 <[email protected]>
@kamil-bielecki-bosch kamil-bielecki-bosch force-pushed the add_branch_name_to_fossid_scan_code branch from aefe288 to 30f2c3d Compare June 12, 2024 11:08
@oheger-bosch oheger-bosch dismissed fviernau’s stale review June 12, 2024 11:32

Points have been addressed.

@oheger-bosch oheger-bosch merged commit 2e1399c into oss-review-toolkit:main Jun 12, 2024
19 of 20 checks passed
@oheger-bosch oheger-bosch deleted the add_branch_name_to_fossid_scan_code branch June 12, 2024 11:32
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.

5 participants