Skip to content

[Bug]: git-ai ci github run not pulling prompt information #870

@andrewfrankel

Description

@andrewfrankel

What broke?

We use github squashes for PRs, so have an action running to carry over the git-ai metadata to develop using git-ai ci github run

It's working correctly for file line attributions, but the prompts data is empty. Believe this is a bug.

❮ git notes --ref=ai show c167ef383c
[REDACTED].test.ts
  f9ba6337006c6446 13,290-300,309-333,335-348,365
[REDACTED].ts
  f9ba6337006c6446 5,33
[REDACTED].ts
  f9ba6337006c6446 74,108-116,121-125,131-132,136,147,159
[REDACTED].ts
  f9ba6337006c6446 4,8,15,24,26-36,43-44,47-48,54,56,64-66,78-81,86-87,93-99,101
---
{
  "schema_version": "authorship/3.0.0",
  "git_ai_version": "1.1.20",
  "base_commit_sha": "c167ef383c639850d9267d42859058253d450371",
  "prompts": {}
}

Steps to reproduce

  1. Run git-ai ci github run on PR close
  2. After merge, check contents on develop with git notes --ref=ai show, git-ai stats or similar
  3. The attributions come across, but not the prompts.

Expected vs actual behavior

Expected: prompts should be filled with the data from the original branch/PR
Actual: prompt is empty {}

Diagnostics (git-ai debug)

git-ai is pinned in CI with

GIT_AI_VERSION: v1.1.20
GIT_AI_CHECKSUM: 39cfb25d12ef190ade32ca5a7a25cba45a419702f7e01888d419c5878c6eb593

Extra context (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions