Main function.
()
| 240 | |
| 241 | |
| 242 | def main(): |
| 243 | """Main function.""" |
| 244 | # Default path to governance file |
| 245 | script_dir = os.path.dirname(os.path.abspath(__file__)) |
| 246 | repo_root = os.path.dirname(script_dir) |
| 247 | governance_file = os.path.join(repo_root, "source", "contributor-guide", "governance.md") |
| 248 | |
| 249 | if len(sys.argv) > 1: |
| 250 | governance_file = sys.argv[1] |
| 251 | |
| 252 | if not os.path.exists(governance_file): |
| 253 | print(f"Error: Governance file not found at {governance_file}") |
| 254 | sys.exit(1) |
| 255 | |
| 256 | print(f"Updating committer list in {governance_file}") |
| 257 | |
| 258 | if update_governance_file(governance_file): |
| 259 | print("Committer list updated successfully") |
| 260 | else: |
| 261 | print("Failed to update committer list") |
| 262 | sys.exit(1) |
| 263 | |
| 264 | |
| 265 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…