updated from lint
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = {
|
||||
const child = spawn('aws', ['logs', 'tail', `${logGroup}`, '--follow', '--format', 'short']);
|
||||
child.stdout.setEncoding('utf8');
|
||||
child.stdout.on('data', function(data) {
|
||||
//Here is where the output goes
|
||||
// Here is where the output goes
|
||||
console.log(data);
|
||||
});
|
||||
child.stderr.on('data', (data) => {
|
||||
|
||||
@@ -34,11 +34,11 @@ module.exports = {
|
||||
initial: 5,
|
||||
choices: issueOptions
|
||||
});
|
||||
const issue_response = await promptIssues.run();
|
||||
const issue_number = issue_response.split('-')[0];
|
||||
const repo = issue_response.split('-')[1];
|
||||
const issueResponse = await promptIssues.run();
|
||||
const issueNumber = issueResponse.split('-')[0];
|
||||
const repo = issueResponse.split('-')[1];
|
||||
|
||||
const issueData = await getIssueFromRepo(toolbox, config.gh_token, repo, issue_number);
|
||||
const issueData = await getIssueFromRepo(toolbox, config.gh_token, repo, issueNumber);
|
||||
const branchName = issueToBranchName(issueData);
|
||||
|
||||
if (await confirmMessage(`Create new branch ${chalk.yellow(branchName)} from origin/master?`)) {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import chalk = require('chalk');
|
||||
const os = require('os');
|
||||
var snakeCase = require('lodash.snakecase');
|
||||
const { AutoComplete, Confirm, Input } = require('enquirer');
|
||||
const snakeCase = require('lodash.snakecase');
|
||||
const { Confirm } = require('enquirer');
|
||||
|
||||
export const defaultMenuSettings = {
|
||||
showHelp: false
|
||||
|
||||
@@ -95,14 +95,14 @@ export const getOpenIssuesFromRepo = async (toolbox, token, repo) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const getIssueFromRepo = async (toolbox, token, repo, issue_number) => {
|
||||
export const getIssueFromRepo = async (toolbox, token, repo, issueNumber) => {
|
||||
const { print } = toolbox;
|
||||
const octokit = new Octokit({ auth: token });
|
||||
try {
|
||||
const response = await octokit.request("GET /repos/{owner}/{repo}/issues/{issue_number}", {
|
||||
owner: "Photowall",
|
||||
repo: repo,
|
||||
issue_number: issue_number,
|
||||
issue_number: issueNumber,
|
||||
});
|
||||
if (response.status === 200) {
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user