softprops/goji

[Question] How to create issue with custom fields?

deg0nz opened this issue · 1 comments

Hi,

I'm a Rust beginner. So far, I could manage everything I wanted to do with goji. Thanks for your work on that thing!

I just don't know how to create an issue with custom fields. Is this even possible with the current version of goji? I know, that I just need to create a Fields struct and all the other structs it uses internally, but there seems to be no option for adding custom fields...

If this is not possible, it would be nice if one could optionally create their "own" Fields struct to customize the creation of issues.

Ok, I solved the problem by adjusting code of the crate and creating an extra function that takes an custom CreateIssue Struct containing a custom Fields struct. I Will make a PR for that soon