Skip to content

Commit

Permalink
remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyo43 committed Mar 20, 2024
1 parent d74ac7c commit 51d07c4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
42 changes: 20 additions & 22 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/comments/getCommentContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,5 @@ export async function getCommentContent(

return {
logins,
numberOfComments,
threshold,
};
}
3 changes: 0 additions & 3 deletions src/comments/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ export type Comment = {

export type CommentContent = {
logins: string[];

numberOfComments: number;
threshold: number;
};
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { postComment } from './comments/postComment';
*/
export async function run(): Promise<void> {
try {
const { token, prNumber, threshold, debug } = getOption();
const { token, prNumber, threshold } = getOption();

const octokit = getOctokit(token);
const octokitContext: OctokitContext = {
Expand All @@ -23,7 +23,6 @@ export async function run(): Promise<void> {
octokit,
octokitContext,
threshold,
{ debug },
);

if (commentContent) {
Expand Down

0 comments on commit 51d07c4

Please sign in to comment.