How to show the "Repositories contributed to" on github - github

One of our team member create a repository and all other team member can push their own work to this repository. It seems that, under the tab "Contributions" there should be two kinds of directory: "Popular repositories" and "Repositories contributed to". I push my work to this repository from the user Interface of Eclipse. But in the home page of my github, directory "Repositories contributed to" was not shown up and all my push history can only be seen in the "Public activity". How can I make "Repositories contributed to" shown up so others can see my contribution to the team work? Thanks a lot!

This is the best workaround I have found so far, not a direct solution but could be used as a workaround:
You can see the contributions you have made to a repo with:
https://github.com/{REPO_OWNER}/{REPO_NAME}/commits?author={USER_ID}
So in your profile, you could put hyperlinks to the repos with that. E.g.,:
Contributed to [Caffe][1] and [OpenCV][2]
[1]: https://github.com/BVLC/caffe/commits?author=gineshidalgo99
[2]: https://github.com/opencv/opencv/commits?author=gineshidalgo99

I found the repositories I've pushed code at https://github.com/settings/repositories

I found the other answers cover the issue partially.
One shows repositories with write access only and the other requires you to know the repositories.
Here's how to find all your contributions step-by-step
Log in to your GitHub account and visit https://github.com/pulls
Filter and remove any organizations (like regular work repository/org) with -user:org-i-do-not-want. Add as many org as you want to filter out.
You can see all the pull requests you have raised
Here's a link:
https://github.com/pulls?q=is%3Apr+author%3A<GitHub Username>

Related

GitHub search results do not return all repos for team

I have a URL for accessing all open PRs for my team. URL: https://github.com/pulls?q=is%3Aopen+is%3Apr+archived%3Afalse+team%3Acorp-name%2Fteam-name
Query: is:open is:pr archived:false team:corp-name/team-name
This has always worked fine but the last few repos I created are not found by this query and I can't tell why. The team has the same write access on all repos and if I go to github.com/orgs/corp-name/teams/team-name/repositories they are all listed there. I don't see anything in the settings to determine which team is the owner. All settings are the same as other repos that do show up in the search results.
An alternative would be to use repo: but I don't think wildcards are an option and there's too many repos to list separately.
I think I unexpectedly stumbled across the answer to this. For GitHub to consider a PR to be under a team, the team needs to be referenced in a comment on the PR. Our old repos had a template that included ###### #corp-name/team-name on the bottom of the PR description. New repos don't have that.
The other strange thing: if you add it and then edit/remove it, GitHub has it cached somewhere because the search results retain it. You can't remove it as far as I can tell.
GitHub will link a PR to a team mentioned in the initial description or any comment, prepended with a "#".

Hidden repository on github website, which I contributed but now I do not use anymore and I want to hide them

Hidden repository on github.com website, which I contributed (open an issue, forked).
But now I do not use them anymore and I want to hide them, these repositories are not necessary
Thanks.
In 2019, the policy was that GitHub would clear out those repositories for you after 4 month of "non-interaction" (no issue or PR opened by you on that other repository)
That must have changed, because I have in my own "Recent Repositories" list very old external archived repositories, which are still listed.
So far, there is no way to control that list.

How to show repos I collaborated to on my personal Github page?

I've worked on a project with a friend and we've used Github, but she is the owner of the repository, and I would like to have this repo on my Github profile too.
yes, I am a contributor of the repo, and,
yes, I've done lot of commits.
Google is not helping me, I have only found an old question about this topic (here) but I do not find the button they are talking about:
sceenshot of what I see when clicking "customize your pins"
Any clue ?
Ensure on your profile settings you have checked the contributions section (it's below).
Also, you might be contributing to a branch so maybe the contributions will reflect after your friend merges the branch to the default branch

How to add a wiki to a GitHub repo?

I have a private repo that's part of an organization on GitHub. I don't see the normal link to the repo's wiki that I've seen on many other repos. How do I get to it?
I did a little more digging and figured this out, decided I’d document it for the next person. The GitHub wiki is a setting that’s off by default. From the repo page select Settings on the right side, then in the Features section check Wikis.

Can the owner of a repo see clones?

I know that the owner of a repo is able to see a fork request when one is performed. But what about a clone? Can the owner of the repo see when someone clones it?
The question is too general, but let me answer the question as it stands now.
Can the owner of the repo see when someone clones it?
No, they cannot. If I go to one of your repositories and clone it to my local hard drive, the owner will not be able to view that activity. And why would you want to? Likely there are many clones of your repository.
Know that clones can live on other systems than GitHub.
Now, will the owner know that someone forked their repository on GitHub itself?
Yes, they will, assuming they pay attention.
I did the following:
Logged in as my main account
Created a repository
Set up a new dummy-account on an alternate email address
Forked the repository I created earlier
Logged back into my main account
This is what I see on my first page after logging in:
If I do the following:
Click on my repository
Click on the small 1 to the right of the "Fork" button:
Click on the "Members" tab:
Then I see this:
Conclusion:
Yes, the owner of a repository will see when someone makes a fork on GitHub, but no, they will not see it when someone makes a clone somewhere else.
As far what I found you CAN'T know when someone clones it (if you mean exact time) nor who cloned it.
But you can know how many clones were made on which date and the number of unique cloners from ths url.
https://github.com/{usernamme}/{reponame}/graphs/traffic
Insights tab:
However one thing I find fishy is unique cloners is more than unique visitors, how can someone decide to clone even without visiting the repo. I guess it may be bots in such cases.
You can use clone graph on GitHub to find out how many times your repository's source code is actually cloned in a given day. More information can be found here https://help.github.com/articles/about-repository-graphs/#traffic
Yes, it can be done.
Go to your account landing page- https://github.com/yourusername
Click on the repo you want to check traffic for.
Click on Insights on top navigation bar.
Click on Traffic on left navigation bar.
Voila, you will get your traffic including no of clones with a timeline.
Reference: clone graph
Open Github, find your repo, click on it. Then click on Insights and finally click on Traffic. Github shows a graph Traffic including git clones. Salutes!
As for now we can obtain this information with Rest API /audit-log,
but it is available only for Enterprise users with org:read permission.
We can see the actual users that have preformed fetch, clone and many more actions.
https://docs.github.com/en/rest/reference/orgs#get-the-audit-log-for-an-organization
as long as you have access to the repo, aka an ssh key on the filesystem with the remote, then yes. you would do as follows:
git fetch some_remote
git log some_remote/some_branch