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

chore: use GitHub release API to filter possible tag matches #576

Closed
wants to merge 1 commit into from

Conversation

benmss
Copy link
Member

@benmss benmss commented Dec 19, 2023

Closes #537

The GitHub API is called when finding commits for artefacts to retrieve release information in cases where an analysis target has a corresponding GitHub URL. These results are limited to the first 1000 instances by the API. The information retrieved includes two key properties: release name, and release tag.

The release tags retrieved via the API call can be used to filter down the list of all tags, thereby eliminating potentially spurious entries before the regular expression matching takes place. If that fails, the release names can instead be used as the list of tags for the same purpose, with the linked tag (in the API information) being returned in the case of a successful match. If that also fails, the behaviour is as it was before this change was added, i.e. all repository tags are used for the matching.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 19, 2023
@benmss benmss linked an issue Jan 8, 2024 that may be closed by this pull request
@benmss benmss self-assigned this Jan 8, 2024
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
@benmss benmss marked this pull request as draft February 27, 2024 06:04
@benmss benmss closed this Feb 27, 2024
@benmss
Copy link
Member Author

benmss commented Feb 27, 2024

This will be reconsidered and possibly included as part of #644 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the commit finding approach
1 participant