@@ -8,8 +8,7 @@ module.exports = (robot) => {
8
8
9
9
let username = context . payload . sender . login
10
10
, repositoryName = context . payload . repository . full_name ;
11
- console . log ( "**************************" )
12
- console . log ( context )
11
+
13
12
if ( username !== "the-welcome-bot[bot]" )
14
13
checkUser ( context , username , repositoryName , "issueOpen" )
15
14
@@ -29,36 +28,27 @@ module.exports = (robot) => {
29
28
30
29
let username = context . payload . sender . login
31
30
, repositoryName = context . payload . repository . full_name ;
32
- console . log ( "**************************" )
33
- console . log ( context )
31
+
34
32
if ( username !== "the-welcome-bot[bot]" )
35
33
checkUser ( context , username , repositoryName , "prOpen" )
36
34
37
35
} )
38
36
39
37
function checkUser ( context , username , repositoryName , eventType ) {
40
- console . log ( "**************************" )
41
38
42
- console . log ( context )
43
39
db . User . findOne ( {
44
40
where : {
45
41
username : username ,
46
42
repositoryName : repositoryName
47
43
}
48
44
} ) . then ( function ( user ) {
49
-
50
45
if ( user === null ) {
51
46
db . User . create ( {
52
47
username : username ,
53
48
repositoryName : repositoryName
54
49
} ) . then ( async user => {
55
50
try {
56
- console . log ( "**************************" )
57
- console . log ( context )
58
- console . log ( "**************************" )
59
-
60
51
const config = await context . config ( 'config.yml' ) ;
61
- console . log ( config )
62
52
let message ;
63
53
if ( config ) {
64
54
switch ( eventType ) {
0 commit comments