Skip to content

Commit

Permalink
docs: improve message for users, to let their required actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Sep 18, 2018
1 parent bc20f25 commit 0495f5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ module.exports = (app: Application) => {
const config = await context.config("config.yml");
if (config === null) {
context.github.issues.createComment(context.issue({
body: "rtd-bot is activated, but no .github/config.yml found in this repository.",
body:
"The rtd-bot is activated, but no .github/config.yml found in this repository.\n"
+ "Make sure that you have it in your default branch.",
}));
return;
}
if (config.rtd.project === "") {
context.github.issues.createComment(context.issue({
body:
"rtd-bot is activated, but .github/config.yml does not have necessary configuration: "
+ JSON.stringify(config),
"The rtd-bot is activated, but .github/config.yml does not have necessary configuration.\n"
+ "Make sure that you have it in your default branch.",
}));
return;
}
Expand Down

0 comments on commit 0495f5c

Please sign in to comment.