Skip to content

Commit 1dda7ae

Browse files
committed
fix: Sort pending invites in YAML output
1 parent 68aa90a commit 1dda7ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/github_to_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def export_teams(org, headers, old_desired, org_members, pending_invites):
9898

9999

100100
def render_yaml(teams_map, invite_sent):
101-
doc = {"teams": teams_map, "invite_sent": invite_sent}
101+
doc = {"teams": teams_map, "invite_sent": sorted(list(invite_sent))}
102102
new_text = yaml.safe_dump(doc, sort_keys=True, default_flow_style=False)
103103
if MARKER in new_text:
104104
# Inject a warning comment without changing the YAML structure.

0 commit comments

Comments
 (0)