Skip to content

Instantly share code, notes, and snippets.

View DiddiLeija's full-sized avatar

Diego Ramirez DiddiLeija

View GitHub Profile
@DiddiLeija
DiddiLeija / get_repositories.py
Last active February 8, 2023 03:08
Python function to get the GitHub repos by org
# Based in an example from https://copilot.github.com/
import urllib.request, json
def get_repositories(org):
"""List all names of GitHub repositories for an org."""
url = 'https://api.github.com/orgs/' + org + '/repos'
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
@DiddiLeija
DiddiLeija / post_output_markdown.rst
Last active February 8, 2023 03:21
A template of how the output must be reported using Markdown.

An example to post output using Markdown, specially for GitHub issues and PRs.

Guess what, my `pip install` command is going as expected!

```
C:\Users\Diego Ramirez\Documents>pip install twine
Requirement already satisfied: twine in c:\users\diego ramirez\appdata\local\programs\python\python39\lib\site-packages (3.4.2)
Requirement already satisfied: colorama>=0.4.3 in c:\users\diego ramirez\appdata\local\programs\python\python39\lib\site-packages (from twine) (0.4.4)