mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
20 lines
883 B
JavaScript
20 lines
883 B
JavaScript
"use strict";
|
|
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class CopyCat {
|
|
constructor(github, owner, repo) {
|
|
this.github = github;
|
|
this.owner = owner;
|
|
this.repo = repo;
|
|
}
|
|
async run() {
|
|
const issue = await this.github.getIssue();
|
|
console.log(`Mirroring issue \`${issue.title}\` to ${this.owner}/${this.repo}`);
|
|
await this.github.createIssue(this.owner, this.repo, issue.title, issue.body.replace(/@|#|issues/g, '-'));
|
|
}
|
|
}
|
|
exports.CopyCat = CopyCat;
|