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

[Feature][Question] Display another profile contribution as well #58

Open
Drjacky opened this issue Jul 22, 2023 · 4 comments
Open

[Feature][Question] Display another profile contribution as well #58

Drjacky opened this issue Jul 22, 2023 · 4 comments

Comments

@Drjacky
Copy link

Drjacky commented Jul 22, 2023

Is your feature request related to a problem? Please describe.
I mostly use my work GitHub account and all of my contributions and commits are there. Is it possible to also show the chart for the other account? or is it possible to merge the works from two accounts and display them in one chart?

@yoshi389111
Copy link
Owner

Hello, Drjacky.
Thank you for looking at my repository.

Is it possible to also show the chart for the other account?

Although I haven't actually tried it, there are two ways to display charts from a work account on a non-work account.

The first approach is to generate the chart on your work account and display it on your non-work account.

Another way is to set USERNAME to your work username when generating charts in a non-work account.
However, the token specified in GITHUB_TOKEN must have authority to refer to the relevant repository. For example, if you want to target private repositories for work, you should create a token that gives permission to browse private repositories with your work account and specify it in GITHUB_TOKEN.

or is it possible to merge the works from two accounts and display them in one chart?

It is not possible to merge results from two accounts.

@Drjacky
Copy link
Author

Drjacky commented Jul 29, 2023

Note: If you also want to include the private repository, register the "personal access token" in the repository and set it to GITHUB_TOKEN specified in the workflow file.

What if there are multiple private repositories? should we define different personal access token per each? if yes, how to assign them to the GITHUB_TOKEN ?

@Drjacky
Copy link
Author

Drjacky commented Jul 29, 2023

Anyway, this doesn't work for me as the Actions are disabled on the organisational level 😞

@Drjacky
Copy link
Author

Drjacky commented Jul 29, 2023

I created a personal access token, gave access to read and write and some other permissions.
then I changed GITHUB_TOKEN to that token ( ${{ 'tokennnn' }} or 'tokennnn' ) and username to ${{ 'companyname/myusername' }} or 'companyname/myusername' or 'myusername'
but got 401.

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

2 participants