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.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.
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
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.
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