You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2022/02/26 01:02:13 UTC

[trafficcontrol] branch master updated: Assign Triage Role GHA: Use defaults if inputs are not set (#6556)

This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 577b2f1  Assign Triage Role GHA: Use defaults if inputs are not set (#6556)
577b2f1 is described below

commit 577b2f14bcadc0f2d95db8909eeee1f3cd248809
Author: Zach Hoffman <zr...@apache.org>
AuthorDate: Fri Feb 25 17:02:00 2022 -0800

    Assign Triage Role GHA: Use defaults if inputs are not set (#6556)
---
 .github/workflows/assign-triage-role.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/assign-triage-role.yml b/.github/workflows/assign-triage-role.yml
index 635f2f4..07e75a0 100644
--- a/.github/workflows/assign-triage-role.yml
+++ b/.github/workflows/assign-triage-role.yml
@@ -33,6 +33,10 @@ on:
     # 14:00 UTC on the first day of each month
     - cron: '0 14 1 * *'
 
+env:
+  DEFAULT_MINIMUM_COMMITS: '2'
+  DEFAULT_SINCE_DAYS_AGO: '31'
+
 jobs:
   assign-triage-role:
     runs-on: ubuntu-latest
@@ -54,5 +58,5 @@ jobs:
         env:
           GIT_AUTHOR_NAME: asfgit
           GITHUB_TOKEN: ${{ github.token }}
-          MINIMUM_COMMITS: '${{ github.event.inputs.minimum-commits }}'
-          SINCE_DAYS_AGO: '${{ github.event.inputs.since-days-ago }}'
+          MINIMUM_COMMITS: '${{ github.event.inputs.minimum-commits || env.DEFAULT_MINIMUM_COMMITS }}'
+          SINCE_DAYS_AGO: '${{ github.event.inputs.since-days-ago || env.DEFAULT_SINCE_DAYS_AGO }}'