The write_state function relies on there being a buffer in the octo_buffers table but there is none when called from the callback which is called after running Github CLI when defining a issue preview.
This causes that [DRAFT] isn't included in the issue preview title virtual text of draft pull requests.
Does this pull request fix one issue?
A part of fixing #453.
Describe how you did it
By making it so that before write_state is called, a OctoBuffer is created.
Describe how to verify it
Do :Octo pr list in a repository with draft pull requests and you'll see the preview(s) contain [DRAFT]
Describe what this PR does / why we need it
The write_state function relies on there being a buffer in the octo_buffers table but there is none when called from the callback which is called after running Github CLI when defining a issue preview.
This causes that
[DRAFT]
isn't included in the issue preview title virtual text of draft pull requests.Does this pull request fix one issue?
A part of fixing #453.
Describe how you did it
By making it so that before
write_state
is called, aOctoBuffer
is created.Describe how to verify it
Do
:Octo pr list
in a repository with draft pull requests and you'll see the preview(s) contain[DRAFT]
Special notes for reviews