Skip to content

Add custom tags and make member_id optional#164

Merged
kash-jay merged 3 commits intomasterfrom
kash-jay/add-custom-tags
Jan 27, 2026
Merged

Add custom tags and make member_id optional#164
kash-jay merged 3 commits intomasterfrom
kash-jay/add-custom-tags

Conversation

@kash-jay
Copy link
Contributor

@kash-jay kash-jay commented Jan 23, 2026

This adds the field custom_tags to the class SecretIncident, which was previously dropped since the field was absent. The member_id and field of Feedback was also made optional, as this was causing failures with ggshield when the field in the API response was empty.

This should fix ggshield not receiving custom_tags info when scanning a known incident with custom_tags set.

@kash-jay kash-jay self-assigned this Jan 23, 2026
@kash-jay kash-jay requested a review from a team as a code owner January 23, 2026 18:06
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.63%. Comparing base (a569bca) to head (85982b9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   95.60%   95.63%   +0.02%     
==========================================
  Files           5        5              
  Lines        1230     1236       +6     
==========================================
+ Hits         1176     1182       +6     
  Misses         54       54              
Flag Coverage Δ
unittests 95.63% <100.00%> (+0.02%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kash-jay kash-jay force-pushed the kash-jay/add-custom-tags branch from a170edc to 92e2e1a Compare January 23, 2026 18:12
@GitGuardian GitGuardian deleted a comment from linear bot Jan 26, 2026
Copy link
Collaborator

@agateau-gg agateau-gg left a comment

Choose a reason for hiding this comment

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

Looks good, but I am not sure we need to allow email to be null.

Copy link
Contributor

@alexpasmantier alexpasmantier left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the PR!

PS: a couple of failing tests break the CI

@kash-jay kash-jay force-pushed the kash-jay/add-custom-tags branch from e236532 to 85982b9 Compare January 27, 2026 09:47
@kash-jay kash-jay merged commit 05329a3 into master Jan 27, 2026
19 checks passed
@kash-jay kash-jay deleted the kash-jay/add-custom-tags branch January 27, 2026 13:18
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.

4 participants