Github Webhooks for Public Repo Creation - github

Is it possible to set up a Webhook to notify me every time a new repo is created on the whole public environment of Github (not limited to an specific organisation)?

No, not possible currently. If you'd like to share your use-case for this, please get in touch with us: https://github.com/contact

Related

Is it possible to put a comment on a code in github public repository

A public Github repository belongs to one of my fellow developers. I need to put comments on certain areas of code. I have done this previously using pull requests
Is there a way to do it without opening a pull request and directly commenting on the code?
I don't see an option as of now. Not sure if the other developer needs to add me or grant certain permissions

Is it possible to view private events within a team repo?

Been playing around with the Github v3 API.
I was wondering if it was possible to see private events within a team repository I belong to if I am authenticated.
I see on the docs that with the /users/:username/events endpoint, it'll only show your own private events. Is there a way around this?
Thanks!
I think if you are authenticated the GET /repos/:owner/:repo/events endpoint will do what you expect - see events associated with a repository.
Documentation: https://developer.github.com/v3/activity/events/#list-repository-events
There are also repository issue events GET /repos/:owner/:repo/issues/events which are a slightly different format.
Documentation: https://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository

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 .

GitHub - only allow pull request

I have a public github repo and want to disallow other users to merge into the master branch. They should only be able to create other branches and create pull request. I'm the only one who accept and merge pull requests.
Is this possible with GitHub and if yes, how can I set this up?
Kind regards
By design, all public repositories are read-only when you create them. If you're a member of an organization, you can provide default permissions to do otherwise.
Long and short of it, GitHub does what you wish it to by design.

Submitting issues to a public GitHub project anonymously

It looks like it is not possible to submit issues (ie bug reports and feature requests) to a public GitHub repository without logging-in to GitHub first.
Does anyone know of any way to enable or circumvent this?
Edit: I'm looking to activate this on a specific repository that I control. I'm not looking for a way to comment anonymously on other public repos.