File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ jobs:
123123 name = payload.get('full_name')
124124 permissions = payload.get('permissions') or {}
125125 default_branch = (payload.get('default_branch') or '').strip()
126- repo_size = int(payload.get('size') or 0)
127126 configured_branch = (os.getenv('CFG_BASE_BRANCH') or '').strip()
128127 resolved_branch = configured_branch or default_branch
129128
@@ -137,9 +136,9 @@ jobs:
137136 "Grant contents write access for PR branch creation."
138137 )
139138
140- if repo_size == 0 or not default_branch:
139+ if not default_branch:
141140 raise SystemExit(
142- "Tap repository appears empty ( no default branch) . "
141+ "Tap repository has no default branch. "
143142 "Initialize it with an initial commit (for example README.md on main) "
144143 "and rerun the workflow."
145144 )
You can’t perform that action at this time.
0 commit comments