Skip to content

Add "...doesn't work" to the end of syntax rules for gitignore files examples in about-code-owners.md #34805

@nguyenalex836

Description

@nguyenalex836

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

What part(s) of the article would you like to see updated?

{% warning %}

Warning: There are some syntax rules for gitignore files that do not work in CODEOWNERS files:

  • Escaping a pattern starting with # using \ so it is treated as a pattern and not a comment
  • Using ! to negate a pattern
  • Using [ ] to define a character range

{% endwarning %}

Per this issue, each of the examples in this list should have "doesn't work" appended to the end for clarity -

{% warning %}

Warning: There are some syntax rules for gitignore files that do not work in CODEOWNERS files:

  • Escaping a pattern starting with # using \ so it is treated as a pattern and not a comment doesn't work
  • Using ! to negate a pattern doesn't work
  • Using [ ] to define a character range doesn't work

{% endwarning %}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamrepositoriesContent related to repositories

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions