Comments (4)
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.
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.
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.
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)
- Unable to auto approve HOT 3
- Failing to auto-merge pull request to separate repository HOT 2
- Branch is not deleted HOT 1
- Doesn't work with GitHub Enterprise HOT 1
- Getting warning in actions about unexpected input 'merge-method' HOT 3
- Automerge can't find recently created PR HOT 2
- Feat: Add https proxy env support HOT 2
- Error: Can't enable auto-merge for this pull request. HOT 3
- Error: Pull Request is not mergable HOT 2
- Error: Could not resolve to a PullRequest with the number of 0.
- Error: This endpoint requires you to be authenticated. HOT 5
- A Personal Access Token is not actually required. A GITHUB_TOKEN will work HOT 4
- Error "Pull request is in clean status" HOT 11
- Pull request is in unstable status HOT 15
- Automerging the PR vs enabling the automerge flag HOT 1
- Does this action work with merge queues? HOT 2
- Action doesn't work without "Require approvals" HOT 2
- Action fails after new release v2.4.0 HOT 6
- Alternative to approve pull request action HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enable-pull-request-automerge.