Skip to content

Commit 409384c

Browse files
authored
Update setup-new-repo.yml
1 parent 73a1b40 commit 409384c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/setup-new-repo.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,26 +206,31 @@ jobs:
206206
fi
207207
208208
# Process the fetched rulesets
209+
# debug only
210+
echo echo "$ruleset" | jq
209211
echo "$RULESETS" | jq -c '.[]' | while read -r ruleset; do
210212
NAME=$(echo "$ruleset" | jq -r '.name')
211213
echo "Syncing ruleset: $NAME"
212214
PAYLOAD=$(echo "$ruleset" | jq 'del(.id, .repository_id, .creator, .created_at, .updated_at)')
215+
# debug only
216+
echo "$PAYLOAD" | jq
213217
echo "$PAYLOAD" > ruleset.json
218+
214219
215220
gh api repos/$OWNER/$REPO_NAME/rulesets \
216221
-X POST \
217-
-H "Accept: application/vnd.github+json" \
222+
-H "Accept: application/vnd.github+json" --verbose \
218223
--input ruleset.json || echo "Warning: Failed to apply ruleset $NAME"
219224
done
220225
221226
- name: Create initial issues
222227
run: |
223228
ADMIN_ISSUE_URL=$(gh issue create --repo $OWNER/$REPO_NAME \
224-
--title "Initial administrative tasks" \
229+
--title "New Repository - Initial administrative tasks" \
225230
--body "$(cat templates/issues/initial-admin.md)")
226231
227232
gh issue create --repo $OWNER/$REPO_NAME \
228-
--title "Initial tasks for codeowners" \
233+
--title "New Repository - Initial tasks for codeowners" \
229234
--body "$(cat templates/issues/initial-codeowners.md)"
230235
231236
gh issue comment "$ADMIN_ISSUE_URL" \

0 commit comments

Comments
 (0)