← Back to list

rebuild-dist-for-pr
by princespaghetti
An action to install the conftest binary as part of a workflow
⭐ 5🍴 1📅 Jan 24, 2026
SKILL.md
name: rebuild-dist-for-pr description: Rebuilds the dist folder for a GitHub PR (typically dependabot PRs). Use when asked to rebuild dist for a PR, update dist for dependabot, or prepare a PR for merge by rebuilding.
Rebuild Dist for PR
Automates the process of checking out a PR branch, rebuilding the dist folder, and preparing a commit.
Workflow
Required input: PR number (e.g., 42)
Step 1: Fetch and checkout the PR branch
gh pr checkout <PR_NUMBER>
Step 2: Install dependencies
npm install
Step 3: Build and package
npm run build && npm run package
Step 4: Check if dist changed
git status --porcelain dist/
If no output, dist is unchanged—inform the user and stop.
Step 5: Stage dist changes
git add dist/
Step 6: Show staged changes and pause
Show the user what will be committed:
git diff --cached --stat
STOP HERE and ask the user for confirmation before pushing.
Step 7: Commit and push (after user confirms)
git commit -m "rebuild dist"
git push
Error handling
- If
gh pr checkoutfails, verify the PR number and thatghis authenticated - If
npm installfails, check for lockfile issues - If build fails, show the error output to the user
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon