An easy-to-use burndown chart generator for GitHub Project Boards.
0

Configure Feed

Select the types of activity you want to include in your feed.

change download_project_data arguments to primitive variable

shigetoshi.komatsu (Dec 19, 2023, 1:47 PM +0900) 1b43318f fbae056a

+4 -4
+4 -4
src/github_projects_burndown_chart/main.py
··· 22 22 return parser.parse_args() 23 23 24 24 25 - def download_project_data(args) -> Project: 26 - if args.project_type == 'repository': 25 + def download_project_data(project_type: str) -> Project: 26 + if project_type == 'repository': 27 27 project: Project = get_repository_project() 28 - elif args.project_type == 'organization': 28 + elif project_type == 'organization': 29 29 project: Project = get_organization_project() 30 30 return project 31 31 ··· 55 55 if __name__ == '__main__': 56 56 args = parse_cli_args() 57 57 config.set_project(args.project_type, args.project_name) 58 - project = download_project_data(args) 58 + project = download_project_data(args.project_type) 59 59 stats = ProjectStats(project, config.utc_sprint_start(), 60 60 config.utc_chart_end() or config.utc_sprint_end()) 61 61 # Generate the burndown chart