Desarrollo y Mantenimiento de Sistemas Informáticos

4º. 1er cuatrimestre. Itinerario de Sistemas de la Información. Grado en Ingeniería Informática. ULL


Organization DMSI org   Github Classroom DMSI class   Campus Virtual DMSI campus   Profesor Casiano   Chat Chat

Descripción de la Práctica gh-cli (REST)

gh alias

gh create-repo

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

gh delete-repo

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:

gh org-list

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

Extension

Write and publish a gh extension using preferably Node.JS. Choose your own idea. Choose the functionality you want to implement.

It may be:

Instructions 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

References