Skip to content

make GitHub recognise that this repo contains mostly JSON, not JS#1989

Merged
tyrasd merged 1 commit intoopenstreetmap:mainfrom
k-yle:kh/gitattributes
Mar 9, 2026
Merged

make GitHub recognise that this repo contains mostly JSON, not JS#1989
tyrasd merged 1 commit intoopenstreetmap:mainfrom
k-yle:kh/gitattributes

Conversation

@k-yle
Copy link
Copy Markdown
Collaborator

@k-yle k-yle commented Mar 5, 2026

GitHub currently shows this repo as "100% JavaScript", which is a bit misleading, because this repo is actually a collection of a JSON files, with a tiny number of JS build scripts.

We can instruct the 'linguist' library to count JSON as source code.

Before After
image image

To test: open k-yle/id-tagging-schema, where I changed the default branch to this PR's branch.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

🍱 Your pull request preview is ready

Please use this preview to check your changes. Ideally use the test documentation template and document your test results by commenting on the PR. This will speed up the review process for everyone.

FYI, once this PR is merged, you can use the iD Editor Preview to test your changes in interaction with all other changes.

@matkoniecz
Copy link
Copy Markdown
Collaborator

Is it some official git syntax or some proprietary kludge?

From rereading docs it seems fine to put random stuff there. And I guess that it is not like this one is causing noticeable vendor lock-in.

@matkoniecz matkoniecz added the documentation Improvements or additions to documentation label Mar 7, 2026
Copy link
Copy Markdown
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, thanks!

@tyrasd tyrasd merged commit 39f5d23 into openstreetmap:main Mar 9, 2026
5 checks passed
@k-yle
Copy link
Copy Markdown
Collaborator Author

k-yle commented Mar 10, 2026

Is it some official git syntax or some proprietary kludge?

Sorry I missed your comment, but GitHub, GitLab, Gitea, and Codeberg all recognise these attributes now, so it's a fairly established standard

@k-yle k-yle deleted the kh/gitattributes branch March 10, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants