peternied / bake-time

GitHub Action to ensure pull requests bake before merging
Apache License 2.0
0 stars 1 forks source link

bake-time

Github actions to add a bake time check / finish pull requests that have fully baked

inputs:
  delay-hours:
    description: How many hours before pull requests have finished baking
    default: 24
    required: false
  ignore-non-push-updates:
    description: Controls if the bake timer uses the last update to the PR like approvals or the just the date of the merge commit GitHub creates to calculate the remaining time
    default: "true"
    required: false
  check-name:
    description: The name of the check that is used to block baking pull requests, recommend "Baking pull request..."
    required: true

Usage:

on:
  pull_request:
    types:
      - opened
      - synchronize
  workflow_dispatch:
  schedule:
    - cron: '0 */1 * * *' # Runs every 1 hour 
...
jobs:
  baking_pull_request:
    name: "Baking pull request..."
    runs-on: ubuntu-latest
    steps:
    - uses: peternied/bake-time@v3.3
      with:
        check-name: "Baking pull request..."
        delay-hours: 48

Example:

Pull request baking start

Bake time / Baking pull request... (pull_request)

Update while baking

Bake time / Baking pull request... (pull_request) Failing after 3s — 2 hours remain.

Baking completed

Bake time / Baking pull request... (pull_request) Successful in 5s — The bake time delay has passe

Changelog

v3.3

v3.2

v3.1

v3

v2

v1