morrisjobke / github-issue-counter Goto Github PK
View Code? Open in Web Editor NEWA script to get the count of open/closed issues/PRs on GitHub on a per day basis.
License: MIT License
A script to get the count of open/closed issues/PRs on GitHub on a per day basis.
License: MIT License
Hi, I'm trying out your script and I get this error when I try to import issues:
/var/www/github-issue-counter $ ./import_issues.py
Traceback (most recent call last):
File "./import_issues.py", line 24, in <module>
for i in gh.iter_repo_issues(ORG, REPO, state='all'):
File "/usr/local/lib/python2.7/dist-packages/github3/models.py", line 58, in __getattr__
raise AttributeError(attribute)
AttributeError: iter_repo_issues
Maybe I didn't use the correct GitHub Key, I wish you had more detailed steps to get it. I wen tinto my Gihub user's settings page (not the repo's settings page) and made a personal token with plenty of accesses.
Can you help me troubleshoot please? Thanks for your script!
How to reproduce:
./process_issues.py
Traceback (most recent call last):
File "./process_issues.py", line 16, in <module>
now = datetime.datetime.now(datetime.timezone.utc)
AttributeError: 'module' object has no attribute 'timezone'
An example GraphQL query that gathers most required information is
{
repository(owner: "owncloud", name: "core") {
issues(first: 100) {
nodes {
createdAt
number
timelineItems(itemTypes: [CLOSED_EVENT, REOPENED_EVENT], first: 10) {
nodes {
__typename
... on ClosedEvent {
createdAt
}
... on ReopenedEvent {
createdAt
}
}
pageInfo {
hasNextPage
}
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
rateLimit {
limit
cost
remaining
resetAt
}
}
It is so cheap that we probably don’t need API token for public repositories.
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.