abhisheknaiidu / todoist-readme Goto Github PK
View Code? Open in Web Editor NEW๐ง Updates README with Todoist Stats of a user
Home Page: https://github.com/marketplace/actions/todoist-readme
License: Creative Commons Zero v1.0 Universal
๐ง Updates README with Todoist Stats of a user
Home Page: https://github.com/marketplace/actions/todoist-readme
License: Creative Commons Zero v1.0 Universal
Adding issue templates and pull request template will enhance the workflow of the repository.
Use the new form of ISSUE_TEMPLATE i.e. making a folder ISSUE_TEMPLATE in .github
and adding different types of .md
files for different issues like bug.md
, documentation.md
and feature.md
. A contributor can choose the type of templates whenever they make an issue.
Reference: https://docs.github.com/en/github/building-a-strong-community/about-issue-and-pull-request-templates
Hi,
I am a non-preminum user in todoist.
So, I set up the workflow yaml file as follows according to the settings you gave me.
name: Todoist Readme
on:
workflow_dispatch:
schedule:
# Runs every minute
- cron: '* * * * *'
jobs:
update-readme:
name: Update todoist stats
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: abhisheknaiidu/todoist-readme@master
with:
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
However, when I checked the github action log, the following error occurred.
Run abhisheknaiidu/todoist-readme@master with: TODOIST_API_KEY: *** USERNAME: jaejin1 PREMIUM: false (node:2894) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'total_completed' of undefined at updateReadme (/home/runner/work/_actions/abhisheknaiidu/todoist-readme/master/dist/index.js:486:57) at main (/home/runner/work/_actions/abhisheknaiidu/todoist-readme/master/dist/index.js:465:11) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async /home/runner/work/_actions/abhisheknaiidu/todoist-readme/master/dist/index.js:587:5 (node:2894) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:2894) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When checking the code, it seems that the PREMIUM variable is read as a string type from the yaml file.
The line of code is https://github.com/abhisheknaiidu/todoist-readme/blob/master/dist/index.js#L485.
So I tested it by giving the PREMIUM value "", and it succeeded.
with:
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
PREMIUM: ""
Create and share a PR with the issue.
Addition of GitHub actions will help to enhance the code quality and workflow or repository.
try to add ESLint
and prettier
Actions.
wakatime-readme uses "github-actions[bot]" as a commit author, but this tool uses "example" as a commit author. I think "example" is a bad committer name and should use bot committer name.
It will help maintain a properly formatted codebase. If you like to get help getting this done, assign it to me.
Hello,
I am having issue when running it, how may I change the User used in the script to commit?
4
Writing to ./README.md
Started: git config --global user.email [email protected]
Started: git config --global user.name Abhishek Naidu
Started: git add ./README.md
Started: git commit -m Todoist updated.
[preview fdc8[6](https://github.com/aldoyh/aldoyh/actions/runs/5378707166/jobs/9758875236#step:3:7)05] Todoist updated.
1 file changed, 4 insertions(+)
Started: git push
remote: Permission to aldoyh/aldoyh.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/aldoyh/aldoyh/': The requested URL returned error: 403
/home/runner/work/_actions/abhisheknaiidu/todoist-readme/master/dist/index.js:3593
const err = new Error(`Invalid status code: ${code}`);
^
Error: Invalid status code: 128
at ChildProcess.<anonymous> (/home/runner/work/_actions/abhisheknaiidu/todoist-readme/master/dist/index.js:3593:19)
at ChildProcess.emit (node:events:52[7](https://github.com/aldoyh/aldoyh/actions/runs/5378707166/jobs/9758875236#step:3:8):2[8](https://github.com/aldoyh/aldoyh/actions/runs/5378707166/jobs/9758875236#step:3:9))
at maybeClose (node:internal/child_process:10[9](https://github.com/aldoyh/aldoyh/actions/runs/5378707166/jobs/9758875236#step:3:10)2:[16](https://github.com/aldoyh/aldoyh/actions/runs/5378707166/jobs/9758875236#step:3:17))
at Process.ChildProcess._handle.onexit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.