Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gh): not setting proper gh work directory #39

Merged
merged 26 commits into from
Nov 6, 2023
Merged

Conversation

silphid
Copy link
Contributor

@silphid silphid commented Nov 2, 2023

No description provided.

@silphid silphid requested review from davidmdm, a team and j-martin and removed request for a team November 2, 2023 19:00
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
cmd.Dir = workDir
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert since we lost interactivity here!

if err != nil {
return "", fmt.Errorf("creating pull request for branch %s: %w", branch, err)
}
prURL = strings.TrimSpace(prURL)
return prURL, err
}

func getPromotionLabels(branch string) ([]string, error) {
pr, err := get(branch)
func (g *PullRequestProvider) getPromotionLabels(branch string) ([]string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we rename g -> to something like pr (pull request) or provider?

@silphid silphid requested a review from davidmdm November 3, 2023 12:59
@silphid silphid merged commit 0144aea into master Nov 6, 2023
1 check passed
@silphid silphid deleted the fix(gh)/work-dir branch November 6, 2023 21:54
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