From c9b562c87979414ce7ce4f1360b19579a1bb59fc Mon Sep 17 00:00:00 2001 From: Zach Deane-Mayer <581590+zachmayer@users.noreply.github.com> Date: Sat, 30 Nov 2024 08:51:17 -0500 Subject: [PATCH] ignore aider files (#358) --- .github/workflows/aider.yml | 9 ++++++++- .gitignore | 2 ++ aider-instructions.md | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 aider-instructions.md diff --git a/.github/workflows/aider.yml b/.github/workflows/aider.yml index b69c6c10..c4f426fd 100644 --- a/.github/workflows/aider.yml +++ b/.github/workflows/aider.yml @@ -11,6 +11,11 @@ on: required: false type: string default: 'claude-3-5-sonnet-20241022' + branch: + description: 'Branch to check out' + required: false + type: string + default: 'main' permissions: contents: write @@ -28,6 +33,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.branch }} - uses: r-lib/actions/setup-r@v2 with: @@ -59,7 +66,7 @@ jobs: - name: Prepare Instructions run: | - echo "${{ steps.get-issue.outputs.issue-body }}" > issue.md + printf '%s' "${{ steps.get-issue.outputs.issue-body }}" > issue.md cat aider-instructions.md issue.md > combined_instructions.md - name: Run Aider diff --git a/.gitignore b/.gitignore index e72b1467..c3c57097 100644 --- a/.gitignore +++ b/.gitignore @@ -147,3 +147,5 @@ Meta /Meta/ inst/doc docs +.aider* +.env diff --git a/aider-instructions.md b/aider-instructions.md new file mode 100644 index 00000000..97077763 --- /dev/null +++ b/aider-instructions.md @@ -0,0 +1,18 @@ +# Instructions + +Fix the below github issue. Notes: + +- Use modern best practices for R. +- Do not use the tidyverse. +- Write clean-lint free code that conforms to all the rules in lintr. +- Make minimal, surgical changes. +- Write self-documenting code that doesn't need many comments. +- Use roxygen2 if you write new functions. +- Add unit tests for new functions. +- Add tests cases for bugs you fix or new functionality you add. +- Don't ask for help: I can't help you. Make do with the information provided. +- Feel free to load any files to chat you need to read +- Use the repo map to your advantage +- Also feel free to unload files + +Think carefully, step-by-step, and plan your work before doing it.