Skip to content

Workflow: PR helper#2

Merged
mdheller merged 2 commits intomainfrom
workflow/pr-helper
Feb 12, 2026
Merged

Workflow: PR helper#2
mdheller merged 2 commits intomainfrom
workflow/pr-helper

Conversation

@mdheller
Copy link
Member

Add scripts/pr.sh for PR-based development under protected main.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f69758b83

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


./scripts/hygiene.sh

git checkout -b "${BRANCH}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Base new PR branch on main explicitly

The helper creates the new branch with git checkout -b "${BRANCH}" but does not provide a start point, so it branches from whatever commit the user is currently on. If someone runs this while checked out to a stale topic branch (or any non-main commit), the resulting PR against main will include unrelated commits and can corrupt the intended review scope.

Useful? React with 👍 / 👎.

Comment on lines 17 to 19
git push -u origin "${BRANCH}"

gh pr create --repo SocioProphet/agentplane --base main --head "${BRANCH}" --title "${MSG}" --body "${MSG}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid hardcoding PR repo while pushing to origin

This script pushes the branch to origin and then opens the PR against a fixed SocioProphet/agentplane repo, which breaks fork-based workflows: when origin is a fork, ${BRANCH} exists only in the fork but gh pr create --repo SocioProphet/agentplane --head "${BRANCH}" tries to resolve that branch in the upstream repo. In that common setup, PR creation fails after the push.

Useful? React with 👍 / 👎.

@mdheller mdheller merged commit b1c7f17 into main Feb 12, 2026
4 checks passed
@mdheller mdheller deleted the workflow/pr-helper branch February 12, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant