Well, if you want to do some analysis - the thing to do is look for which notes change and which notes stay the same, as the chords change.
This allows you to either emphasise the change, by maybe playing the one note that signposts this - or if you want to construct a more melodic phrase, then you could choose from a "pool" of notes that stay the same over a few chord changes.
Typically you could start by emphasising chages then try to build smoother phrases that make use of notes common to several chords.
Or just use combinations of both approaches.
Or just listen, get the chord sequence/melody in your head and play what "feels" right!
