Skip to content

Commit

Permalink
feat: add files changed list to the sync pr
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Nov 8, 2024
1 parent 10486f6 commit 4ccb05c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/sync-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ jobs:
cp -f "template-repo/$file" "$file"
done
# Prepare a formatted file list for the PR body
file_list=""
for file in $WHITELIST_FILES "${additional_files[@]}"; do
file_list+="\n- \`${file}\`"
done
# Clean up
rm -rf template-repo/
git add .
git commit -m "chore: sync template"
git push "$original_remote" "$pr_branch"
gh pr create --title "Sync branch to template" --body "This pull request merges changes from the template repository, overwriting only files in the whitelist and specified files." --head "$pr_branch" --base "$branch_name"
gh pr create --title "Sync branch to template" --body "This pull request merges changes from the template repository, overwriting the following files:${file_list}" --head "$pr_branch" --base "$branch_name"

0 comments on commit 4ccb05c

Please sign in to comment.