Better detection of story id using either branch name or prompt