Skip to content

Commit

Permalink
fix: use proper payload instead of missing issue payload
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Sep 10, 2018
1 parent f999fe5 commit a7dfb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = (app: Application) => {
log.debug(`Reporting document URL to GitHub PR page of ${branch} branch in ${project}.`);
const language = config.rtd.language || "en";
const url = `https://${project}.readthedocs.io/${language}/${branch}/`;
const body = context.payload.issue.body + `\n\n<!-- updated by rtd-bot -->\nURL of RTD document: ${url}`;
const body = context.payload.pull_request.body + `\n\n<!-- updated by rtd-bot -->\nURL of RTD document: ${url}`;
context.github.issues.edit(context.issue({
body,
}));
Expand Down

0 comments on commit a7dfb6b

Please sign in to comment.