Skip to content

[CUP-10] Pass down the tag to the story service.#191

Open
cupcicm wants to merge 3 commits intocupcicm/pr/190from
cupcicm/pr/191
Open

[CUP-10] Pass down the tag to the story service.#191
cupcicm wants to merge 3 commits intocupcicm/pr/190from
cupcicm/pr/191

Conversation

@cupcicm
Copy link
Owner

@cupcicm cupcicm commented Oct 20, 2024

Consider the tag as an input when choosing what
story a PR is linked to. If the tag contains the
regex with brackets, or if it's exactly the regex
without the brackets, then link the PR to that story.

The state was managed by the LocalPR itself.
Create a class to handle it outside the PR so that
we can store state for branches too.
This tag can be modified with "opp branch tag XXX"
and it can be used to tag a local branch with a
story. All PRs created from this local branch will
have the story.
Consider the tag as an input when choosing what
story a PR is linked to. If the tag contains the
regex with brackets, or if it's exactly the regex
without the brackets, then link the PR to that story.
return story, strings.Join([]string{s.formatStoryInPRTitle(story), rawTitle}, " ")
}

if branchTag != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method findStory is dedicated to finding the Story (other than having it in the rawTitle). Today we have extractCommitFromMessages, and we are currently implementing fetchStory. Could we add there "finding the Story from the branch tag"? (I think before fetchStory?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments