Git Product home page Git Product logo

bake-time's Introduction

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

  • Baking pull requests will be updated with a message about how time remains.

v2

  • Combined into a single step where the trigger determines the behavior
  • Stopped using write operations during the 'pull_request' trigger, by default no write permissions are allowed [link]

v1

  • Initial Release

bake-time's People

Contributors

peternied avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.