1.6.12 • Published 3 months ago

jwz v1.6.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

repository license version

Function

GitHub

GitHub buildRepos

  • usage
/*
    @param org = String
    @param repos = Array
    @param vis = String
    @param token = String
*/
const buildRepos = require('jwz/github/build');

const org = 'your-org-name';
var repos = ['your-repoA', 'your-repoB'];
var vis = 'public';
const token = 'your-token';

const res = await buildRepos(org, repos, vis, token);

console.log(res);

GitHub deleteRepos

  • usage
/*
    @param org = String
    @param repos = Array
    @param token = String
*/
const deleteRepos = require('jwz/github/delete');

const org = 'your-org-name';
var repos = ['your-repoA', 'your-repoB'];
const token = 'your-token';

deleteRepos(org, repos, token)

GitHub inviteCollaboratorsToRepos

  • usage
/*
    @param org = String
    @param repos = Array
    @param collaborators = Two dimension array
    @param token = String
*/
const inviteCollaboratorsToRepos = require('jwz/github/invite');

const org = 'your-org-name';
var repos = ['your-repoA', 'your-repoB'];
var collaborators = [['collaboratorA', 'collaboratorB'], ['collaboratorC', 'collaboratorD']]
const token = 'your-token';

inviteCollaboratorsToRepos(org, repos, collaborators, token);
  • note
    • when code is running it will have output of result

GitHub removeCollaboratorsFromRepos

  • usage
/*
    @param org = String
    @param repos = Array
    @param collaborators = Two dimension array
    @param token = String
*/
const removeCollaboratorsFromRepos = require('jwz/github/remove');

const org = 'your-org-name';
var repos = ['your-repoA', 'your-repoB'];
var collaborators = [['collaboratorA', 'collaboratorB'], ['collaboratorC', 'collaboratorD']]
const token = 'your-token';

removeCollaboratorsFromRepos(org, repos, collaborators, token);

GitHub getReleaseVersion

  • usage
/* 
    @param org = String
    @param repo = String
    @param version = String
*/
const getReleaseVersion = require('jwz/github/release');

const org = 'org-name';
const repo = 'repo-name';
const version = 'version'

const release = await getReleaseVersion(org, repo, version);

console.log(`Release Name: ${release.releaseName}`);
console.log(`Release Tag: ${release.releaseTag}`);
console.log(`Release URL: ${release.releaseURL}`);
  • note
    • return releaseName releaseTag releaseURL
    • This is for public organization repository
1.6.12

3 months ago

1.6.11

5 months ago

1.6.4

5 months ago

1.6.9

5 months ago

1.6.8

5 months ago

1.6.10

5 months ago

1.6.7

5 months ago

1.6.6

5 months ago

1.6.5

5 months ago

1.6.3

5 months ago

1.6.2

5 months ago

1.6.1

5 months ago

1.5.5

5 months ago

1.5.4

5 months ago

1.5.3

5 months ago

1.5.2

5 months ago

1.6.0

5 months ago

1.5.1

5 months ago

1.5.0

5 months ago

1.5.7

5 months ago

1.5.6

5 months ago

1.3.2

5 months ago

1.4.0

5 months ago

1.3.1

5 months ago

1.3.0

5 months ago

1.2.10

5 months ago

1.2.9

5 months ago

1.2.8

5 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago