From 13b38a34db3ec145396dff652869eb0297195a99 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 27 Feb 2024 08:38:04 -0800 Subject: [PATCH 1/2] Update github-event-processor --- .github/event-processor.config | 3 ++- .github/workflows/event-processor.yml | 2 +- .github/workflows/scheduled-event-processor.yml | 14 +++++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/event-processor.config b/.github/event-processor.config index aa8d4f71b05..a0b2b0ae230 100644 --- a/.github/event-processor.config +++ b/.github/event-processor.config @@ -21,5 +21,6 @@ "IdentifyStaleIssues": "Off", "IdentifyStalePullRequests": "On", "CloseAddressedIssues": "Off", - "LockClosedIssues": "Off" + "LockClosedIssues": "Off", + "EnforceMaxLifeOfIssues": "Off" } diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 81fe0eedf33..c2b77c022b4 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -55,7 +55,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240216.5 + --version 1.0.0-dev.20240227.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 0028f1b0c4d..79775073a2b 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -14,6 +14,8 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' + # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues + - cron: '0 10 * * MON' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -34,7 +36,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240216.5 + --version 1.0.0-dev.20240227.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -126,3 +128,13 @@ jobs: shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Enforce Max Life of Issues Scheduled Event + if: github.event.schedule == '0 10 * * MON' + run: | + echo $GITHUB_PAYLOAD > payload.json + github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues + shell: bash + env: + GITHUB_PAYLOAD: ${{ toJson(github.event) }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 74c154adc823d4e4f403fdde99a82d3e089f81ca Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 27 Feb 2024 09:04:07 -0800 Subject: [PATCH 2/2] Just update the version for the updated CodeownersUtils --- .github/event-processor.config | 3 +-- .github/workflows/scheduled-event-processor.yml | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/event-processor.config b/.github/event-processor.config index a0b2b0ae230..aa8d4f71b05 100644 --- a/.github/event-processor.config +++ b/.github/event-processor.config @@ -21,6 +21,5 @@ "IdentifyStaleIssues": "Off", "IdentifyStalePullRequests": "On", "CloseAddressedIssues": "Off", - "LockClosedIssues": "Off", - "EnforceMaxLifeOfIssues": "Off" + "LockClosedIssues": "Off" } diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 79775073a2b..ae2ed2c1fd3 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -14,8 +14,6 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' - # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues - - cron: '0 10 * * MON' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -128,13 +126,3 @@ jobs: shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Enforce Max Life of Issues Scheduled Event - if: github.event.schedule == '0 10 * * MON' - run: | - echo $GITHUB_PAYLOAD > payload.json - github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues - shell: bash - env: - GITHUB_PAYLOAD: ${{ toJson(github.event) }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}