Skip to content

Commit e33db67

Browse files
committed
Removed dummy unit test file and added silent switch build test step
1 parent 481d6ac commit e33db67

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

git/gitTrackedDiff.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ const { exec } = require("child_process");
22
const util = require("util");
33
const execPromosified = util.promisify(exec);
44
const fetchRepoPath = require("../global/fetchGitRepoPath");
5+
const { getStagedFiles } = require("./gitGetStagedFilesAPI");
56

67
async function gitTrackedDiff(repoId) {
78
const repoPath = fetchRepoPath.getRepoPath(repoId);
89

910
var responseObject = {
10-
gitChangedFiles: await getGitDiff(repoPath).then((res) => res),
11-
gitUntrackedFiles: await getUntrackedFiles(repoPath).then((res) => res),
11+
gitChangedFiles: await getGitDiff(repoPath),
12+
gitUntrackedFiles: await getUntrackedFiles(repoPath),
13+
gitStagedFiles: await getStagedFiles(repoId),
1214
};
1315

1416
console.log(responseObject);

global/gqlGlobalAPISchema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const globalAPISchema = new buildSchema(
7979
type gitChangeResults{
8080
gitUntrackedFiles: [String]
8181
gitChangedFiles: [String]
82+
gitStagedFiles: [String]
8283
}
8384
8485
type gitFileLineChangeResults{

0 commit comments

Comments
 (0)