4º. 1er cuatrimestre. Itinerario de Sistemas de la Información. Grado en Ingeniería Informática. ULL
Using gh api
and gh alias --shell
add to gh
an extension gh create-repo
that creates the repo inside the given organization:
$ gh create-repo tuturepo ULL-ESIT-PL-2021
$ gh repo view ULL-ESIT-PL-2021/tuturepo -w
Use the GitHub REST API
The same but with delete:
$ gh delete-repo tuturepo ULL-ESIT-PL-2021
Then, after issuing the command and refreshing the former page we get:
Escriba un alias que liste todas los nombres y las urls de las organizaciones a las que el usuario pertenece:
➜ async-await-crguezl git:(main) gh orgs-list | grep -i 'dmsi'
ULL-ESIT-DMSI-1920
https://api.github.com/orgs/ULL-ESIT-DMSI-1920
ULL-ESIT-DMSI-2021
https://api.github.com/orgs/ULL-ESIT-DMSI-2021
ULL-ESIT-DMSI-2121
https://api.github.com/orgs/ULL-ESIT-DMSI-2121
--paginate
`Write and publish a gh extension using preferably Node.JS. Choose your own idea. Choose the functionality you want to implement.
It may be:
gh-repo-delete [org/repo]
that deletes the specified remote repo.gh-repo-rename org/reponame newname
changes the name of the repo to org/newname
. See https://docs.github.com/en/rest/reference/repos#update-a-repositoryInstructions about the delivery:
Create a repo for your extension in a repo org/gh-my-extension-name
inside the classroom organization. Add that repo as a git submodule
to the repo associated to this lab assignment. Just leave the link to the assignment and extensions repos in the campus virtual
gh-extension
: gh-extension list