thetechcollective / gh-cpissues

A gh extension used to copy issues from one repo to another
MIT License
3 stars 0 forks source link

preserve white spaced in code blocks #8

Closed lakruzz closed 7 months ago

lakruzz commented 8 months ago

Heres a problem described to Phind:

https://www.phind.com/search?cache=o31uled8qv0ayvnbv5qqk9iy

We tested like this:

Create a new (arbitrary) repo

Start a code space

gh extension install thetechcollective/gh-cpissues
gh cpissues
gh cpissues thetechcollective/dx-intro --label bug
gh issue list --search "sort:created-asc" --label bug -R thetechcollective/dx-intro --json 'title,body' > tmpfile
gh issue create 
gh issue create --help
lakruzz commented 8 months ago

I believe the problem hammens here

lakruzz commented 8 months ago

Try to comment out lines 75 and 81 that will give you something to look at :-)

Luchassmed commented 8 months ago

I did my research on base64 and found this

Luchassmed commented 8 months ago

@lakruzz prøv at checkout debug branch. Der er en mulig løsning der 💯

lakruzz commented 8 months ago

Yep kigger på det - har du fundet en måde at installere en gh extension fra en branch?

lakruzz commented 8 months ago

Jeg fik styr på det:

gh repo clone thetechcollective/gh-cpissues
cd gh-cpissues
git checkout debug
gh extension install .

Det virker fint @Luchassmed well done!

Du må gerne lige knytte et par kommentarer til den løsning du har lavet. Har du chattet med en GPT (Phind, CoPilot, Bing, OpenAI....) så smid evt. dine prompts med her som links eller paste indhold, so vi kan dokumenter arbejdsprocessen lidt.

Og så få den merged ind på master 💪

Luchassmed commented 8 months ago

Det skal jeg nok gøre! Vil du have, at forklare løsningen på dette issue eller på selve commited? @lakruzz 😃 Den er blevet merged til main nu