Listing GitHub repos created by a specific user - github

Is there a way to list all repositories within an organization, created or contributed to by a specific user?
For concreteness, I am a member of the organization and I am the user in question.
The organization page has a ton of repos listed and I just want to see the ones that I made.

Related

Can a github repository be part of multiple organizations?

On GitHub, a user can belong to multiple organizations. Is it possible for a repository to be part of multiple organizations as well?
According to this blog post by GitHub, a repository can only belong to one organization.
Creating an organization helps you centralize your organization’s code. All repositories live under the organization, and billing goes through a central organization account.
You can fork one organization's repository into another organization's space, but the original belongs to just a single organization.

GitHub: How to list all the private repositories that a particular user has forked?

When you remove a user from an organization, GitHub warns you that all their forks of the organisation's private repos will be deleted
Removing people from the XX organization will also delete their forks of any private XX-owned repositories.
And GitHub tells you how many private forks the user has but it does not tell you the repo names (even though I have permission to see them!)
It would be useful to see the repos so that I can check that they really have no outstanding, potentially useful, work left on branches (that they have not opened pull-request for).
To do it from the Web U:
Go to the people tab of the organization (https://github.com/orgs/myorg/people).
Filter/find the person.
Click their name; this will take you to https://github.com/orgs/myorg/people/theirusername, which lists all repos they have access to, including repos in the organization and forks the user has made of them.
Filter the list by their username; this will show just the forks.
This requires owner permissions for the organization.
There's a GitHub API to list all the forks. I haven't tested the API but I assume that you will get ONLY the public forks for other users and all the forks if you're the authenticated user.
If you wanted to query this on behalf of other users you can work on a GitHub Integration that would get users' permissions via OAuth and then you could store that information on your side for a whole group of people.
I don't think this is what you were asking for but additionally there's a WEB UI filter for forked repositories, e.g., https://github.com/defunkt?utf8=%E2%9C%93&tab=repositories&q=&type=fork.

Github: How to add collaborator globally?

I've got an account for automated builds which should have access to every Github (Enterprise) repository owned by a particular organization. Is there a way to do this such that present and future repositories are automatically intercepted?
You have to set the user as an owner:
Go to the 'People' tab under your organization.
Find the user of interest. There are a number of columns, one of which has values such as 'member' or 'owner'.
Change this value for your user to 'owner'.
That user should now have contributor access to all repositories owned by the organization.

Is an organisation on GitHub a user or just a repositories container that needs a user?

As GitHub user I can create an organization. What i don't understand -- Is an organisation independent?
Is it a repositories container, that needs a (user) account it belongs to or
is it for itself an (organization) account GitHub user (and doesn't need any personal user account)? Is it then correct to say, that an organization is a "featured user" account -- an account with all the features of a personal user account (especially code management, commenting etc.) and some additional functionality?
The biggest difference between user accounts and organizations is team-based permissions for the repositories owned by the organization.
This means you can have team members under your organization and let them interact more aggressively with your repositories compared to plain contributors.
I'd say the concept of a GitHub organization is pretty independent from a plain GitHub user - they aren't the same thing. See for example how you can convert a user to an organization https://help.github.com/articles/converting-a-user-into-an-organization/
With that being said, organizations have what they call owners.
You can have multiple owners (i.e you can invite people to be owner of your organization along with you) but an organization cannot have zero owner.
For example, when you create an organization while logged under your account, the default first owner of the organization you just created is yourself.
Here's a more detailed list about the differences between a user and an organization
https://help.github.com/articles/what-s-the-difference-between-user-and-organization-accounts/
An organization is not a user, it doesn't have a password and you cannot log into an organization like you can to a personal/user account. But an organization can own repositories, which can be made accessible to actual persons/users who have passwords and can login.

Github organization permissions

I have a main repo that students are forking to do their homework. From the student's view of the repo, the list of collaborating teams is small (their individual team and my teacher team). However, from my view (as admin), there is a long list of teams with access. As a result, students are able to see within other students' private repos.
What is the correct way to manage this so that teams can fork a main repo, and limit access to that repo among teams.