Skip to content

Commit

Permalink
fixup! feat (wip): Update github token
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Aug 8, 2024
1 parent 59acaef commit 2b083cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ runs:
env:
GH_TOKEN: ${{ inputs.github_token }}
run: |
mkdir -p .navie/work
mkdir -p .navie/log
mkdir -p .appmap/navie/work
mkdir -p .appmap/navie/log
gh issue view ${{ inputs.issue_id }} --json title --jq '.title' > .navie/work/issue.txt
echo "" >> .navie/work/issue.txt
gh issue view ${{ inputs.issue_id }} --json body --jq '.body' >> .navie/work/issue.txt
gh issue view ${{ inputs.issue_id }} --json title --jq '.title' > .appmap/navie/work/issue.txt
echo "" >> .appmap/navie/work/issue.txt
gh issue view ${{ inputs.issue_id }} --json body --jq '.body' >> .appmap/navie/work/issue.txt
- name: Create the plan
shell: bash
run: |
python ./plan/plan.py
- name: Update the issue with the plan
shell: bash
run: |
generated_plan_file=.navie/work/plan/plan.md
master_plan_file=.navie/plan.md
generated_plan_file=.appmap/navie/work/plan/plan.md
master_plan_file=.appmap/navie/plan.md
echo "<!-- navie-plan -->" > $master_plan_file
echo "" >> $master_plan_file
Expand Down
10 changes: 7 additions & 3 deletions plan/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

from navie.editor import Editor

work_dir = os.path.join(".navie", "work")
log_dir = os.path.join(".navie", "log")
work_dir = os.path.join(".appmap", "navie", "work")
log_dir = os.path.join(".appmap", "navie", "log")
issue_file = os.path.join(work_dir, "issue.txt")
if not os.path.exists(issue_file):
print("Issue file not found")
sys.exit(1)

with open(".navie/work/issue.txt", "r") as f:
with open(issue_file, "r") as f:
issue = f.read()

editor = Editor(work_dir, log_dir=log_dir)
Expand Down

0 comments on commit 2b083cb

Please sign in to comment.