Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 9019033

Browse files
author
tensorflow
committed
UI Updates for project management
1 parent 8babd79 commit 9019033

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.gitlab-ci.yml

100755100644
File mode changed.

README.md

100755100644
File mode changed.

config/default.js

100755100644
File mode changed.

package-lock.json

100755100644
File mode changed.

package.json

100755100644
File mode changed.

services/GithubService.js

100755100644
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function updateIssue(ownerId, repo, number, title) {
6161
Joi.attempt({ownerId, repo, number, title}, updateIssue.schema);
6262
const owner = await _getUsernameById(ownerId);
6363
await github.issues.edit({owner, repo, number, title});
64-
logger.debug(`Issue title is updated for issue number ${number}`);
64+
logger.debug(`Github issue title is updated for issue number ${number}`);
6565
}
6666

6767
updateIssue.schema = {
@@ -88,7 +88,7 @@ async function assignUser(ownerId, repo, number, user) {
8888
await _removeAssignees(owner, repo, number, oldAssignees);
8989
}
9090
await github.issues.addAssigneesToIssue({owner, repo, number, assignees: [user]});
91-
logger.debug(`Issue with number ${number} is assigned to ${user}`);
91+
logger.debug(`Github issue with number ${number} is assigned to ${user}`);
9292
}
9393

9494
assignUser.schema = {
@@ -111,7 +111,7 @@ async function removeAssign(ownerId, repo, number, user) {
111111
const owner = await _getUsernameById(ownerId);
112112

113113
await _removeAssignees(owner, repo, number, [user]);
114-
logger.debug(`User ${user} is unassigned from issue number ${number}`);
114+
logger.debug(`Github user ${user} is unassigned from issue number ${number}`);
115115
}
116116

117117
removeAssign.schema = assignUser.schema;
@@ -129,7 +129,7 @@ async function createComment(ownerId, repo, number, body) {
129129
const owner = await _getUsernameById(ownerId);
130130

131131
await github.issues.createComment({owner, repo, number, body});
132-
logger.debug('Comment is added on issue notifying user to assign using Ragnar tool');
132+
logger.debug('Github comment is added on issue notifying user to assign using Ragnar tool');
133133
}
134134

135135
createComment.schema = {

services/GitlabService.js

100755100644
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function _removeAssignees(projectId, issueId, assignees) {
4242
async function createComment(projectId, issueId, body) {
4343
Joi.attempt({projectId, issueId, body}, createComment.schema);
4444
await gitlab.projects.issues.notes.create(projectId, issueId, {body});
45-
logger.debug(`Comment is added on issue with message "${body}"`);
45+
logger.debug(`Gitlab comment is added on issue with message "${body}"`);
4646
}
4747

4848
createComment.schema = {
@@ -60,7 +60,7 @@ createComment.schema = {
6060
async function updateIssue(projectId, issueId, title) {
6161
Joi.attempt({projectId, issueId, title}, updateIssue.schema);
6262
await gitlab.projects.issues.edit(projectId, issueId, {title});
63-
logger.debug(`Issue title is updated for issue number ${issueId}`);
63+
logger.debug(`Gitlab issue title is updated for issue number ${issueId}`);
6464
}
6565

6666
updateIssue.schema = {
@@ -83,7 +83,7 @@ async function assignUser(projectId, issueId, userId) {
8383
await _removeAssignees(projectId, issueId, oldAssignees);
8484
}
8585
await gitlab.projects.issues.edit(projectId, issueId, {assignee_ids: [userId]});
86-
logger.debug(`Issue with number ${issueId} is assigned to ${issueId}`);
86+
logger.debug(`Gitlab issue with number ${issueId} is assigned to ${issueId}`);
8787
}
8888

8989
assignUser.schema = {
@@ -101,7 +101,7 @@ assignUser.schema = {
101101
async function removeAssign(projectId, issueId, userId) {
102102
Joi.attempt({projectId, issueId, userId}, removeAssign.schema);
103103
await _removeAssignees(projectId, issueId, [userId]);
104-
logger.debug(`User ${userId} is unassigned from issue number ${issueId}`);
104+
logger.debug(`Gitlab user ${userId} is unassigned from issue number ${issueId}`);
105105
}
106106

107107
removeAssign.schema = assignUser.schema;

services/IssueService.js

100755100644
File mode changed.

0 commit comments

Comments
 (0)