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

update branch & change base on PRs #921

Merged
merged 2 commits into from Sep 22, 2020

Conversation

tginiotis-at-work
Copy link
Contributor

@tginiotis-at-work tginiotis-at-work commented Aug 11, 2020

Description

Adding a method to update the PR branch from the base branch & a method to change the base of the PR.
Closes #787.

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than master. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn clean compile locally. This may reformat your code, commit those changes.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

Need to test failure cases, such as when base branch doesn't exist and when expected_head_sha doesn't match current head).

@bitwiseman
Copy link
Member

@tginiotis-at-work
Do you have time to update these?

@tginiotis-at-work
Copy link
Contributor Author

@bitwiseman Hey, yes. I was a bit busy with other stuff, but I will look into these this week.

@tginiotis-at-work
Copy link
Contributor Author

I have added cases for when the base branch does not exist and when the expected_head_sha does not match the current head.
Also changed to the test organization.

How does it look now?

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

Great thanks!

@bitwiseman bitwiseman merged commit 91764c1 into hub4j:master Sep 22, 2020
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.

Need support for "Updating the pull request branch with latest upstream changes"
2 participants