• Stars
    star
    138
  • Rank 263,536 (Top 6 %)
  • Language
    TypeScript
  • License
    ISC License
  • Created almost 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GitHub Action to merge pull requests on a scheduled day

merge-schedule-action

GitHub Action to merge pull requests on a scheduled day

Usage

Create .github/workflows/merge-schedule.yml

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 }}

In your pull requests, add a line to the end of the pull request description looking like this

/schedule 2022-06-08

If you need a more precise, timezone-safe setting, you can use an ISO 8601 date string

/schedule 2022-06-08T09:00:00.000Z

Or if you want to merge the next time the merge action is scheduled via the cron expressions, you can leave the date empty

/schedule

Any string that works with the new Date() constructor will work.

To control at which time of the day you want the pull request to be merged, I recommend adapting the - cron: ... setting in the workflow file.

The action sets a pending commit status if the pull request was recognized as being scheduled.

Note that pull requests from forks are ignored for security reasons.

License

ISC

More Repositories

1

twitter-together

🐦 A GitHub action to tweet from a repository
JavaScript
598
star
2

awesome-buttons

awesome buttons!
HTML
413
star
3

CORS-Proxy

über-simple node.js-Proxy to enable CORS request for any website
JavaScript
380
star
4

appcache-nanny

Auto Updates for Offline First Applications
JavaScript
210
star
5

cloudflare-worker-github-oauth-login

Use a Cloudflare worker for GitHub's OAuth login flow
HTML
109
star
6

octokit-plugin-create-pull-request

Octokit plugin to create a pull request with multiple file changes
TypeScript
91
star
7

javascript-plugin-architecture-with-typescript-definitions

Plugin architecture example with full TypeScript support
TypeScript
82
star
8

before-after-hook

wrap methods with before/after hooks
JavaScript
73
star
9

milestones

A GitHub backed Milestone thingy
JavaScript
70
star
10

create-or-update-pull-request-action

A GitHub Action to create or update a pull request based on local changes
JavaScript
67
star
11

editable-table

A web component for editing a collection of records
JavaScript
50
star
12

initials

extract initials from and add initials to names
JavaScript
44
star
13

moment-parseformat

A moment.js plugin to extract the format of a date/time string
JavaScript
44
star
14

github-project

JavaScript SDK for GitHub's new Projects
JavaScript
34
star
15

cloudflare-worker-github-app-example

A Cloudflare Worker + GitHub App Example
JavaScript
27
star
16

find-hearted-contributions

Find contributions that you bookmarked by adding a heart emoji
JavaScript
27
star
17

spawn-pouchdb-server

Configurable per-app pouchdb-server as a drop-in replacement for CouchDB
JavaScript
26
star
18

restaurant-graphql

A tasty introduction to GraphQL
JavaScript
25
star
19

pdf-editor

WYSIWYG PDF-Editor, plugin-free, using pdfkit and pdf.js
HTML
25
star
20

phantomjs-console

Control a headless browser console right from your terminal
CoffeeScript
25
star
21

localstorage-memory

localStorage-compatible API, but only stored in memory
JavaScript
22
star
22

to-id

Normalises strings for comparison or usage as IDs
JavaScript
21
star
23

helpdesk

Answering all your GitHub API/automation questions live on Twitch
JavaScript
20
star
24

navigable-table

A Bootstrap plugin for elegant navigating along table inputs
JavaScript
19
star
25

couchdb-view-tester

Your friendly helper to quickly iterate on CouchDB views
JavaScript
19
star
26

octokit-plugin-rename-branch

Octokit plugin to rename a branch in a github repository
TypeScript
18
star
27

glitch-github-app

Deploy Probot apps using a web-based setup form
HTML
18
star
28

universal-user-agent

Get a user agent string in both browser and node
JavaScript
17
star
29

release-notifier-action

GitHub Action to notify repositories about the repository's releases using a GitHub App
JavaScript
14
star
30

universal-github-app-jwt

Calculate GitHub App bearer tokens for Node & modern browsers
JavaScript
14
star
31

semantic-release-plugin-update-version-in-files

Turns GitHub REST API endpoints into generic request options
JavaScript
13
star
32

get-json-paths-action

A GitHub Action to access deep values of JSON strings
JavaScript
13
star
33

couchdb-user-management-app

Web app to manage CouchDB users and database security settings
JavaScript
12
star
34

contenteditable-autocomplete

Autocomplete for contenteditable tags
JavaScript
11
star
35

dream-pdf

A modular JavaScript library to create PDFs
JavaScript
11
star
36

octokit.rest

Sourcode for the octokit.rest website
JavaScript
11
star
37

wkhtmltopdf-node-heroku

Example node app for heroku, that converts any publicly available URL to a PDF
JavaScript
10
star
38

app-stats-action

JavaScript
10
star
39

humble-localstorage

wraps localStorage and adds .getObject(), .setObject(), .isPersistent
JavaScript
9
star
40

expandable-input

A Bootstrap plugin to use <{span|div|...} contenteditable> as auto-expanding inputs.
JavaScript
9
star
41

sandbox

@gr2m's little sandbox to play
JavaScript
9
star
42

browser-supports-log-styles

returns true if browser supports console log styling
JavaScript
9
star
43

nice-tables

some simple CSS magic for a basic treatment of tables
HTML
8
star
44

octokit-release-asset-upload

Upload files to a GitHub Release from Node and the browser
JavaScript
7
star
45

testmate

A humble cross node/browser/saucelabs test runner
JavaScript
7
star
46

open-purse

Transparently share revenue from GitHub sponsors and GitHub App marketplace subscriptions. Coming soon!
HTML
6
star
47

