fossa_list_snippets
List code snippets FOSSA matched in a project revision, with options to group by package or path. Compare revisions to identify new, removed, or unchanged snippets.
Instructions
List the code snippets FOSSA matched in a revision, or roll them up by package or by path.
Read-only. view picks the shape: snippets is one row per matched
snippet, packages groups them by upstream package, paths is the file
tree with a match count per node, and count is just the total. Every view
except paths requires path ("/" for the whole tree).
Set compare_to_revision together with change_status to diff two
revisions of the same project and see only the snippets that are new,
removed, or unchanged. The comparison has no count view.
vendored_match filters on whether a snippet is already vendored or has
been converted to a vendored dependency; exVendored and exConverted
exclude rather than include.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| path | No | ||
| sort | No | ||
| view | No | snippets | |
| search | No | ||
| page_size | No | ||
| package_ids | No | ||
| snippet_ids | No | ||
| change_status | No | ||
| package_labels | No | ||
| vendored_match | No | ||
| project_locator | Yes | ||
| rejection_status | No | ||
| revision_locator | Yes | ||
| compare_to_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||