question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`merge-schedule` gh action can't merge to master

See original GitHub issue

Due to master being a protected branch, github actions can’t merge pull requests to it even if the pr is approved. If you attempt to use merge scheduler (#3282), the action will get an error. We should probably go ahead and delete the action if no one has an idea on making it work.

image

From my research so far, due to security reasons, GitHub doesn’t allow a way for gh actions to merge to protected branches and I can’t find an alternative way for us to safely schedule merges. Does anybody know of a way to schedule merges to protected branches? cc @iterative/websites

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

5reactions
shchekleincommented, Apr 6, 2022

@julieg18 done:

Screen Shot 2022-04-05 at 5 00 27 PM

Write should be enough if PR is approved by at least 1 person

4reactions
casperdclcommented, Apr 4, 2022

~Could exclude admins from the merge protection, and use an admin account GITHUB_TOKEN in the action?~

Could use a bot account GITHUB_TOKEN in the action to do the merge?

Should work if e.g. giving the bot (@iterative-olivaw) ~admin~ write permissions on this repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Merge Schedule · Actions · GitHub Marketplace
merge-schedule -action. GitHub Action to merge pull requests on a scheduled day. Usage. Create .github/workflows/merge ...
Read more >
Merge Schedule Action | michaelheap.com
Merge Schedule allows you to merge pull requests at a scheduled time. The most common use case that I've seen for this so...
Read more >
Perform Github Action when trying to merge branch
What I would suggest as a workaround here is to run your test 1. after the fact on pushes to the master branch,...
Read more >
Automatically schedule a git merge using GitHub Actions
Using the action gr2m/merge-schedule-action@v1, I've been able to automate the process. All I needed to do was create a folder called .github\ ...
Read more >
What are Github Actions and How Can You Automate Tests ...
The first will be to simply run some automated tests that will prevent a pull request from being merged if it is failing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found