Commit 8452e4e
authored
fix: compare sponsor_info as bool instead of string (#446)
Relates to github-community-projects/cleanowners#373
## What
Changed the sponsor_info gate in contributors.py from a string comparison
(`== "true"`) to a truthy check, and updated the test mock to return a
bool to match what get_bool_env_var actually returns.
## Why
get_bool_env_var returns a Python bool, but the comparison checked for
the string "true". Since `True == "true"` is always False, sponsor
information was never fetched regardless of the SPONSOR_INFO env var
setting.
## Notes
- markdown.py already has `_is_truthy()` that handles both types, so the
rendering side was not affected — only the data fetch was skipped.
- json_writer.py passes sponsor_info through without comparison, so it's
also unaffected.
Signed-off-by: jmeridth <jmeridth@gmail.com>1 parent 3ba51bd commit 8452e4e
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
0 commit comments