How can I get last commit from GitHub API

It depends on your definition of “last”. for a given branch (like master), GET /repos/:owner/:repo/commits/master is indeed the last (most recent) commit. But you can also consider the last push event: that would represent the last and most recent commit done (on any branch), pushed by a user to this repo.

How do I remove all stale branches from Github?

You can right click on the browser after opening the stale branches and run this in the browser java script console. To delete all the stale branches. i.e) this script automatically clicks to the next page and proceeds to delete stale branches in the next page. async function deleteStaleBranches(delay=500) { var stale_branches = document.querySelectorAll(‘[aria-label=”Delete branch”]’); … Read more

GitHub API: using ‘repo’ scope, but still can’t see private repos

From testing: GETing /users/someusername/repos doesn’t show private repos (even if it’s the user whose oauth access token you’re using). GETing /user/repos show private repos. This isn’t documented in the GitHub API docs at present, I just found out via testing. Thanks to @ivanzuzak for suggesting to look at the endpoint.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)