Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Wrong language detection #59

Open
Drjacky opened this issue Aug 4, 2023 · 5 comments
Open

[Bug] Wrong language detection #59

Drjacky opened this issue Aug 4, 2023 · 5 comments

Comments

@Drjacky
Copy link

Drjacky commented Aug 4, 2023

Describe the bug
It doesn't detect the used languages. I have Java and Kotlin but, it only detected TypeScript and Python!

Screenshot 2023-08-04 at 21 38 05
@knotgrass
Copy link

image
I got same problem too. I have C++ and CUDA. But It cannot detect them.

@danielcshn
Copy link
Contributor

Captura de pantalla 2023-10-16 231920

I got same problem too. I have many repositories in Java and VB.NET and it does not detect them.

@code2tan
Copy link

the same problem!please

@danielcshn
Copy link
Contributor

I think I have the solution.

1.- Register the "personal access token" in the repository and set it to GH_TOKEN specified in the workflow file.
2.- If you have more than 100 repositories, increase the number with MAX_REPOS.

name: GitHub-Profile-3D-Contrib

on:
  schedule: # 03:00 JST == 18:00 UTC
    - cron: "0 18 * * *"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: generate-github-profile-3d-contrib
    steps:
      - uses: actions/checkout@v3
      - uses: yoshi389111/[email protected]
        env:
+          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          USERNAME: ${{ github.repository_owner }}
+          MAX_REPOS: 300
      - name: Commit & Push
        run: |
          git config user.name github-actions
          git config user.email [email protected]
          git add -A .
          git commit -m "generated"
          git push

With these changes I can now see the missing languages.

image

@yoshi389111
Copy link
Owner

Hi. Thanks for visiting my repository.

What this chart represents is which languages your commits over the past year have contributed to.
It does NOT represent the language used in your repository.

Each commit has a target repository.
Each repository has a primary language.

Each commit is calculated as a contribution to the primary language of the target repository.
This is true even if the committed file is not in the primary language of the repository.

ref. #42

If you think GitHub's primary language is incorrect, you can change the settings in .gitattributes.

https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants