Skip to content

Commit

Permalink
fix: context.payload.issue
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 17, 2020
1 parent a1db828 commit 6a15b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/src/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {md2text, removeSymbols} from './preprocess';

export async function suggest(inps: Inputs): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const body = `${(context.issue as any).body}`;
const body = `${(context.payload.issue as any).body}`;
const githubAPI = new GitHubAPI(inps.GithubToken, context.repo.owner, context.repo.repo);
await githubAPI.createComment(removeSymbols(md2text(body)));
}

0 comments on commit 6a15b4b

Please sign in to comment.