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
PR not merged ? #66
Comments
You need to add a schedule trigger, next to schedule:
# https://crontab.guru/every-hour
- cron: '0 * * * *' |
Hi Gregor; I have been trying to use the action merge-schedule-action@v2 for a while but I just cannot get how it works. I got it to work a few times but others it does not work. I am testing changing the date and using the different file actions I have found. Questions:
I tried to first make different test, read the previous issues, change dates, but I am still having troubles. Hope you have some time to help me. Thank you in advance. If needed, see: https://github.com/yurith-rubio/Devotify/blob/pr-2/.github/workflows/merge-scheduled.yml |
correct
This doesn't look right
When you paste
Every minute would be this
However, note that GitHub won't run your action every minute, even when you set the schedule like this. And each time it runs it will take up some of your action minutes, you will have free minutes if the repository is free, but eventually you will run out of it. I'd suggest to not go below every 30 minutes, like so
Note that the Hope that helps |
Sorry to hijack, but just want to make sure I understand. The schedule needs to be defined, and if I set a very specific time in the PR using |
correct. |
It might be worth to make it more clear how this action works in the README? PRs welcome |
I am trying with the following (which is really almost a copy paste from the Readme): https://github.com/kstatelibrariesit/status.its.lib.k-state.edu/blob/main/.github/workflows/merge-schedule.yml However, it doesn't seem to get scheduled or merged? Am I missing a step to have it recognize the schedule command in kstatelibraries/status.its.lib.k-state.edu#4 (comment) ? Thanks! |
Same issue I am encountering and PR is not being merged automatically |
Same issue, waited 2 hours after scheduled time but PR never merged. Does the workflow have to be in main branch already? # https://github.com/marketplace/actions/merge-schedule
# https://github.com/gr2m/merge-schedule-action
name: Merge Schedule
on:
pull_request:
types:
- opened
- edited
- synchronize
schedule:
# https://crontab.guru/every-hour
- cron: "0 * * * *"
jobs:
merge_schedule:
runs-on: ubuntu-latest
steps:
- uses: gr2m/merge-schedule-action@v2
with:
# Merge method to use. Possible values are merge, squash or
# rebase. Default is merge.
merge_method: squash
# Time zone to use. Default is UTC.
# time_zone: 'America/Los_Angeles'
# Require all pull request statuses to be successful before
# merging. Default is `false`.
require_statuses_success: "true"
# Label to apply to the pull request if the merge fails. Default is
# `automerge-fail`.
automerge_fail_label: "merge-schedule-failed"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@gr2m I found incorrect handling of If you look at documentation of this endpoint there is information about
So if |
I could see a racing condition problem where a status is not yet set by your CI. Any thoughts? Happy to accept a pull request to account for that behavior and just see how it goes for folks |
I'm having the same issue. |
I believe I am having the same issue. The job comments in my PR that it's scheduled and my cron is set to every minute (self-hosted runners), however it just never does anything. I never see this happen |
Hi! First time trying this wonderful extension.
I've added /schedule 2022-06-15T15:43:50+0200 to my PR, and it seems that the extension understood it , but it has not merged it yet. What am I doing wrong?
Here's my workflow:
The text was updated successfully, but these errors were encountered: