Atom/RSS feeds on Github Issues?

I just solved this issue for one of my repos and imported GitHub feed items into my drupal site. I had originally created a feed of only commits using the URL convention: https://github.com/ORG/PROJECT/commits/master.atom but I also wanted a feed of GitHub-Issues and updates to Issues. GitHub appears to now support an “everything” feed with the … Read more

Cannot push on Github suddenly

The latest issue I had : remote: error: GH006: Protected branch update failed for refs/heads/master. remote: error: Cannot force-push to this protected branch To https://github.com/org/project.git ! [remote rejected] master -> master (protected branch hook declined) error: failed to push some refs to ‘https://github.com/org/project.git Because I’m admin/owner I was able to go and do the following … Read more

Finding total contributions of a user from GitHub API

Answers for 2019, Use GitHub API V4. First go to GitHub to apply for a token: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line. step 7, scopes select only read:user cUrl curl -H “Authorization: bearer token” -X POST -d ‘{“query”:”query {\n user(login: \”MeiK2333\”) {\n name\n contributionsCollection {\n contributionCalendar {\n colors\n totalContributions\n weeks {\n contributionDays {\n color\n contributionCount\n date\n weekday\n }\n firstDay\n }\n … Read more

How to create a gist on command line

Recently GitHub CLI released. So you can now use it instead. Just install it to your system (https://github.com/cli/cli#installation) The authenticate (it’s pretty simple) gh auth login After you logged in you can simply create a new gist by: gh gist create -d “my test gist” -f some_local_file.txt test_gist For more details you can use help: … Read more

What is GitHub’s public GPG key?

GitHub sets the committer for all commits made using their web interface to the user web-flow. For any given GitHub account, you can add .gpg to its URL to get its public key—so for web-flow, you can find it at https://github.com/web-flow.gpg: —–BEGIN PGP PUBLIC KEY BLOCK—– xsBNBFmUaEEBCACzXTDt6ZnyaVtueZASBzgnAmK13q9Urgch+sKYeIhdymjuMQta x15OklctmrZtqre5kwPUosG3/B2/ikuPYElcHgGPL4uL5Em6S5C/oozfkYzhwRrT SQzvYjsE4I34To4UdE9KA97wrQjGoz2Bx72WDLyWwctD3DKQtYeHXswXXtXwKfjQ 7Fy4+Bf5IPh76dA8NJ6UtjjLIDlKqdxLW4atHe6xWFaJ+XdLUtsAroZcXBeWDCPa buXCDscJcLJRKZVc62gOZXXtPfoHqvUPp3nuLA4YjH9bphbrMWMf810Wxz9JTd3v yWgGqNY0zbBqeZoGv+TuExlRHT8ASGFS9SVDABEBAAHNNUdpdEh1YiAod2ViLWZs b3cgY29tbWl0IHNpZ25pbmcpIDxub3JlcGx5QGdpdGh1Yi5jb20+wsBiBBMBCAAW BQJZlGhBCRBK7hj4Ov3rIwIbAwIZAQAAmQEIACATWFmi2oxlBh3wAsySNCNV4IPf DDMeh6j80WT7cgoX7V7xqJOxrfrqPEthQ3hgHIm7b5MPQlUr2q+UPL22t/I+ESF6 … Read more

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