feat: add DEVIN_ACTIONS_PAT instructions for pushing to forked PRs (#26693)
* feat: add DEVIN_ACTIONS_PAT instructions for pushing to forked PRs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor: simplify PAT instructions to be high-level Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat: allow workflow_dispatch to run on draft PRs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: only process targeted PR when pr_number is provided Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat: add critical fork PR error handling instruction to stale PR workflow Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
5c9a5c5729
commit
ae2ea190d8
2 files changed
+12
-5
No files matched your search
@@ -160,7 +160,10 @@ jobs:
|
||||
To check out this PR:
|
||||
1. Clone the fork: git clone https://github.com/${HEAD_REPO_FULL_NAME}.git
|
||||
2. Check out the branch: git checkout ${PR_BRANCH}
|
||||
3. Add the upstream remote: git remote add upstream https://github.com/${REPO_NAME}.git"
|
||||
3. Add the upstream remote: git remote add upstream https://github.com/${REPO_NAME}.git
|
||||
|
||||
IMPORTANT - Pushing to Fork PRs:
|
||||
Since this is a fork PR, you need to use the DEVIN_ACTIONS_PAT secret for authentication when pushing. Configure git to use this PAT for authentication before pushing your changes to the fork."
|
||||
else
|
||||
CLONE_INSTRUCTIONS="Clone the repository ${REPO_NAME} and check out the branch: ${PR_BRANCH}"
|
||||
fi
|
||||
@@ -197,7 +200,8 @@ jobs:
|
||||
3. Follow the existing code style and conventions in the repository.
|
||||
4. If the PR's original approach seems fundamentally flawed, explain why in a comment instead of making major changes.
|
||||
5. Never ask for user confirmation. Never wait for user messages.
|
||||
6. Credit the original author in your commit messages where appropriate."
|
||||
6. Credit the original author in your commit messages where appropriate.
|
||||
7. CRITICAL: If this is a fork PR and you encounter ANY error when pushing (permission denied, authentication failure, etc.) even after using the DEVIN_ACTIONS_PAT, you MUST fail the task immediately. Do NOT attempt to push to a new branch in the main repository as a workaround. Simply report the error and stop."
|
||||
|
||||
RESPONSE=$(curl -s -X POST "https://api.devin.ai/v1/sessions" \
|
||||
-H "Authorization: Bearer ${DEVIN_API_KEY}" \
|
||||
|
||||
Reference in new issue
Block a user