feat: sync ghbot-Nodeloc v1.2.0 capabilities into upstream
Merges all 33 commits from lza6/ghbot-Nodeloc (v1.0.0 through v1.2.0) while keeping both sides' features in every conflicted file: - EventRouter dispatch extracted from runReview.ts (7.1), with the runtime environment block preserved on the review-start comment - Unified command ack messages (6.3) combined with the collapsed runtime environment block and bot signature on /recheck replies - Status banner and collapsible unposted findings in review bodies (6.1) - Centralized runtime directories behind GHBOT_RUNTIME_DIR (D-13); webhook knowledge cache now lives under tempRootDirectory() - Production hardening for merge races, timeouts, webhook ops; atomic temp-file rename for R2 cache restores kept from upstream - Webhook parity retained: triage events gated by WEBHOOK_TRIAGE_ENABLED, read-only command guidance, repository knowledge injection, runtime environment block on webhook chat replies - Sanitization/secret redaction centralization, error-aware retry, duplicate merge prevention, in-process webhook retries, /metrics - Infra: eslint/prettier gates with CI verify workflow, docs archives typecheck, eslint, prettier format:check, and 164 tests all pass.
This commit is contained in:
commit
9e47ab339e
180 files changed
+15130
-1209
No files matched your search
@@ -0,0 +1,26 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
name: typecheck-lint-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run typecheck
|
||||
- run: npm run lint
|
||||
- run: npm run format:check
|
||||
- run: node --import tsx --experimental-test-coverage --test test/**/*.test.ts
|
||||
@@ -158,6 +158,10 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: "120000"
|
||||
runtime_directory:
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
log_level:
|
||||
required: false
|
||||
type: string
|
||||
@@ -177,12 +181,6 @@ on:
|
||||
required: false
|
||||
GH_APP_INSTALLATION_ID:
|
||||
required: false
|
||||
GITHUB_APP_ID:
|
||||
required: false
|
||||
GITHUB_APP_PRIVATE_KEY:
|
||||
required: false
|
||||
GITHUB_APP_INSTALLATION_ID:
|
||||
required: false
|
||||
R2_ACCESS_KEY_ID:
|
||||
required: false
|
||||
R2_SECRET_ACCESS_KEY:
|
||||
@@ -224,7 +222,7 @@ jobs:
|
||||
GOOSE_BIN_DIR: ${{ runner.temp }}/goose/bin
|
||||
CONFIGURE: "false"
|
||||
run: |
|
||||
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
|
||||
curl -fsSL "https://github.com/aaif-goose/goose/releases/download/${GOOSE_VERSION}/download_cli.sh" | bash
|
||||
echo "${GOOSE_BIN_DIR}" >> "${GITHUB_PATH}"
|
||||
- run: npm ci
|
||||
working-directory: ghbot-runtime
|
||||
@@ -265,6 +263,7 @@ jobs:
|
||||
MERGE_METHOD: ${{ inputs.merge_method }}
|
||||
REQUIRE_CHECKS: ${{ inputs.require_checks }}
|
||||
MAX_PATCH_CHARS: ${{ inputs.max_patch_chars }}
|
||||
GHBOT_RUNTIME_DIR: ${{ inputs.runtime_directory }}
|
||||
LOG_LEVEL: ${{ inputs.log_level }}
|
||||
GHBOT_EVENT_NAME: ${{ inputs.event_name }}
|
||||
GHBOT_EVENT_ACTION: ${{ inputs.event_action }}
|
||||
@@ -300,7 +299,7 @@ jobs:
|
||||
GOOSE_BIN_DIR: ${{ runner.temp }}/goose/bin
|
||||
CONFIGURE: "false"
|
||||
run: |
|
||||
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
|
||||
curl -fsSL "https://github.com/aaif-goose/goose/releases/download/${GOOSE_VERSION}/download_cli.sh" | bash
|
||||
echo "${GOOSE_BIN_DIR}" >> "${GITHUB_PATH}"
|
||||
- run: npm ci
|
||||
working-directory: ghbot-runtime
|
||||
@@ -341,6 +340,7 @@ jobs:
|
||||
MERGE_METHOD: ${{ inputs.merge_method }}
|
||||
REQUIRE_CHECKS: ${{ inputs.require_checks }}
|
||||
MAX_PATCH_CHARS: ${{ inputs.max_patch_chars }}
|
||||
GHBOT_RUNTIME_DIR: ${{ inputs.runtime_directory }}
|
||||
LOG_LEVEL: ${{ inputs.log_level }}
|
||||
GHBOT_EVENT_NAME: schedule
|
||||
GHBOT_EVENT_ACTION: schedule
|
||||
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
reviewer_login: ${{ github.event.review.user.login || '' }}
|
||||
review_state: ${{ github.event.review.state || '' }}
|
||||
review_commit_id: ${{ github.event.review.commit_id || '' }}
|
||||
bot_name: github-actions[bot]
|
||||
bot_name: ${{ vars.BOT_NAME || 'github-actions[bot]' }}
|
||||
goose_base_url: ${{ vars.GOOSE_BASE_URL || vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
|
||||
goose_model: ${{ vars.GOOSE_MODEL || vars.OPENCODE_MODEL || 'gpt-5.4' }}
|
||||
goose_thinking_effort: ${{ vars.GOOSE_THINKING_EFFORT || vars.OPENCODE_REASONING_EFFORT || 'high' }}
|
||||
@@ -86,7 +86,8 @@ jobs:
|
||||
merge_method: ${{ vars.MERGE_METHOD || 'squash' }}
|
||||
require_checks: ${{ vars.REQUIRE_CHECKS || 'true' }}
|
||||
max_patch_chars: ${{ vars.MAX_PATCH_CHARS || '120000' }}
|
||||
log_level: info
|
||||
runtime_directory: ${{ vars.GHBOT_RUNTIME_DIR || '' }}
|
||||
log_level: ${{ vars.LOG_LEVEL || 'info' }}
|
||||
review-schedule-recheck:
|
||||
if: github.event_name == 'schedule'
|
||||
uses: ./.github/workflows/review-reusable.yml
|
||||
@@ -105,7 +106,7 @@ jobs:
|
||||
repository_name: ${{ github.event.repository.name }}
|
||||
repository_id: ${{ github.repository_id }}
|
||||
pull_number: "1"
|
||||
bot_name: github-actions[bot]
|
||||
bot_name: ${{ vars.BOT_NAME || 'github-actions[bot]' }}
|
||||
goose_base_url: ${{ vars.GOOSE_BASE_URL || vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
|
||||
goose_model: ${{ vars.GOOSE_MODEL || vars.OPENCODE_MODEL || 'gpt-5.4' }}
|
||||
goose_thinking_effort: ${{ vars.GOOSE_THINKING_EFFORT || vars.OPENCODE_REASONING_EFFORT || 'high' }}
|
||||
@@ -132,5 +133,6 @@ jobs:
|
||||
merge_method: ${{ vars.MERGE_METHOD || 'squash' }}
|
||||
require_checks: ${{ vars.REQUIRE_CHECKS || 'true' }}
|
||||
max_patch_chars: ${{ vars.MAX_PATCH_CHARS || '120000' }}
|
||||
log_level: info
|
||||
runtime_directory: ${{ vars.GHBOT_RUNTIME_DIR || '' }}
|
||||
log_level: ${{ vars.LOG_LEVEL || 'info' }}
|
||||
run_schedule_recheck: "true"
|
||||
Reference in new issue
Block a user