Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Jun 12, 2024
1 parent 223f24c commit c0df621
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function run() {
const owner = core.getInput('repositoryOwner');
const repository = core.getInput('repository');
const octokit = github.getOctokit(
core.getInput('repoToken', { required: true })
core.getInput('repoToken', { required: true }),
);

context.repository = {
Expand All @@ -38,7 +38,7 @@ async function run() {
...getIssueProps(context),
state: 'open',
labels: [LABEL],
}
},
)) {
issues = issues.concat(response.data);
}
Expand All @@ -56,7 +56,7 @@ async function run() {
const remindersFromIssue = getRemindersFromBody(issue.body);

core.info(
`${remindersFromIssue.length} found for issue #${issue.number}`
`${remindersFromIssue.length} found for issue #${issue.number}`,
);

remindersFromIssue.forEach((reminder) => {
Expand Down
4 changes: 2 additions & 2 deletions utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createCommentsMetadata(items) {
function markAsNotified(body, reminderId) {
const reminders = getRemindersFromBody(body);
const activeReminders = reminders.filter(
(reminder) => reminder.id !== reminderId
(reminder) => reminder.id !== reminderId,
);

if (activeReminders.length === 0) {
Expand All @@ -44,7 +44,7 @@ function markAsNotified(body, reminderId) {
return {
body: body.replace(
regex,
`\n\n<!-- bot: ${JSON.stringify({ reminders: activeReminders })} -->`
`\n\n<!-- bot: ${JSON.stringify({ reminders: activeReminders })} -->`,
),
hasActive: true,
};
Expand Down

0 comments on commit c0df621

Please sign in to comment.