ideas

a place for my side project ideas. Come build them with me :)
6
star
48

octokit-oauth-app-now-example

Serverless OAuth API using @octokit/oauth-app & now
TypeScript
6
star
49

github-api-wishlist

A curated wishlist for GitHub's APIs.
6
star
50

github-openapi-graphql-query

Send GraphQL queries against GitHub's REST API specifications
JavaScript
6
star
51

merge-dependency-update-prs

Load Dependbapot PRs from your notifications, merge the green ones and remove notifications
JavaScript
5
star
52

write-csv-file-action

GitHub Action to append a row to a CSV file
JavaScript
5
star
53

semantic-release-github-npm-registry

semantic-release plugin to publish an npm package to GitHub’s npm registry
5
star
54

has-localstorage

returns true if localStorage is supported _and_ persistent
JavaScript
5
star
55

node-net-interceptor

Intercept outgoing network TCP/TLS connections
JavaScript
5
star
56

org-stats-action

A GitHub Action to track statistics for a GitHub organization in a CSV file
JavaScript
5
star
57

create-user-to-server-token

Static website to generate user-to-server tokens scoped to a GitHub App's installations and permissions
HTML
5
star
58

github-app-slack-demo

A minimal GitHub App that integrates with Slack
JavaScript
5
star
59

axios-upload-stream

JavaScript
5
star
60

github-actions-sentry-example

GitHub Action example that sends errors to Sentry
JavaScript
4
star
61

await-npm-package-version-action

GitHub Action to wait for an npm package version to become available
JavaScript
4
star
62

add-coc

Script for https://github.com/gr2m/mutate-github-repositories-cli to create a CODE_OF_CONDUCT.md file unless already present
JavaScript
4
star
63

universal-esm-packages-test

Universal ES Module test
JavaScript
4
star
64

github-organization-repository-auditing-action

A GitHub Action to audit repository access across an organization
JavaScript
4
star
65

octokit-oauth-app-begin-example

serverless example using begin.com
JavaScript
4
star
66

gr2m

it me!
4
star
67

node-http-recorder

Library agnostic in-process recording of http(s) requests and responses
JavaScript
4
star
68

couchdb-remove-conflicts

CLI tool to remove all conflicts from a CouchDB database
JavaScript
4
star
69

github-webhook-relay

Receive webhooks from a GitHub repository via WebSocket
JavaScript
4
star
70

cowsay-action

The cowsay GitHub Action written in JavaScript
JavaScript
3
star
71

my-AI-adventure

A work-in-progress Idea to generate stories where your own children are the main characters
3
star
72

octokit-rest-plugin-example

@octokit/rest plugin example
JavaScript
3
star
73

status.hood.ie

CSS
3
star
74

create-pull-request-comment-action-example

3
star
75

set-cron-schedule-action

Set the cron schedule for a GitHub Action
JavaScript
3
star
76

BaBoCoCo

BackboneConf Contacts!
3
star
77

octoherd-script-bump-node-version-in-workflows

Octoherd script to set the node-version input for actions/setup-node to the latest LTS major version
JavaScript
3
star
78

node-live-sync

watches for file changes and syncs via sftp (more options to be added)
JavaScript
3
star
79

node-http-interceptor

Intercept and mock outgoing http/https requests
JavaScript
3
star
80

bahncard-calculator

because FUUUU bahn.de
CoffeeScript
3
star
81

node-bin-example

minimalistic CLI tool example
JavaScript
3
star
82

uscis-service-center-processing-times

Get processing time for one or all USCIS service centers
JavaScript
3
star
83

octokit-webhooks.js-legacy

Node.js web handler / middleware for processing GitHub Webhooks
JavaScript
3
star
84

octokit-plugin-hello-world

Simple Octokit.js plugin for demo purposes
TypeScript
3
star
85

localstorage-tutorial

Build a simple HTML page that stores data in and renders data from localStorage
JavaScript
3
star
86

github-webhook-relay-cli

CLI to receive webhooks from a GitHub repository via WebSocket and forward them to your localhost server
JavaScript
2
star
87

github-openapi-graphql-server

GraphQL Server to query GitHub REST API specifications
JavaScript
2
star
88

pouchdb-attachments-sync-test

PouchDB Sync Test for attachments
HTML
2
star
89

octokit-rest-plugin-add-endpoints

@octokit/rest plugin to add endpoint methods based on a routes.json file
JavaScript
2
star
90

boop-gregors-nose-test

2
star
91

Mad-Libs-Forms

a how-to for mad lips styled form that are claimed to "Increase Conversion 25-40%"
HTML
2
star
92

pingapp-client

HTML5 client for http://ping.ushahidi.com/
JavaScript
2
star
93

watch-single-file-action-example

JavaScript
2
star
94

bootstrap.modalform.js

simple method to create dynamic forms embedded in bootstrap modals
JavaScript
2
star
95

mite.goal

A simple, HTML-based app to set and visualize goals for time or revenue tracked with mite (http://mite.yo.lk/)
JavaScript
2
star
96

selsa

Selenium, Saucelabs, Webdriver and lots of despair
JavaScript
2
star
97

octokit-plugin-get-semantic-releases

Get repository releases with semantic version tags (e.g. `v1.2.3`, `v2.0.0-beta.1`, etc)
TypeScript
2
star
98

riot-router-example

simple riot.js app with route-based content toggling
HTML
2
star
99

boop-gregors-nose

CLI to boop my nose
JavaScript
2
star
100

github-graphql-demo

An example GitHub dashboard implemented using REST & GraphQL for comparison
JavaScript
2
star