Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Flujo de trabajo para construir el código al hacer push o pull_request en la rama desarrollo
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Integración continua con Gradle (gradlew)

on:
push:
branches: [ desarrollo ]
pull_request:
branches: [ desarrollo ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Dar permisos a gradlew
run: chmod +x gradlew
- name: Construir el código con gradlew
run: ./gradlew build
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ignore Gradle project-specific cache directory
.gradle
#No quiero subir el fichero de configuraci�n de gradle, porque contiene secretos
#No quiero subir el fichero de configuraci�n de gradle, porque contiene secretos
gradle.properties
#Ignoro los directorios que crea el IDE en el espacio de trabajo, que no se suba a git
.settings
Expand Down Expand Up @@ -38,6 +38,7 @@ gradle.properties



#las pruebas har�n generar informes excel, que no quiero subir al repositorio remoto
#las pruebas har�n generar informes excel, que no quiero subir al repositorio remoto
*.xls
/javadoc.xml
.DS_Store
1 change: 1 addition & 0 deletions DEVELOPERS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Izabela Gabriela Kruszyn
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Librería con capacidades que den soporte al desarrollo de aplicaciones para la

## [Página en gitHub Pages](https://mit-fs.github.io/Audit4Improve-API/)

Soy el usuario WQD1783
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies {

// https://mvnrepository.com/artifact/org.kohsuke/github-api
//JAVADOC: https://github-api.kohsuke.org/apidocs/index.html
implementation group: 'org.kohsuke', name: 'github-api', version: '1.301'
api 'org.kohsuke:github-api:1.301'
//Para la persistencia de informes usaremos la api apachepoi
// https://mvnrepository.com/artifact/org.apache.poi/poi
//JAVADOC: https://poi.apache.org/apidocs/5.0/
Expand All @@ -87,9 +87,9 @@ dependencies {
//JAVADOC: https://javadoc.io/doc/org.mockito/mockito-junit-jupiter/latest/index.html
testImplementation 'org.mockito:mockito-junit-jupiter:4.3.1'

testImplementation(platform('org.junit:junit-bom:5.8.2'))
//JAVADOC: https://www.javadoc.io/doc/org.junit.jupiter/junit-jupiter-api/latest/index.html
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation(platform('org.junit:junit-bom:5.8.2'))
//JAVADOC: https://www.javadoc.io/doc/org.junit.jupiter/junit-jupiter-api/latest/index.html
testImplementation('org.junit.jupiter:junit-jupiter')

}

Expand Down
20 changes: 10 additions & 10 deletions src/test/java/us/muit/fs/a4i/test/control/SupervisorControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import java.util.logging.*;

/**
* @author Isabel Rom�n Mart�nez
* @author Isabel Rom�n Mart�nez
* @version 0.0
* Esta clase se crea para poder probar algunas de las capacidades que ofrece la api github
* Ser� descartada posteriormente
* No usa Junit, sino que crea un main, no tiene verificaciones autom�ticas, la automatizaci�n no es posible
* Ser� descartada posteriormente
* No usa Junit, sino que crea un main, no tiene verificaciones autom�ticas, la automatizaci�n no es posible
*
*/
public class SupervisorControl {
Expand All @@ -28,7 +28,7 @@ public static void main(String[] args) {
PagedIterable<GHRepository> myOwnRepos=myinfo.listRepositories(10, GHMyself.RepositoryListFilter.OWNER);
int count=1;
for(GHRepository repo:myOwnRepos.toList()) {
System.out.println("Nombre de mi repositorio n�mero "+count+" "+repo.getFullName());
System.out.println("Nombre de mi repositorio numero "+count+" "+repo.getFullName());
List<GHProject> proyectos=repo.listProjects().toList();
int i=1;
for(GHProject project:proyectos){
Expand All @@ -47,30 +47,30 @@ public static void main(String[] args) {
//Iterator<GHOrganization> iteradorOrganizaciones = misOrganizaciones.iterator();
int i=1;
for(GHOrganization organizacion: misOrganizaciones) {
System.out.println(i+" Organizaci�n "+organizacion.getId()+" : "+organizacion);
System.out.println(i+" Organizacion "+organizacion.getId()+" : "+organizacion);
PagedIterable<GHRepository> repos=organizacion.listRepositories();
System.out.println(repos);
i++;
}
/*
log.info("Mis datos "+myinfo);
log.info("Un repositorio "+unrepo);
log.info("N�mero de repositorios "+myrepos.toList().size());
log.info("N�mero de repositorios "+myrepos.toList().size());
log.info("Detalles de mis repositorios "+myrepos.toList());
*/
GHOrganization unaOrg = github.getOrganization("MIT-FS");
// PagedIterable<GHRepository> repos=unaOrg.listRepositories();
System.out.println("Recupero la organizaci�n "+unaOrg.getId());
System.out.println("Recupero la organizacion "+unaOrg.getId());
GHRepository githubrepo=github.getRepository("hub4j/github-api");
System.out.println("Este repositorio es de "+githubrepo.getOwnerName()+" Y su descripci�n es "+githubrepo.getDescription());
System.out.println("Este repositorio es de "+githubrepo.getOwnerName()+" Y su descripcion es "+githubrepo.getDescription());
GHRepositoryStatistics estadisticas=githubrepo.getStatistics();
log.info("Estadisticas recogidas");

// List<GHProject> proyectos=githubrepo.listProjects().toList();
PagedIterable<GHRepositoryStatistics.ContributorStats> estDes=estadisticas.getContributorStats();
log.info("Desarrolladores recogidos");
List<GHRepositoryStatistics.ContributorStats> listaDesarrolladores=estDes.toList();
System.out.println("N�mero de desarrolladores "+listaDesarrolladores.size());
System.out.println("Numero de desarrolladores "+listaDesarrolladores.size());

i=1;

Expand All @@ -83,7 +83,7 @@ public static void main(String[] args) {
i++;
}
System.out.println("Datos del usuario rtyley "+mapaEstadisticasUsuario.get("rtyley"));
System.out.println("Semanas "+mapaEstadisticasUsuario.get("rtyley").getWeeks());
// System.out.println("Semanas "+mapaEstadisticasUsuario.get("rtyley").getWeeks());

/*for(GHProject project:proyectos){
System.out.println("Con proyecto "+i+" llamado "+project.getName()+" con id "+project.getId());
Expand Down