docs: add AI-assisted contribution guidelines and fix codecov for for…#182
Merged
Conversation
…k PRs Add an "AI-Assisted Contributions" section to README.rst to set expectations for AI agents and AI-assisted tooling active in this repository: avoid noisy issues for simple fixes, keep PR descriptions concise, and always provide test coverage for new extensions. Fix the codecov upload condition in the API Tests workflow. The previous guard (`github.repository == 'fossology/fossology-python'`) was always true — even for fork PRs — because `github.repository` refers to the base repository, not the PR source. Replace it with a comparison of `github.event.pull_request.head.repo.full_name` against `github.repository` so the codecov step is skipped when the PR originates from a fork where the CODECOV_TOKEN secret is unavailable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #182 +/- ##
=======================================
Coverage 91.93% 91.93%
=======================================
Files 15 15
Lines 1811 1811
=======================================
Hits 1665 1665
Misses 146 146 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…k PRs
Add an "AI-Assisted Contributions" section to README.rst to set expectations for AI agents and AI-assisted tooling active in this repository: avoid noisy issues for simple fixes, keep PR descriptions concise, and always provide test coverage for new extensions.
Fix the codecov upload condition in the API Tests workflow. The previous guard (
github.repository == 'fossology/fossology-python') was always true — even for fork PRs — becausegithub.repositoryrefers to the base repository, not the PR source. Replace it with a comparison ofgithub.event.pull_request.head.repo.full_nameagainstgithub.repositoryso the codecov step is skipped when the PR originates from a fork where the CODECOV_TOKEN secret is unavailable.