Skip to content
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

Passing PR for action #298

Closed
brunomiranda-hotmart opened this issue Jan 9, 2023 · 2 comments
Closed

Passing PR for action #298

brunomiranda-hotmart opened this issue Jan 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@brunomiranda-hotmart
Copy link

Instead of using on: pull_request_target we would like to run as a cron:

on:
  schedule:
  - cron: '*/30 4-7 * * 1-4'

So it only merges during dawn and doesn't get in the way of our devs.

Does this configuration work?
If not would it be possible to change the action to have the pull request number (or url)?

@brunomiranda-hotmart brunomiranda-hotmart added the enhancement New feature or request label Jan 9, 2023
@jeffwidman
Copy link
Member

👋 sorry for the slow reply.

This action only fetches metadata, it does not do the automerging itself. The automerge examples on the readme are demonstrating how to write your own GitHub Actions workflow file that leverages the metadata provided by this action in order to decide whether to take additional steps... such as automerging.

So when you write your workflow file, then you decide how you wish to run it--cron, whatever.

@soumyamahunt
Copy link

@jeffwidman for the cron event example mentioned, how can we get dependabot metadata from pull request data(i.e. number, url)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants