github
#Tooling
#Code Reviews
-
butuzov/deadlinks#76 to issue
-
@butuzov user itself
-
suggestions
code goes here.
#Search
Keyword | Description | Example |
---|---|---|
path:pdf |
In Path | path:docker-compose.yaml kafka |
#Searching for alive people
Original Code posted by Denis Dinkevich in telegram sourcing comunity.
#Legacy
Most of tips can be found on official page, API for this still in business - https://api.github.com/search/code?q=
Keyword | Description | Example |
---|---|---|
filename |
Search by Filename | filename:serverless.yml |
in:file |
Search in Files | in:file func main |
in:path |
Search in Path | in:path tips.pdf |
extension:pdf |
Search by Extension | in:path extension:pdf tips |
#!/usr/bin/env python
import requests
url = f"https://api.github.com/search/code?q={q}"
headers = {
'Authorization': f'Token {GH}'
}
requests.request("GET", url, headers=headers)
#Examples
#Usage of GITHUB_TOKEN
git pull https://${{ secrets.GIT_TOKEN }}:x-oauth-basic@github.com/susomejias/portfolio.git master
git init
git remote add origin https://${{ secrets.GIT_TOKEN }}:x-oauth-basic@github.com/$user/$repo.git
git pull
...
git add -A
git commit --allow-empty -m "${DEST_MESSAGE}"
git push -q origin master