refactor: fetching CI jobs
This MR renames and restructures fetchLastJobsForCurrentBranch
method + adds a test.
The fetchLastJobsForCurrentBranch
method was named incorrectly (it was fetching jobs for the pipeline from the argument) and it was doing postprocessing (sorting and deduplicating) which is only desirable in the status bar:
We are about to fetch jobs for #268 (closed) where we want to process them differently.
Related to #268 (closed)