GeezerVison is showing github.com — fix: don't re-add removed markdownlint comments to generated lists by JoshuaKGoldberg · Pull Request #541 · all-contributors/cli
Conversation
What: Fixes #540.
Why: Repos that removed the markdownlint comments from their contributors list get them re-added on every run.
How: When a previously generated list (one with <!-- prettier-ignore-start -->) doesn't have <!-- markdownlint-disable -->, generation now leaves the markdownlint comments out; new and hand-written lists still get them.
In other words, there are two ways to control this:
options.withMarkdownlint: set to false to explicitly remove, true to explicitly add, or leave undefined to 👇
- (infer from existing):
true if there was no content or the existing content has the markdownlint-disable comment, false if the existing content doesn't have the comment
Checklist:
- Documentation N/A
- Tests
- Ready to be merged
- Added myself to contributors table
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One question about the logic.
I would prefer to go with the configuration option you explained in #540. I think it is clearer and easier to document.
We could use what you have done here just changing withMarkdownLint to be taken from the config rather than calculated from the previous table.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 23, 2026
Reviewers
JimMadge
JimMadge approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.