Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Commit f751a50

Browse files
committed
fix(package): changed repo name, changed npm package name, updated examples
changed repository name and npm package name to github-label-sync providing single purpose functionality, asana will have similar methods and work with promises but a 3rd global cli package will supersede these 2
1 parent 75aadd6 commit f751a50

10 files changed

Lines changed: 37 additions & 41 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# :electric_plug::package: asana-github-tag-sync
1+
# :electric_plug::package: github-label-sync
22

33
**open source project management setup**
44

55
> **create .issuesrc json containing pairs of label/colour**
66
7-
> **import repo labels and asana tags from .issuesrc**
7+
> **import repo labels from .issuesrc**
88
99
> **add .issuesrc to version control**
1010
11-
[![current version](https://img.shields.io/npm/v/asana-github-tag-sync.svg?style=flat-square)](https://www.npmjs.com/package/github-asana-tag-sync) [![current version](https://img.shields.io/node/v/asana-github-tag-sync.svg?style=flat-square)](https://www.npmjs.com/package/github-asana-tag-sync) [![Dependency Status](https://david-dm.org/superleap/asana-github-tag-sync.svg)](https://david-dm.org/superleap/asana-github-tag-sync) [![devDependency Status](https://david-dm.org/superleap/asana-github-tag-sync/dev-status.svg)](https://david-dm.org/superleap/asana-github-tag-sync#info=devDependencies)
11+
[![current version](https://img.shields.io/npm/v/github-label-sync.svg?style=flat-square)](https://www.npmjs.com/package/github-asana-tag-sync) [![current version](https://img.shields.io/node/v/github-label-sync.svg?style=flat-square)](https://www.npmjs.com/package/github-asana-tag-sync) [![Dependency Status](https://david-dm.org/superleap/github-label-sync.svg)](https://david-dm.org/superleap/github-label-sync) [![devDependency Status](https://david-dm.org/superleap/github-label-sync/dev-status.svg)](https://david-dm.org/superleap/github-label-sync#info=devDependencies)
1212

13-
[![Build Status](http://img.shields.io/travis/superleap/asana-github-tag-sync.svg?style=flat-square)](https://travis-ci.org/superleap/asana-github-tag-sync) [![GitHub issues](https://img.shields.io/github/issues/superleap/asana-github-tag-sync.svg)](https://github.com/superleap/asana-github-tag-sync/issues)
13+
[![Build Status](http://img.shields.io/travis/superleap/github-label-sync.svg?style=flat-square)](https://travis-ci.org/superleap/github-label-sync) [![GitHub issues](https://img.shields.io/github/issues/superleap/github-label-sync.svg)](https://github.com/superleap/github-label-sync/issues)
1414

15-
[![License](http://img.shields.io/:license-BSD2-blue.svg?style=flat-square)](https://opensource.org/licenses/BSD-2-Clause) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![Join the chat at https://gitter.im/superleap/asana-github-tag-sync](https://badges.gitter.im/superleap/asana-github-tag-sync.svg)](https://gitter.im/superleap/asana-github-tag-sync?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
15+
[![License](http://img.shields.io/:license-BSD2-blue.svg?style=flat-square)](https://opensource.org/licenses/BSD-2-Clause) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![Join the chat at https://gitter.im/superleap/github-label-sync](https://badges.gitter.im/superleap/github-label-sync.svg)](https://gitter.im/superleap/github-label-sync?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1616

1717
## Installation
1818

1919
```
20-
npm i -D asana-github-tag-sync
20+
npm i -D github-label-sync
2121
```
2222

2323
## Usage
2424

2525
Before you can use this module you have to require it in your script:
2626

2727
```
28-
require('asana-github-tag-sync')
28+
require('github-label-sync');
2929
```
3030

3131
## License

examples/createLabel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
33
let labels = require('./config/labels');
4-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
4+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
55

6-
githubSync.createLabel(labels[0]).then((response) => {
6+
githubLabelSync.createLabel(labels[0]).then((response) => {
77
console.log(response);
8-
console.log(githubSync.createdLabels);
8+
console.log(githubLabelSync.createdLabels);
99
});

examples/createLabels.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
33
let labels = require('./config/labels');
4-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
4+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
55

6-
githubSync.createLabels(labels).then((response) => {
6+
githubLabelSync.createLabels(labels).then((response) => {
77
console.log(response);
8-
console.log(githubSync.createdLabels);
8+
console.log(githubLabelSync.createdLabels);
99
});

examples/deleteLabel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
33
let labels = require('./config/labels');
4-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
4+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
55

6-
githubSync.deleteLabel(labels[0]).then((response) => {
6+
githubLabelSync.deleteLabel(labels[0]).then((response) => {
77
console.log(response);
8-
console.log(githubSync.deletedLabels);
8+
console.log(githubLabelSync.deletedLabels);
99
});

examples/deleteLabels.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
33
let labels = require('./config/labels');
4-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
4+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
55

6-
githubSync.deleteLabels(labels).then((response) => {
6+
githubLabelSync.deleteLabels(labels).then((response) => {
77
console.log(response);
8-
console.log(githubSync.deletedLabels);
8+
console.log(githubLabelSync.deletedLabels);
99
});

examples/getLabels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
3-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
3+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
44

5-
githubSync.getLabels().then((response) => {
5+
githubLabelSync.getLabels().then((response) => {
66
console.log(response);
77
});

examples/importLabels.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
33
let labels = require('./config/labels');
4-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
4+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
55

6-
githubSync.importLabels(labels).then((response) => {
6+
githubLabelSync.importLabels(labels).then((response) => {
77
console.log(response);
8-
console.log(githubSync.createdLabels);
8+
console.log(githubLabelSync.createdLabels);
99
});

examples/purgeLabels.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
let config = require('./config');
22
let {user, repo, token, options} = config.github;
3-
let githubSync = new (require('./../lib/GithubSync'))(options, user, repo, token);
3+
let githubLabelSync = new (require('./../lib/LabelSync'))(options, user, repo, token);
44

5-
githubSync.purgeLabels().then((response) => {
5+
githubLabelSync.purgeLabels().then((response) => {
66
console.log(response);
7-
console.log(githubSync.deletedLabels);
7+
console.log(githubLabelSync.deletedLabels);
88
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GithubSync {
2929
* });
3030
* });
3131
* let githubSync = new (require('./lib/GithubSync'))(options, user, repo, token);
32-
* @param {Object} options - GitHub
32+
* @param {Object} options - GitHubApi connect options
3333
* @param {string} user - GitHub repository user
3434
* @param {string} repo - GitHub repository name
3535
* @param {string} token - GitHub personal access token

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "asana-github-tag-sync",
3-
"description": "Small tool used to create identical github issue labels and asana issue tags",
2+
"name": "github-label-sync",
3+
"description": "Small tool used to create identical github issue labels",
44
"main": "",
55
"engines": {
66
"node": ">=0.12.0"
@@ -11,13 +11,9 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/superleap/asana-github-tag-sync.git"
14+
"url": "https://github.com/superleap/github-label-sync.git"
1515
},
1616
"keywords": [
17-
"asana",
18-
"asana issues",
19-
"asana issue tags",
20-
"asana tags",
2117
"github",
2218
"github issues",
2319
"github issue labels",
@@ -30,9 +26,13 @@
3026
"author": "TED Vortex <ted.vortex@gmail.com>",
3127
"license": "BSD-2-Clause",
3228
"bugs": {
33-
"url": "https://github.com/superleap/asana-github-tag-sync/issues"
29+
"url": "https://github.com/superleap/github-label-sync/issues"
30+
},
31+
"homepage": "https://github.com/superleap/github-label-sync#readme",
32+
"dependencies": {
33+
"bluebird": "^3.4.1",
34+
"github": "^2.1.0"
3435
},
35-
"homepage": "https://github.com/superleap/asana-github-tag-sync#readme",
3636
"devDependencies": {
3737
"commitizen": "^2.8.2",
3838
"cz-conventional-changelog": "^1.1.6",
@@ -42,9 +42,5 @@
4242
"commitizen": {
4343
"path": "./node_modules/cz-conventional-changelog"
4444
}
45-
},
46-
"dependencies": {
47-
"bluebird": "^3.4.1",
48-
"github": "^2.1.0"
4945
}
5046
}

0 commit comments

Comments
 (0)