GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(generate): support markdownlint opt-out and preservation in contributors list by matbrgz · Pull Request #553 · all-contributors/cli

Conversation

@matbrgz

@matbrgz matbrgz commented Sep 27, 2026

Copy link
Copy Markdown

Description

Resolves #540.

Currently, injectListBetweenTags always injects <!-- markdownlint-disable --> and <!-- markdownlint-restore --> with no way to opt out. In projects that do not use markdownlint, these comments are unwanted noise that get re-injected on every run even after being removed manually.

This PR adds:

  1. Config Option & CLI Flag:
    • "markdownlint": false in .all-contributorsrc to disable markdownlint comments.
    • --no-markdownlint CLI flag.
  2. Automatic Preservation:
    • If markdownlint is not explicitly configured (undefined), injectListBetweenTags inspects the existing content between tags. If the existing list has <!-- prettier-ignore-start --> but lacks <!-- markdownlint-disable -->, it preserves the developer's omission and avoids re-adding them.
    • Fully backward compatible: existing repositories and fresh init lists keep their markdownlint comments by default.
  3. Tests:
    • Unit tests covering explicit opt-out (markdownlint: false), explicit inclusion (markdownlint: true), and automatic preservation for existing files with and without markdownlint comments.

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Bug fix

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@matbrgz
feat(generate): support markdownlint opt-out and preservation in cont…
2dd13e6
…ributors list

Allow projects to opt out of markdownlint comments around the contributors table, and preserve existing tables where markdownlint comments were removed.

- Support markdownlint config option in .all-contributorsrc (markdownlint: false) and CLI flag (--no-markdownlint / --markdownlint).
- When markdownlint is not explicitly configured, inspect existing table content; if prettier-ignore-start is present without markdownlint-disable, preserve the user's omission.
- Add unit tests verifying markdownlint opt-out, explicit inclusion, and preservation of existing tables.
- Closes #540

Co-Authored-By: Antigravity <[email protected]>
@JoshuaKGoldberg

JoshuaKGoldberg commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

@matbrgz I already sent #541 a couple days ago, which you auto-responded on. Is your bot running a little too much? 🙂

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matbrgz

This comment was marked as spam.

Sign in to view
@matbrgz matbrgz closed this Sep 28, 2026
@matbrgz matbrgz mentioned this pull request Sep 28, 2026
fix: don't re-add removed markdownlint comments to generated lists #541
Merged
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Generated contributors list always adds markdownlint-disable/restore comments, with no opt-out

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@matbrgz @JoshuaKGoldberg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.