Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Allow Forcing PR Creation When No Files Changed #133

Closed
TheSench opened this issue Feb 8, 2023 · 3 comments
Closed

Allow Forcing PR Creation When No Files Changed #133

TheSench opened this issue Feb 8, 2023 · 3 comments

Comments

@TheSench
Copy link

TheSench commented Feb 8, 2023

I have a deployment process that runs based on commits being pushed to a branch. Occasionally, I need to re-trigger that process by adding a PR with an empty commit (no files changed). I am trying to automate that process using this action, but it short-circuits due to there being no file changes in my empty commit.

I'd like to have the option to tell the action to force the PR creation, even if no files have changed (I at least have a new commit to merge).

@TheSench
Copy link
Author

TheSench commented Feb 8, 2023

The check is looking at commit hashes, not doing a file-diff between the two commits, so something is going wrong on my side when it is creating the branch. This action is working as expected.

@TheSench TheSench closed this as completed Feb 8, 2023
@TheSench
Copy link
Author

TheSench commented Feb 8, 2023

Nevermind, it actually is doing a file-diff check:
https://github.com/repo-sync/pull-request/blob/master/entrypoint.sh#L108-L113

I would like to be able to specify an option that allows this check to be skipped.

@TheSench TheSench reopened this Feb 8, 2023
@heiskr
Copy link
Contributor

heiskr commented Jun 12, 2023

Thank you for opening this issue. Per the updated README, we are in process of archiving this repository, and encourage using gh pr create directly in your workflows instead.

@heiskr heiskr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants