Remove public repository from my GitHub account - github

In my GitHub account I am seeing two public repository along with my private repository. I am not sure how these public repository came up in my account. Now I want to delete them from my account but as I am not seeing the Settings options on the repository page.
Following is the landing page of my account.
When I search for all types of repository, at that time it is not showing those two public repositories.

can you click into the repositories and hit settings on the far right? scroll down and in the "danger zone" you should be able to delete it, if it is yours, among other options.

Related

How to allow anyone to submit issue for a private repo?

I have a private repo. I have users using the app. I'd like for them to be able to report bugs using GitHub. I've read the GitHub documentation and I just don't get if it would be possible to automatically close issues on Public repo once the corresponding issue is closed in Private repo.
I guess that the workflow should be something like:
user creates issue in Public repo
I recreate the issue in Private repo and I add a comment to Public repo that issue has also been created in Private repo
once the issue is resolved in Private repo I need to manually close the corresponding ticket in Public repo (I would add as much details as I'm allowed)
Is this the only way to do it? Is there some way to automatically create new issue in Private repo once there is issue in Public repo?
3 Step Process :
Go to your private repo and click on settings
Then Click on Invite Collaborator
Click Add people
Input username or email who want to be invited
Click Select a collaborator above

How to submit website feedback to GitHub?

I want to make a page on my website containing the information form for the bug they faced while using the website and web application.
Then I want to show those feedback to my private GitHub repository, so that I can keep track of all the bugs and work on fixing them.
Is there any GitHub API for this purpose?
Using the GitHub API (like suggested in the other answer) is a possible solution, but requires you to implement the UI by yourself, call the API with proper authentication etc. etc.
If you want a simpler solution with less work for you, you could point your users directly from your website to your GitHub issue tracker.
Unfortunately, GitHub doesn't support private repositories with public issues. Their official solution for this problem is to
create a second (public) repo and use this just to host the public issues.
If changing your hosting provider is an option for you, you could migrate your project to Bitbucket.
They offer unlimited private repos for free if you have max. five users, and it's possible to have a private repo with a public issue tracker.
Quote from the last link:
Users with administrative rights on a repository can set a Bitbucket
Cloud issue tracker as private or public. When your tracker is
public, anyone can view, create, and comment on issues it contains.
This includes people who land on the website but who do not have a
Bitbucket account. The system asks these users to verify they are
people with a CAPTCHA.
You can set your Bitbucket repository, wiki,
and issue tracker as private or public, independently of each other.
For example, you can hide your code from the world by setting your
repository as private, but let people see your documentation and
issues by marking your wiki and issue tracker as public. Or you could
set your repository and wiki as public but keep your issue tracker
private. You can change any of these settings from private to public,
or public to private, at any time.
GitHub does have an API and one if its end-points is for creating bugs:
https://developer.github.com/v3/issues/
Well, https://github.com/tan-tan-kanarek/github-php-client this worked like a charm for me. In my scenario, I was working in phalcon framework and I used this API to submit issue to a private GitHub repository.
Authentication is pretty simple in this API .

Cannot create an organization-owned private repository when logged in to my personal account on Github Desktop

My personal GitHub account is a member of an organization account which can create private repositories, and of which I am also an owner (but with a different username). I am trying to create a private repo while logged in from GitHub Desktop while logged in to my personal account. However, the private repository option is disabled, even after I choose the organization as the owner, as shown below.
So I have to log in to the organization account before the private option is enabled.
I can create a private repo normally from a browser, however.
Other following operations (e.g. commits) seem to be fine once I get the write permission.
So do I miss a step here? Or is this intentionally disabled in GitHub desktop?
Considering organizations only proposes private repos under a paid plan, maybe your personal account is not associated with a private account, while your other account owner of the organization is.
The web interface might have (on GitHub side) all the information to link the two accounts, but GitHub Desktop might not (locally) have that same information and might lack the API to query it.

Only few of my GitHub organizations are shown in my public GitHub profile

I have created four organizations, but when a non-logged in user access my profile, he/she can see only one of them. Why?
Is there any difference between GitHub organizations? How to make other organizations public and how to make them appear in my GitHub profile.
As in case of GitHub accounts, all organizations are public (but may have private repositories). But, even being part of such public organization doesn't automatically mean, that your presence is public.
In fact, it isn't. By default, GitHub assumes, that you may don't want to share with others the fact, that you're part of this or that GitHub organization. And that is why, by default organization icon does not appear in your public profile.
To change this, go to organization page and click on People in the right top box or navigate directly to:
https://github.com/orgs/[orgname]/people
Find yourself on the list of organization's members, click Private in the fifth column and change that to Public. Changes are reflected immediately.
Menu, that appears after clicking Private or Public, describes which state means what.

See Repositories where I am Collaborator

I am a collaborator on a private repo, but it doesn't show up under my repositories. I also cannot see it on the other user's repository listing because it is private. I have confirmed that I am able to push/pull to the repo. Is there a way to access this repository using Github without typing in the full URL ?
You can see the repositories where you're a collaborator. To do this, head to the Repositories section of your account's settings (https://github.com/settings/repositories).
There should be a Leave action button aside each repository you're a collaborator on.
Even though it won't show up in YOUR repositories, it should appear on your github dashboard (click the github logo), on the bottom right. There should be a list that has buttons at the top to filter all, public, and private repos. Try clicking the private button and it should be there.
Note that if you have opted in to the new dashboard, the above doesn't apply, but you can see the repositories (owner and collaborator) on the left..
A simpler place (as per today) to find private repositories you are collaborating on is to go to https://github.com/ (do not include your username, but make sure you are already logged in). On the left hand side, you can find a search interface or click "show more" to see them all.
It's weird that as per today, if you try to do this from the Repositories you won't find them.