Coder Social home page Coder Social logo

raulfdm / gh-open-prs Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 24.92 MB

Dashboard to track projects PR's from an organization

Home Page: https://github-pr-tracker.now.sh/

License: MIT License

JavaScript 0.42% TypeScript 99.58%
github pull-request pull-request-tracker organization

gh-open-prs's Introduction

Github Open PRs

Simple Page to track open PR's for specifics projects.

App Home

Before start

This project uses Github GraphQL API. Differently from their REST API, it requires you being Authenticated.

Generating a Token

In their documentation, they said you need the same kind of token as required for CLI's (check it here).

However, I would say, you get the follow permissions:

[x] repo (you need all in order to handle private proj.)
  [x] repo:status
  [x] repo:status
  [x] repo_deployment
  [x] public_repo
  [x] repo:invite
...

[x] admin:org
  [ ] write:org
  [x] read:org
...

Why? Just because this app does not need any right to write things, only read organization repositories.

How to use

Track your Repos

Basically you need to fill:

  • Organization name;
  • Repositories name split by comma;
  • Github Token API

Then press search and everything will load :)

Basic Example

All your settings will be saved via Cookies since the Token (and maybe your repository names) are a sensitive information.

Filter by label

To only see specific label, you just need to click in the ones you don't have to see.

Filter Example

In order to keep the selection even if you close the App, this filter is saved via localStorage:

key: `pr_tracker_label_by_repo`
value: { <repoId>: <labelId>[] }

Cleaning up

If you want to remove all your data, it's only about:

  1. open the app
  2. Open your console
  3. Application
  4. Clear Site Data (must be localStorage and Cookies)

Development

The same as any modern JS app:

  1. Fork/clone this project;
  2. navigate inside the folder;
  3. run pnpm to install dependencies;
  4. then boot the server by running pnpm run dev

Then your app will be available at http://localhost:3000

Stack

  • NextJS
  • TypeScript
  • ApolloClient
  • Styled Components

Issues

Maybe this is just the beginning. Feel free to report issues, come up with suggestions or improvements. PR's are always open! :)

License

MIT

gh-open-prs's People

Contributors

raulfdm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nelson-lark

gh-open-prs's Issues

Add global filter my PR name

Also to avoid cmd + f to search for something, will be quite nice have a input field to filter based on ALL PR's title

Refactor README

The core settings has been changed from app config to on flight settings.

Rewrite everything.

Add Settings Panel

The idea here is to have a panel above the repositories where you can fill:

  • Github API Token
  • Org name
  • Repos you want to listening in

And you press a button "Fetch" and it get all open PRs for those branches.

Also it saves in query param, where people can share across dev teams.

Add filtering by labels

It'll be quite nice to filter by label, like click in a label (out of PR list) and only show those..

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.