Giter VIP home page Giter VIP logo

github-feed-cli's People

Contributors

rocktimsaikia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

github-feed-cli's Issues

Group similar events happening at the same time

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

image

add filter out option

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!

Travis CI test failing

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:

Appication test on every OS.

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.

  • Linux
  • Windows
  • Mac

keeps running after throwing an error

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

Add a watch feature

In this feature, the cli would continuously poll the api in certain customizable intervals to fetch new posts and append them to the feed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.