From 72b5afebcd9c22a00da49af4f3b133b254bd01c4 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Tue, 24 Sep 2024 11:34:41 +0000 Subject: [PATCH 1/2] Check if 24h has passed since opening PR --- .github/workflows/bake.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/bake.yml diff --git a/.github/workflows/bake.yml b/.github/workflows/bake.yml new file mode 100644 index 000000000..25bddbed1 --- /dev/null +++ b/.github/workflows/bake.yml @@ -0,0 +1,21 @@ +# "Bake" workflow check if 24 hours have passed since opening pull request +# making sure that reviewers have enough time to review the code + +on: + pull_request: + types: + - opened + - synchronize + schedule: + - cron: '0 */1 * * *' # Runs every 1 hour + +jobs: + baking_pull_request: + name: "Baking pull request ..." + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: peternied/bake-time@v3.3 + with: + check-name: "Baking pull request..." + delay-hours: 24 From 429bb148592e97a2ed11d25368575e65940fbe1c Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Tue, 24 Sep 2024 12:01:56 +0000 Subject: [PATCH 2/2] Add workflow name --- .github/workflows/bake.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bake.yml b/.github/workflows/bake.yml index 25bddbed1..4389db9d4 100644 --- a/.github/workflows/bake.yml +++ b/.github/workflows/bake.yml @@ -1,6 +1,7 @@ # "Bake" workflow check if 24 hours have passed since opening pull request # making sure that reviewers have enough time to review the code +name: Bake for 24h on: pull_request: types: