fix(merge-gate): stash gate-config.js with merge-gate.js

This commit is contained in:
MervinPraison committed 2026-07-09 15:57:21 +01:00
1 parent 611c06f31b
commit 2f73a94808
1 file changed
+5 -4
+5 -4
View File
@@ -252,8 +252,9 @@ jobs:
- name: Stash merge gate helpers
run: |
cp .github/scripts/merge-gate.js /tmp/merge-gate.js
mkdir -p /tmp/gh-actions
# Keep scripts together so require('./gate-config.js') works from /tmp
mkdir -p /tmp/merge-gate-scripts /tmp/gh-actions
cp .github/scripts/merge-gate.js .github/scripts/gate-config.js /tmp/merge-gate-scripts/
cp -R .github/actions/claude-code-action /tmp/gh-actions/
- name: Fetch PR branch
@@ -321,7 +322,7 @@ jobs:
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const mergeGate = require('/tmp/merge-gate.js');
const mergeGate = require('/tmp/merge-gate-scripts/merge-gate.js');
const owner = context.repo.owner;
const repo = context.repo.repo;
const prNumber = ${{ matrix.pr_number }};
@@ -360,7 +361,7 @@ jobs:
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const mergeGate = require('/tmp/merge-gate.js');
const mergeGate = require('/tmp/merge-gate-scripts/merge-gate.js');
const comments = await mergeGate.listAllComments(
github, context.repo.owner, context.repo.repo, ${{ matrix.pr_number }}
);