Giter VIP home page Giter VIP logo

Comments (7)

psss avatar psss commented on September 23, 2024

Thanks for the feedback, glad that did is helpful! Implementing releases should not be difficult although it seems that the API does not provide much filtering options:

However, all important information (such as uploader or published_at timestamp) seems to be there, for example here's the output for all tmt releases:

Feel free to file a pull request with the new release stats! :)

from did.

psss avatar psss commented on September 23, 2024

Other github plugin stats can serve as an inspiration:

did/did/plugins/github.py

Lines 133 to 142 in 101d208

class IssuesCreated(Stats):
""" Issues created """
def fetch(self):
log.info("Searching for issues created by {0}".format(self.user))
query = "search/issues?q=author:{0}+created:{1}..{2}".format(
self.user.login, self.options.since, self.options.until)
query += "+type:issue"
self.stats = [
Issue(issue) for issue in self.parent.github.search(query)]

from did.

szaimen avatar szaimen commented on September 23, 2024

I see, thanks for the pointers!

Am I right that I would need to recursively query all repositories that the user has access to in order to retreive if they created a new release? How can I do this? Or is there another, better way?

from did.

psss avatar psss commented on September 23, 2024

Unfortunately it looks like that. Unless there is another API call which would allow searching across projects. I haven't found one in the list. One way could be to provide a list of active projects in the config. It could look like this:

[github]
type = github
login = psss
url = https://api.github.com/
projects = psss/did, teemtee/fmf, teemtee/tmt

Then we would check only these relevant ones.

from did.

szaimen avatar szaimen commented on September 23, 2024

One way could be to provide a list of active projects in the config. It could look like this:

[github]
type = github
login = psss
url = https://api.github.com/
projects = psss/did, teemtee/fmf, teemtee/tmt

Then we would check only these relevant ones.

Makes sense 👍

Since I only want to add releaeses logging and not modify existing logic, maybe projects should be named releaseProjects or something so that it is clear that this is only meant for the releases stats or WDYT?

from did.

psss avatar psss commented on September 23, 2024

I'd vote for something short, and projects could be possibly useful for other stats as well in the future.

from did.

szaimen avatar szaimen commented on September 23, 2024

I'd vote for something short, and projects could be possibly useful for other stats as well in the future.

All right

from did.

Related Issues (20)

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.