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: adjust conditions in Check Merge Fast-Forward Only action #6344

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Oct 23, 2024

Issue being fixed or feature implemented

I think we were using the wrong event name since #6190... which is why #6341 is failing atm.

V Run git fetch origin master:master
  git fetch origin master:master
  git checkout master
  if [ "pull_request_target" == "pull_request" ]; then
    git merge --ff-only 0172b887c027751e4b371b6012d2a59d1e872e1a
  else
    git merge --ff-only d494339b9f0587902fbf6358966c65bcfcb9febf
  fi

https://github.com/dashpay/dash/actions/runs/11474383519/job/31930192140?pr=6341

What was done?

How Has This Been Tested?

Pushed these changes to my develop https://github.com/UdjinM6/dash/commits/develop/

Created 2 PRs to verify it worked as expected:

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@UdjinM6 UdjinM6 added this to the 21.2 milestone Oct 23, 2024
Copy link

This pull request has conflicts, please rebase.

@UdjinM6 UdjinM6 marked this pull request as ready for review October 23, 2024 18:33
Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK 6d02526

@UdjinM6 UdjinM6 marked this pull request as draft October 23, 2024 19:07
@UdjinM6 UdjinM6 marked this pull request as ready for review October 23, 2024 19:33
@UdjinM6 UdjinM6 requested a review from knst October 23, 2024 19:46
@PastaPastaPasta PastaPastaPasta merged commit 33de35e into dashpay:develop Oct 24, 2024
30 of 31 checks passed
PastaPastaPasta added a commit that referenced this pull request Oct 24, 2024
…t-Forward Only` action

c3aae9e fix: fetch PR head before merging it in "check ff" (UdjinM6)

Pull request description:

  ## Issue being fixed or feature implemented
  ```
  v Run git fetch origin master:master
    git fetch origin master:master
    git checkout master
    if [[ "pull_request_target" == "pull_request"* ]]; then
      git merge --ff-only b216a40
    else
      git merge --ff-only 3a18f08
    fi
    shell: /usr/bin/bash -e {0}
  From https://github.com/dashpay/dash
   * [new branch]          master     -> master
  Switched to branch 'master'
  merge: b216a40 - not something we can merge
  Error: Process completed with exit code 1.
  ```
  https://github.com/dashpay/dash/actions/runs/11492009432/job/31999602262?pr=6346

  So it's picking the right commit sha now but it has no commit itself.

  #6344 follow-up

  ## What was done?

  ## How Has This Been Tested?

  ## Breaking Changes

  ## Checklist:
  - [ ] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  PastaPastaPasta:
    utACK c3aae9e

Tree-SHA512: 6a50d3ad40ac54aa919e970b9509e78aa61dbdfc9211e8837b5bf470ee8f0b1b68f53d082d04e8e6f375bd0bb62d92951f69cde5985b6fd1482a0cd531abf8ba
@UdjinM6 UdjinM6 modified the milestones: 21.2, 22 Oct 29, 2024
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