Posts

Showing posts from October, 2022

Webhooks : With Events

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Link : https://docs.github.com/en/developers/webhooks-and-events/webhooks/about-webhooks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  All credits to the creator of this youtube link  

GitHub : Webhooks Events and Payloads

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Link: https://docs.github.com/en/developers/webhooks-and-events/webhooks/about-webhooks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  How to set Event Payloads :   Getting Started With Github Webhooks  

GitHub -- Using CURL

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  CURL : - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   curl --request GET \ --url "https://api.github.com/octocat" \ --header "Authorization: Bearer YOUR-TOKEN"     curl --request GET \ --url "https://api.github.com/repos/octocat/Spoon-Knife/issues?per_page=2&sort=updated&direction=asc" \ --header "Accept: application/vnd.github+json" \ --header "Authorization: Bearer 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"   [   {     "url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/113",     "repository_url": "https://api.github.com/repos/octocat/Spoon-Knife",     "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/113/labels{/name}",     "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/113/comments...

GitHub-API -CLI

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  gh commands  https://cli.github.com/manual/  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  How to Use GitHub CLI : https://www.youtube.com/watch?v=BRAG1Kj4-Ss   Authenticate  with GitHub   [root@cmptest01-cc github-cli]# gh auth login ? What account do you want to log into? GitHub.com ? You're already logged into github.com. Do you want to re-authenticate? Yes ? What is your preferred protocol for Git operations? HTTPS ? How would you like to authenticate GitHub CLI? Login with a web browser ! First copy your one-time code: 7E8D-5D9A Press Enter to open github.com in your browser... ! Failed opening a web browser at https://github.com/login/device   exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH   Please try entering the URL in your browser manually ✓ Authentication complete. - gh config set...

GitHub API, How to get data from a repo inside the terminal

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ https://www.youtube.com/watch?v=2C1dqXXAii0  How to use GitHub REST API for Beginners ? https://www.youtube.com/watch?v=OvfLavRD1Os&t=132s Authentication  [root@cmptest01-cc github-cli]# gh auth login ? What account do you want to log into? GitHub.com ? You're already logged into github.com. Do you want to re-authenticate? Yes ? What is your preferred protocol for Git operations? HTTPS ? How would you like to authenticate GitHub CLI? Login with a web browser ! First copy your one-time code: 7E8D-5D9A Press Enter to open github.com in your browser... ! Failed opening a web browser at https://github.com/login/device   exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH   Please try entering the URL in your browser manually ✓ Authentication complete. - gh config set -h...