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

Adds support for a specific description of the stack PR list #26

Merged
merged 27 commits into from
Nov 13, 2024

Conversation

geofflamrock
Copy link
Owner

@geofflamrock geofflamrock commented Nov 13, 2024

This PR is part of a series that adds support for creating PRs for branches in stack:

This PR adds the support for the custom description you can see above 😄

@geofflamrock geofflamrock changed the title Adds support for setting a specific PR description for a stack Adds support for a specific description of the stack PR list Nov 13, 2024
if (gitOperations.DoesRemoteBranchExist(branch, settings.GetGitOperationSettings()))
var existingPullRequest = gitHubOperations.GetPullRequest(branch, settings.GetGitHubOperationSettings());

if (existingPullRequest is not null && existingPullRequest.State != GitHubPullRequestStates.Closed)
Copy link
Owner Author

@geofflamrock geofflamrock Nov 13, 2024

Choose a reason for hiding this comment

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

This fixes an issue where PRs already existed so would get skipped, meaning we wouldn't set descriptions properly

@geofflamrock geofflamrock merged commit 87d4b97 into main Nov 13, 2024
11 checks passed
@geofflamrock geofflamrock deleted the set-pr-stack-description branch November 13, 2024 21:58
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.

1 participant