akosbalasko / akosbalasko/coffee-to-file

Maint.ts crashed when no supporter

未關閉
#110 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
JavaScript
星號
0
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

I just created a BMAC account and set up the action `Buy Me A Coffee Reade` that leverages this package.

I still haven't received any donations, and the action fails with this error:
```log
Run akosbalasko/coffee-to-file@1.0.1
with:
BUY_ME_A_COFFEE_TOKEN: ***
NUMBER_OF_MESSAGES: 3
FILENAME: README.md
Error: Cannot read properties of undefined (reading 'slice')
```

The cause is that the BMAC api probably returns an array with null or undefined data.
I created a patch for this and would like to contribute!
Since I found no guidelines, I'm starting with opening this issue. PR incoming

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。