Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

ci: close PRs with source repository guidance

YeonGyu-Kim39c6aa9cd303
diff --git a/.github/workflows/pr-source-guidance.yml b/.github/workflows/pr-source-guidance.yml
index d1614e64..c99df480 100644
--- a/.github/workflows/pr-source-guidance.yml
+++ b/.github/workflows/pr-source-guidance.yml
@@ -7,30 +7,22 @@ on:
permissions:
contents: read
issues: write
- pull-requests: read
+ pull-requests: write
jobs:
- comment-source-repo:
+ close-with-source-guidance:
runs-on: ubuntu-latest
steps:
- - name: Comment with source repository guidance
+ - name: Close PR with source repository guidance
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -euo pipefail
- marker="canonical LazyCodex source lives in"
- if gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json comments --jq '.comments[].body' | grep -F "$marker" >/dev/null; then
- echo "Source guidance comment already exists."
- exit 0
- fi
-
body="$(mktemp)"
cat > "$body" <<'MARKDOWN'
- Thanks for opening this PR. The canonical LazyCodex source lives in [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent), and the Codex Light implementation is under [`packages/omo-codex`](https://github.com/code-yeongyu/oh-my-openagent/tree/dev/packages/omo-codex).
-
- Direct edits in this marketplace repository can be overwritten by the release sync. Please open the implementation PR in `code-yeongyu/oh-my-openagent` and add the `lazycodex` label there so it gets routed faster.
+ Thanks for the PR! This repository is a generated distribution mirror, so PRs here cannot be merged. Please open your PR against [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) instead.
MARKDOWN
- gh pr comment "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --body-file "$body"
+ gh pr close "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --comment "$(cat "$body")"