From 27df6852c64c72c61700e610c968fbd53a648f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Wed, 23 Jul 2025 09:20:14 +0000 Subject: [PATCH] ci: Add community-bot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: oliver könig --- .github/workflows/close-inactive-issue-pr.yml | 32 +------------------ .github/workflows/community-bot.yml | 13 ++++++++ 2 files changed, 14 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/community-bot.yml diff --git a/.github/workflows/close-inactive-issue-pr.yml b/.github/workflows/close-inactive-issue-pr.yml index de0d223d..b81f8293 100644 --- a/.github/workflows/close-inactive-issue-pr.yml +++ b/.github/workflows/close-inactive-issue-pr.yml @@ -1,16 +1,3 @@ -# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. name: Stale-Close-Inactive-Issues-PRs on: schedule: @@ -18,21 +5,4 @@ on: jobs: close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v6 - with: - operations-per-run: 100 - days-before-issue-stale: 30 - days-before-issue-close: 7 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days." - close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." - days-before-pr-stale: 14 - days-before-pr-close: 7 - stale-pr-message: "This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days." - close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale." - repo-token: ${{ secrets.GITHUB_TOKEN }} + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_close_inactive_issue_pr.yml@v0.44.0 diff --git a/.github/workflows/community-bot.yml b/.github/workflows/community-bot.yml new file mode 100644 index 00000000..acdca257 --- /dev/null +++ b/.github/workflows/community-bot.yml @@ -0,0 +1,13 @@ +name: Community Bot + +on: + issues: + types: [opened, edited, reopened, closed, deleted] + issue_comment: + types: [created, edited, deleted] + +jobs: + community-bot: + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_community_bot.yml@v0.44.0 + secrets: + GH_TOKEN: ${{ secrets.PAT }}