1.2.2 • Published 2 years ago

todo-reminder-feishu v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Feishu Reminder Sender for TODO

Usage

new FeishuReminder(
  process.env.LARK_APP_ID,
  process.env.LARK_APP_SECRET
).sendReminderMessage({
  userIdMap: {
    "moonrailgun@gmail.com": "xxxxxxxxxxxxxxxx"
  },
  reminderMessageRender: (todos) => {
    const todolistText = todos
      .map(
        (todo) =>
          `- ${todo.filename}:${todo.line}\n   > ${todo.sourceCode.trim()}`
      )
      .join('\n');

    return `You have those TODO not been resolve:\n\n${todolistText}`;
  },
  gracePeriodMs: '1h',
});

sendReminderRecordIntoBitable

new FeishuReminder(String(process.env.LARK_APP_ID), String(process.env.LARK_APP_SECRET))
  .sendReminderRecordIntoBitable('./src/**', {
    appToken: 'xxxxxxxxxxxxxxxxxxx',
    tableId: 'xxxxxxxxxxxxxxxxx'
  })
  .catch((err) => console.error(err));

NOTICE:

  • Make sure bitable should have those Those column: pathFieldName, authorFieldName, createdFieldName(type: Date), gitSummaryFieldName, sourceCodeFieldName or you can build your own record by props: customTableFields
  • Make sure bitable should open editable permission for everyone.

How to get userId?

  • Quick click Settings -> About -> Title 5 times.
  • Then you can see append more detail below
  • Switch to chat page and open user profile card with click user avatar.
  • Right click avatar in profile card and then you can click Copy User Id button.
1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.0.0

2 years ago