todo-reminder-feishu
v1.2.2
Published
## Usage
Downloads
4
Readme
Feishu Reminder Sender for TODO
Usage
new FeishuReminder(
process.env.LARK_APP_ID,
process.env.LARK_APP_SECRET
).sendReminderMessage({
userIdMap: {
"[email protected]": "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.