mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-07 16:19:09 +00:00
Compare commits
1 commit
630319fefe
...
c99a3a3fdf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c99a3a3fdf |
3 changed files with 27 additions and 29 deletions
27
.github/workflows/promote_dev_to_prod.yml
vendored
27
.github/workflows/promote_dev_to_prod.yml
vendored
|
|
@ -1,27 +0,0 @@
|
|||
name: Promote dev to main (prod)
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: promote-dev-to-main
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
promote:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: dev
|
||||
fetch-depth: 0
|
||||
- name: Fast-forward main (PROD) to dev
|
||||
# main is the production branch; a plain ref push is fast-forward-only
|
||||
# (branch protection rejects non-FF), so a diverged main fails loudly.
|
||||
run: |
|
||||
git push origin HEAD:refs/heads/main
|
||||
25
.github/workflows/promote_main_to_prod.yml
vendored
Normal file
25
.github/workflows/promote_main_to_prod.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: Promote main to prod
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: promote-main-to-prod
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
promote:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
- name: Force-push main to prod
|
||||
run: |
|
||||
git push --force origin HEAD:refs/heads/prod
|
||||
|
|
@ -7,9 +7,9 @@ through the installed ``agent`` package (absolute imports) restores correct
|
|||
``__package__`` resolution, so the relative imports inside the agent modules work.
|
||||
"""
|
||||
|
||||
from agent.analyzer import traced_analyzer as analyzer_graph
|
||||
from agent.reviewer import traced_reviewer_agent as reviewer_graph
|
||||
from agent.server import traced_agent as agent_graph
|
||||
from agent.reviewer import traced_reviewer_agent as reviewer_graph
|
||||
from agent.analyzer import traced_analyzer as analyzer_graph
|
||||
|
||||
# Open SWE's FastAPI webapp (GitHub/Slack webhooks + dashboard API), mounted by
|
||||
# Aegra via the "http" key in aegra.json. Absolute import for the same reason as
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue