kishlayakumar / gitproject Goto Github PK
View Code? Open in Web Editor NEWGettting data for issues
Gettting data for issues
heroku link: https://flask-git-test-app.herokuapp.com/ Enter your Git Repository Link and, My output would be: - Total number of open issues - Number of open issues that were opened in the last 24 hours - Number of open issues that were opened more than 24 hours ago but less than 7 days ago - Number of open issues that were opened more than 7 days ago. its a easy one when you know about git hub api's there are several methods to do with various languange i choose python so as flask because i wroked with them. so, for backend i wrote a code in python which - get usernameand repository name of the user and send a get request to api.github.com with username and repo name. - git hub sends you the details within a json object. which also contains Total open issuesand a link to that repo's issues page. - After getting issue link i iterate over all the pages and issue and look for there date. - Extracted date of every issue compared that date with current time an das per requirement i stored count of the issues that were opened in the last 24 hours, issues that were opened more than 24 hours ago but less than 7 days ago, open issues that were opened more than 7 days ago, number of open issues in three diffrent variables relatively. - store the varriables in A dictonary . because dictionary are easy to change in json for fronted and return to the API call. And for fronted, - i design a simple HTML page which input is git link - after provide a link and clicking button - Link is get by java script where user name and repository name are extracted from link - after that, through ajax a get request is send to back end - and after data is get it is displayed on screen How i improve my solution? -There are many ways which i can improve. - Future use for NodeJs. - and there are various things you could do with GIT apis - Top latest issues for each issue's tab of link 24hrs, & 7days etc - I will get data on dashboard which has which user has more issues - Follower of that Issue - assignee of that issues with link to his avatar - Total number of watcher, follower etc in seprate box for each issue - There are various more you can do if you are on admin side. -like checking and notifing issuer and asignee that this much time is lapsed for your issue - Send mail. - Create a dashbord of own where you can set priority of issue - etc
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.