mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 23:08:04 -05:00
[Fix]: Prevent back tick escape (#5897)
This commit is contained in:
13
.github/workflows/openhands-resolver.yml
vendored
13
.github/workflows/openhands-resolver.yml
vendored
@@ -185,12 +185,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Install OpenHands
|
- name: Install OpenHands
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
env:
|
||||||
|
COMMENT_BODY: ${{ github.event.comment.body || '' }}
|
||||||
|
REVIEW_BODY: ${{ github.event.review.body || '' }}
|
||||||
|
LABEL_NAME: ${{ github.event.label.name || '' }}
|
||||||
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const commentBody = `${{ github.event.comment.body || '' }}`.trim();
|
const commentBody = process.env.COMMENT_BODY.trim();
|
||||||
const reviewBody = `${{ github.event.review.body || '' }}`.trim();
|
const reviewBody = process.env.REVIEW_BODY.trim();
|
||||||
const labelName = `${{ github.event.label.name || '' }}`.trim();
|
const labelName = process.env.LABEL_NAME.trim();
|
||||||
const eventName = `${{ github.event_name }}`.trim();
|
const eventName = process.env.EVENT_NAME.trim();
|
||||||
|
|
||||||
// Check conditions
|
// Check conditions
|
||||||
const isExperimentalLabel = labelName === "fix-me-experimental";
|
const isExperimentalLabel = labelName === "fix-me-experimental";
|
||||||
|
|||||||
Reference in New Issue
Block a user