11"""
2- Script that parses metadata from na issue and adds it to a yml file for the
2+ Script that parses metadata from and issue and adds it to a . yml file for the
33website. It also grabs some of the package metadata such as stars,
44last commit, etc.
55
6- Output: packages.yml file containing a list of
6+ Output: packages.yml file containing a list of:
77 1. all packages with accepted reviews
88 2. information related to the review including reviewers, editors
99 3. basic package stats including stars, etc.
10+ 4. partner information
1011
1112To run at the CLI: parse_issue_metadata
1213"""
2324
2425from pyosmeta import ProcessIssues , ReviewModel
2526
26- # TODO: change the template to ask for date accepted format year-month-day
27-
2827
2928def main ():
3029 process_review = ProcessIssues (
@@ -35,6 +34,10 @@ def main():
3534
3635 # Get all issues for approved packages - load as dict
3736 issues = process_review .return_response ()
37+ # TODO: this method parse_issue_header is working but the parsing code is
38+ # really hard to follow
39+ # It is worth another pr that cleans up the workflow around grabbing
40+ # metadata so it's clearer to follow.
3841 accepted_reviews = process_review .parse_issue_header (issues , 45 )
3942
4043 # Update gh metrics via api for all packages
@@ -44,6 +47,7 @@ def main():
4447 )
4548
4649 # Populate model objects with review data + metrics
50+ # TODO: all_reviews contains a bunch of extra mess that it doesn't need
4751 final_reviews = {}
4852 for key , review in all_reviews .items ():
4953 # First add gh meta to each dict
0 commit comments