liferay/liferay-portal / .claude/skills/pr-check
pr-check
VerifiedCheck that a PR is ready to be sent for review.
select_validations.sh
View on GitHub#!/usr/bin/env bash
function main {
if ! git rev-parse --quiet --verify "${1}^{commit}" > /dev/null
then
echo "Unable to resolve the merge base \"${1}\"" >&2
exit 1
fi
local skill_dir
skill_dir=$(dirname "${0}")
local validation_file
for validation_file in "${skill_dir}/validations/branch"/*.md "${skill_dir}/validations/portal"/*.md
do
_print_validation "${1}" "${validation_file}"
done
local workspace
git diff --name-only --no-renames "${1}...HEAD" | \
sed -e "s#^workspaces/\([^/]*-workspace\)/.*#\1#p" -n | \
sort --unique | \
while IFS= read -r workspace
do
for validation_file in "${skill_dir}/validations/workspaces"/*.md
do
_print_validation "${1}" "${validation_file}" "${workspace}"
done
done
}
function _print_validation {
local paths
paths=$(bash "$(dirname "${0}")/select_paths.sh" "${1}" "${2}" "${3}")
if [[ -z ${paths} ]]
then
echo "-- ${2} ${3} (not fired)"
return
fi
echo "== ${2} ${3} ($(echo "${paths}" | wc -l | tr -d " ") paths)"
awk '/^## / {print_section = ($0 == "## Preconditions" || $0 == "## Time Estimate")} print_section' "${2}"
echo
}
main "${@}"Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |