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

Define end hash of interest for duplicating PR #1346

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

Jtang-1
Copy link
Contributor

@Jtang-1 Jtang-1 commented Oct 9, 2023

Technical Summary

Resulting from this workflow failure: https://github.com/dimagi/commcare-core/actions/runs/6459548228/job/17535541395

No commits were returning from git rev-list --no-merges --first-parent 8850102 This is because commit af06064 has multiple parents with the 8850102 being the first. The commits of interest are not between the first parent (8850102) so it returns an empty list. The commits of interest in the PR to be duplicated are contained between the second parent and af06064. However, there is no way to know without user input. With this change, the user will also define the last non-merge commit in the PR.

So in the linked PR, the comment that would lead to correct PR duplication would be duplicate this PR 628e7a8 2eacb6b

Safety Assurance

Safety story

Locally tested, only affects internal tool

Automated test coverage

no automated test

QA Plan

no QA

Special deploy instructions

  • This PR can be deployed after merge with no further considerations.

Rollback instructions

  • This PR can be reverted after deploy with no further considerations.

Review

  • The set of people pinged as reviewers is appropriate for the level of risk of the change.

Duplicate PR

Automatically duplicate this PR as defined in contributing.md.

…get branch. This merge commit may have multiple parents and there is no way of knowing which parent we should use to search for commits of interest. This allows the user to define the last commit of interest that is not the merge. This will be used to pull the range of commits of interest.
Copy link
Contributor

@shubham1g5 shubham1g5 left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@Jtang-1 Jtang-1 merged commit 3eff97a into master Oct 9, 2023
2 checks passed
@Jtang-1
Copy link
Contributor Author

Jtang-1 commented Oct 9, 2023

duplicate this PR bc709b4 29ecf66

@Jtang-1 Jtang-1 deleted the jt/specify_last_commit_of_interest branch October 9, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants