Giter VIP home page Giter VIP logo

Comments (4)

peter-evans avatar peter-evans commented on July 18, 2024

Hi @olga-density

Apologies for the slow response.

It's skipping because the output pull-request-operation is evaluating to null. It will be null when no action was taken by the create-pull-request action. The possible actions are created, updated and closed. For example, if the action ran and there were no changes to raise in a PR then no PR is created and the result of pull-request-operation is null. This is the correct behaviour. You only want to set automerge on newly created PRs.

from enable-pull-request-automerge.

olga-density avatar olga-density commented on July 18, 2024

Hey @peter-evans, thank you for getting back to me.
Correct, I see that auto-merge skipped and when I looked at PR it required approval.
I was trying to add the auto-approval

      # - name: Auto approve
      #   if: steps.cpr.outputs.pull-request-operation == 'created'
      #   run: gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
      #   env:
      #     GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

but hot this error

Run gh pr review --approve "31"
  gh pr review --approve "31"
  shell: /usr/bin/bash -e {0}
  env:
    PULL_REQUEST_NUMBER: [3](https://github.com/DensityCo/helm-charts/actions/runs/6087166314/job/16515139564#step:8:3)1
    GH_TOKEN: ***
failed to run git: fatal: not a git repository (or any of the parent directories): .git

if you have any ideas/advice, I would very much appreciate so.

from enable-pull-request-automerge.

peter-evans avatar peter-evans commented on July 18, 2024

The error from the GitHub CLI is telling you that it can't find a git repository locally. Have you checked out the repository?

from enable-pull-request-automerge.

olga-density avatar olga-density commented on July 18, 2024

Hey Peter!

yes, I did.
Sorry, for late response. I was busy with another project. I'll try to troubleshoot this issue again.
Thank you for your response!

from enable-pull-request-automerge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.