@@ -106,7 +106,7 @@ func logPathByRunID(rootDir, runID string) string {
106106
107107func checkoutAndRun (ctx context.Context , config * conf.Config , payload * github.PullRequestEvent , token string ) (output string , runID string , err error ) {
108108 tmpPath := fmt .Sprintf ("tmp/repos/%s-%d" , * payload .PullRequest .NodeID , time .Now ().Unix ())
109- err = os .MkdirAll (path .Dir (tmpPath ), os .ModeDir )
109+ err = os .MkdirAll (path .Dir (tmpPath ), os .ModePerm )
110110 if err != nil {
111111 return "" , "" , errors .Wrap (err , "create temp directory" )
112112 }
@@ -147,7 +147,15 @@ func checkoutAndRun(ctx context.Context, config *conf.Config, payload *github.Pu
147147 return "" , id .String (), errors .Wrap (err , "checkout pull request" )
148148 }
149149
150- output , err = codenotify (ctx , & buf , config .Codenotify .BinPath , tmpPath , * payload .PullRequest .Base .SHA , * payload .PullRequest .Head .SHA )
150+ output , err = codenotify (
151+ ctx ,
152+ & buf ,
153+ config .Codenotify .BinPath ,
154+ tmpPath ,
155+ * payload .PullRequest .Base .SHA ,
156+ * payload .PullRequest .Head .SHA ,
157+ * payload .PullRequest .User .Login ,
158+ )
151159 if err != nil {
152160 return "" , id .String (), errors .Wrap (err , "run Codenotify" )
153161 }
0 commit comments