mozilla-releng / firefox-infra-changelog

Automated tool which builds a changelog of commits happening on git and hg that could affect Firefox CI Infra.
2 stars 8 forks source link

Issue #438 - [ OOP ] rewrite the logic that manage the commits from github repositories #443

Closed raduiman-zz closed 5 years ago

raduiman-zz commented 5 years ago

This PR contains the implementation of Issue #438 start() method is the access to the logic. It requires the repo_name and will return a dictionary with the commits. !!! the code will not work until: -- the .json files will be generated and will contain the last_checked value: def last_checked(self): returns the last check date from .json files

this is how to call the logic:

the main method to iterate through the Git repository

b = FICFileHandler() for repo in json.load(b.load(None, "repositories.json")).get("Github"): a = FICGithub(repo) a.start()