Skip to content

Commit 47dfeba

Browse files
committed
lib: move queries under lib
1 parent 74e257c commit 47dfeba

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed

lib/pr_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { getCollaborators } = require('./collaborators');
44
const { ReviewAnalyzer } = require('./reviews');
55

6-
// queries/*.gql file names
6+
// lib/queries/*.gql file names
77
const PR_QUERY = 'PR';
88
const REVIEWS_QUERY = 'Reviews';
99
const COMMENTS_QUERY = 'PRComments';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Request {
1010
}
1111

1212
loadQuery(file) {
13-
const filePath = path.resolve(__dirname, '..', 'queries', `${file}.gql`);
13+
const filePath = path.resolve(__dirname, 'queries', `${file}.gql`);
1414
return fs.readFileSync(filePath, 'utf8');
1515
}
1616

0 commit comments

Comments
 (0)