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

Add remediation messages to GGclient #111

Conversation

fnareoh
Copy link
Collaborator

@fnareoh fnareoh commented Jul 1, 2024

This MR add a new dataclass RemediationMessages used in the GGClient to store information given by the metadata endpoint and if the remediation message are not part of the API answer the default are used.

This change is meant to be used with GitGuardian/ggshield#928 .

@fnareoh fnareoh self-assigned this Jul 1, 2024
@fnareoh fnareoh marked this pull request as draft July 1, 2024 16:00
@fnareoh fnareoh changed the title Draft: feat(metadata): add remediation messages Add remediation messages to GGclient Jul 1, 2024
@fnareoh fnareoh force-pushed the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch from 180040f to 1837053 Compare July 1, 2024 16:02
@fnareoh fnareoh force-pushed the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch from 1837053 to 4814afd Compare July 15, 2024 12:55
pygitguardian/config.py Outdated Show resolved Hide resolved
pygitguardian/config.py Show resolved Hide resolved
pygitguardian/config.py Show resolved Hide resolved
pygitguardian/client.py Show resolved Hide resolved
@fnareoh fnareoh force-pushed the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch 2 times, most recently from 59948ac to 4d3bae8 Compare July 19, 2024 14:20
Copy link
Collaborator

@pierrelalanne pierrelalanne left a comment

Choose a reason for hiding this comment

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

I have minor remarks left, but it looks good to me 🙂
I think it might be good to double check the wording with Mathieu.

tests/test_client.py Show resolved Hide resolved
pygitguardian/config.py Show resolved Hide resolved
@fnareoh fnareoh marked this pull request as ready for review July 22, 2024 08:10
@fnareoh fnareoh force-pushed the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch from 4d3bae8 to cff097c Compare July 22, 2024 11:19
@fnareoh fnareoh force-pushed the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch from cff097c to 6b57cef Compare July 24, 2024 13:15
@fnareoh fnareoh merged commit fc766e1 into master Jul 24, 2024
19 checks passed
@fnareoh fnareoh deleted the garancegourdel/scrt-4626-ggshield-display-custom-remediation-message-in-ggshield-if branch July 24, 2024 13:20
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.

None yet

2 participants