Skip to content

Commit

Permalink
fix: move deprecation checklist markdown file to assets/ (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 21, 2023
1 parent f3b42b1 commit e5b1f33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/deprecation-review-state.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const handler = async (app: Probot) => {
};

const CHECKLIST_COMMENT = fs.readFileSync(
path.join(__dirname, '..', 'src', 'deprecation-checklist.md'),
path.join(__dirname, '..', 'assets', 'deprecation-checklist.md'),
'utf-8',
);

Expand Down
5 changes: 4 additions & 1 deletion src/deprecation-review-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ export async function maybeAddChecklistComment(octokit: Context['octokit'], pr:
owner,
repo,
issue_number: pr.number,
body: fs.readFileSync(path.join(__dirname, 'deprecation-checklist.md'), 'utf-8'),
body: fs.readFileSync(
path.join(__dirname, '..', 'assets', 'deprecation-checklist.md'),
'utf-8',
),
});
}
}
Expand Down

0 comments on commit e5b1f33

Please sign in to comment.