sofastack-incubator / rebot-test

0 stars 2 forks source link

Spring sleep is not aware #8

Open ujjboy opened 5 years ago

ujjboy commented 5 years ago

发现如下问题:

   String body = FastJsonUtils.getString(json, "issue/body");
                String newBody = translationService.translate(body, "en");
                if (!body.equals(newBody)) {
                    Issue issue = new Issue();
                    issue.setOwner(owner);
                    issue.setRepo(repo);
                    issue.setNumer(number);

                    Comment comment = new Comment();
                    String content = "Hi @" + userName + ", we detect non-English characters in the issue. This comment is an auto translation by [@sofastack-robot](https://github.com/apps/sofastack-bot) to help other users to understand this issue.  \n" +
                            "> ***We encourage you to describe your issue in English which is more friendly to other users.***\n" +
                            n