From f23e75848f4696a6892103acef60fb99b3911e20 Mon Sep 17 00:00:00 2001 From: Kevin Gilpin Date: Thu, 8 Aug 2024 15:31:57 -0400 Subject: [PATCH] ci: Add planning with Navie AI --- .github/workflows/plan.yml | 27 +++++++++++++++++++++++++++ .gitignore | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/plan.yml diff --git a/.github/workflows/plan.yml b/.github/workflows/plan.yml new file mode 100644 index 00000000..f03796ec --- /dev/null +++ b/.github/workflows/plan.yml @@ -0,0 +1,27 @@ +name: Plan issue with Navie + +on: + issues: + types: [opened, edited, reopened, labeled, unlabeled] + +permissions: + contents: read + issues: write + +jobs: + plan: + if: contains(github.event.issue.labels.*.name, 'navie-plan') + runs-on: ubuntu-latest + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Plan with Navie + uses: getappmap/navie-editor/plan@main + with: + issue_id: ${{ github.event.issue.number }} + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index c6f0f746..4473e002 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,6 @@ htmlcov/ /.tox /node_modules -/ruff.toml \ No newline at end of file +/ruff.toml + +appmap.log