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