Skip to content

Commit

Permalink
Merge pull request #738 from direvus/prompt-wording
Browse files Browse the repository at this point in the history
Audit prompt wording
  • Loading branch information
lorenzodb1 authored Apr 29, 2024
2 parents 9e7a535 + 22463fe commit 7466c35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion detect_secrets/audit/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _classify_secrets(iterator: BidirectionalIterator) -> bool:
if decision == io.InputOptions.BACK:
iterator.step_back_on_next_iteration()

# The question asked is: "Should this be committed to the repository?"
# The question asked is: "Should this string be committed to the repository?"
elif decision == io.InputOptions.NO:
secret.is_secret = True
has_changes = True
Expand Down
2 changes: 1 addition & 1 deletion detect_secrets/audit/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(self, allow_labelling: bool, allow_backstep: bool) -> None:

def __str__(self) -> str:
if 'Y' in self.valid_input:
output = 'Is this a secret that should be committed to this repository?'
output = 'Should this string be committed to the repository?'
else:
output = 'What would you like to do?'

Expand Down
2 changes: 1 addition & 1 deletion docs/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Secret Type: Secret Keyword
68: }
69: ],
----------
Is this a secret that should be committed to this repository? (y)es, (n)o, (s)kip, (q)uit:
Should this string be committed to the repository? (y)es, (n)o, (s)kip, (q)uit:
```
There are two common cases for manual labelling:
Expand Down
2 changes: 1 addition & 1 deletion tests/audit/io_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'allow_backstep': True,
},
(
'Is this a secret that should be committed to this repository? '
'Should this string be committed to the repository? '
'(y)es, (n)o, (s)kip, (b)ack, (q)uit: '
),
),
Expand Down

0 comments on commit 7466c35

Please sign in to comment.