rocktimsaikia / github-feed-cli Goto Github PK
View Code? Open in Web Editor NEW✨ Github feed right at your terminal
Home Page: https://npm.im/github-feed-cli
License: MIT License
✨ Github feed right at your terminal
Home Page: https://npm.im/github-feed-cli
License: MIT License
The original GitHub feed generally groups the similar events happening at the same timestamp.
I don't really know the exact algorithm they use there. Initially, I thought they are grouping similar events that are happening in the same hour but turns out that is not the case.
There is no constant number for that. It groups similar events in a very efficient way. I am still doing a bit of research on this but if anyone has any approach we can take to achieve the same result then I am open to discussion
Add a option to filter-out
a given event type. Once passed all the events that match that type will be removed from the stdout
feed.
ex:
feed --filter stars
This will remove all the starring events from the terminal feed!
All the tests are passing fine in local but failing in TravisCI
✖ invalid --user argument Rejected promise returned by test
✖ --user && --page Rejected promise returned by test
✖ --user Rejected promise returned by test
✖ without arguments Rejected promise returned by test
✖ --help Rejected promise returned by test
✖ --version Rejected promise returned by test
6 tests failed
invalid --user argument
Rejected promise returned by test. Reason:
Currently, I was only able to test this tool in my Linux machine and a windows PC. It would be nice to know if it works on all the OSS.
Even when the error is thrown, feed
CLI keeps running
➜ feed -u=talentless_guy
⠼ Loading the feed...User not found! Please provide a valid github username.
RequestError [HttpError]: Not Found
at /home/v1rtl/.pnpm-store/pnpm-global/4/node_modules/.pnpm/@octokit/[email protected]/node_modules/@octokit/request/dist-node/index.js:66:23
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async module.exports (/home/v1rtl/.pnpm-store/pnpm-global/4/node_modules/.pnpm/[email protected]/node_modules/github-feed-cli/lib/index.js:108:24)
at async /home/v1rtl/.pnpm-store/pnpm-global/4/node_modules/.pnpm/[email protected]/node_modules/github-feed-cli/bin/index.js:76:22 {
status: 404,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-length': '133',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 22 Nov 2020 11:51:18 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
status: '404 Not Found',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '9DC8:126C2:4987EF2:54A072A:5FBA50B6',
'x-ratelimit-limit': '60',
'x-ratelimit-remaining': '57',
'x-ratelimit-reset': '1606046760',
'x-ratelimit-used': '3',
'x-xss-protection': '1; mode=block'
},
request: {
method: 'GET',
url: 'https://api.github.com/users/talentless_guy/received_events?page=1',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'octokit-rest.js/18.0.9 octokit-core.js/3.2.1 Node.js/15.0.1 (linux; x64)'
},
request: { hook: [Function: bound bound register] }
},
documentation_url: 'https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user'
}
⠼ Loading the feed...⏎
I think it should exit the program instead
In this feature, the cli would continuously poll the api in certain customizable intervals to fetch new posts and append them to the feed.
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.