From 587ec2b50f7118e22ca3470d8e0c762331d4e99f Mon Sep 17 00:00:00 2001 From: Lior Kamrat Date: Tue, 11 Feb 2025 21:33:47 -0800 Subject: [PATCH] updating stale --- .github/policies/issues.yml | 116 --------------- .github/policies/pullrequests.yml | 133 ------------------ .github/workflows/stale-branches.yml | 31 ++++ .github/workflows/stale-issues-pr.yml | 20 +++ README.md | 2 + docs/FAQ/_index.md | 4 +- docs/azure_arc_jumpstart/FAQ/_index.md | 2 +- .../day2/multi_distributions/gitops/_index.md | 4 +- 8 files changed, 58 insertions(+), 254 deletions(-) delete mode 100644 .github/policies/issues.yml delete mode 100644 .github/policies/pullrequests.yml create mode 100644 .github/workflows/stale-branches.yml create mode 100644 .github/workflows/stale-issues-pr.yml diff --git a/.github/policies/issues.yml b/.github/policies/issues.yml deleted file mode 100644 index 76faa286..00000000 --- a/.github/policies/issues.yml +++ /dev/null @@ -1,116 +0,0 @@ -name: Housekeeping - Issues management -description: Azure Arc Jumpstart management of issues using GitHub Policies -owner: -resource: repository -disabled: false -where: -configuration: - resourceManagementConfiguration: - scheduledSearches: - - description: - frequencies: - - hourly: - hour: 3 - filters: - - isIssue - - isOpen - - hasLabel: - label: needs author feedback - - noActivitySince: - days: 7 - - isNotLabeledWith: - label: no recent activity - actions: - - addLabel: - label: no recent activity - - addReply: - reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**. Thank you ${issueAuthor} for your contributions to the repository! - - description: - frequencies: - - hourly: - hour: 3 - filters: - - isIssue - - isOpen - - hasLabel: - label: no recent activity - - noActivitySince: - days: 14 - actions: - - addReply: - reply: Because of no activity for over **14 days**, we're closing this issue. Please open a new issue report if more support is required. Thank you for your support ${issueAuthor}! - - closeIssue - - description: - frequencies: - - hourly: - hour: 12 - filters: - - isOpen - - isIssue - - hasLabel: - label: investigate - - noActivitySince: - days: 3 - actions: - - addReply: - reply: "${assignees}\nGentle ping that this issue needs attention. " - eventResponderTasks: - - if: - - payloadType: Issues - - isAction: - action: Opened - then: - - addReply: - reply: 'Hi ${issueAuthor}! Thank you for opening this issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on the Azure Arc Jumpstart.' - description: - - if: - - payloadType: Issue_Comment - - hasLabel: - label: no recent activity - - isAction: - action: Created - - isOpen - then: - - removeLabel: - label: no recent activity - - addLabel: - label: investigate - description: - - if: - - payloadType: Issues - - not: - isAction: - action: Closed - - hasLabel: - label: no recent activity - - not: - labelAdded: - label: no recent activity - then: - - removeLabel: - label: no recent activity - description: - - if: - - payloadType: Issue_Comment - then: - - cleanEmailReply - description: - - if: - - payloadType: Issue_Comment - - isActivitySender: - issueAuthor: True - - or: - - hasLabel: - label: needs author feedback - - hasLabel: - label: no recent activity - then: - - removeLabel: - label: needs author feedback - - removeLabel: - label: no recent activity - - addLabel: - label: review - description: -onFailure: -onSuccess: diff --git a/.github/policies/pullrequests.yml b/.github/policies/pullrequests.yml deleted file mode 100644 index f33b183f..00000000 --- a/.github/policies/pullrequests.yml +++ /dev/null @@ -1,133 +0,0 @@ -name: Housekeeping - PRs management -description: Azure Arc Jumpstart management of PRs using GitHub Policies -owner: -resource: repository -disabled: false -where: -configuration: - resourceManagementConfiguration: - scheduledSearches: - - description: - frequencies: - - hourly: - hour: 3 - filters: - - isPullRequest - - isOpen - - hasLabel: - label: needs author feedback - - noActivitySince: - days: 7 - - isNotLabeledWith: - label: no recent activity - actions: - - addLabel: - label: no recent activity - - addReply: - reply: This pull request has been automatically marked as stale because it was marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**. Thank you ${issueAuthor} for your contributions to this project! - - description: - frequencies: - - hourly: - hour: 3 - filters: - - isOpen - - isPullRequest - - hasLabel: - label: no recent activity - - noActivitySince: - days: 14 - actions: - - addReply: - reply: Because of no activity for over **14 days**, we're closing this pull request. Please open a new issue report if more support is required. Thank you for your support ${issueAuthor}! - - description: - frequencies: - - hourly: - hour: 12 - filters: - - isOpen - - isPullRequest - - hasLabel: - label: investigate - - noActivitySince: - days: 3 - actions: - - addReply: - reply: "${assignees}\nGentle ping that this issue needs attention. " - eventResponderTasks: - - if: - - payloadType: Pull_Request - - isAction: - action: Opened - then: - - addReply: - reply: 'Hi ${issueAuthor}! Thank you for opening this Pull Request. Someone will review it soon. Thank you for committing to making the Azure Arc Jumpstart better.' - description: - - if: - - payloadType: Pull_Request_Review - - isAction: - action: Submitted - - isReviewState: - reviewState: Changes_requested - then: - - addLabel: - label: needs author feedback - description: - - if: - - payloadType: Pull_Request - - isActivitySender: - issueAuthor: True - - not: - isAction: - action: Closed - - or: - - hasLabel: - label: needs author feedback - - hasLabel: - label: no recent activity - then: - - removeLabel: - label: needs author feedback - - removeLabel: - label: no recent activity - - addLabel: - label: review - description: - - if: - - payloadType: Pull_Request - - isAction: - action: Null - - isOpen - then: - - addLabel: - label: review - description: - - if: - - payloadType: Pull_Request_Review - - isAction: - action: Submitted - - isOpen - then: - - removeLabel: - label: review - - removeLabel: - label: no recent activity - description: - - if: - - payloadType: Pull_Request_Review - - isActivitySender: - issueAuthor: True - - or: - - hasLabel: - label: needs author feedback - - hasLabel: - label: no recent activity - then: - - removeLabel: - label: needs author feedback - - removeLabel: - label: no recent activity - - addLabel: - label: review - description: -onFailure: -onSuccess: diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml new file mode 100644 index 00000000..a4ccf685 --- /dev/null +++ b/.github/workflows/stale-branches.yml @@ -0,0 +1,31 @@ +name: Stale Branches + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +permissions: + issues: write + contents: write + +jobs: + stale_branches: + runs-on: ubuntu-latest + steps: + - name: Stale Branches + uses: crs-k/stale-branches@v5.0.0 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + days-before-stale: 45 + days-before-delete: 60 + comment-updates: false + tag-committer: false + stale-branch-label: 'stale branch 🗑️' + compare-branches: 'info' + branches-filter-regex: '^((?!dependabot))' + rate-limit: false + pr-check: false + dry-run: false + ignore-issue-interaction: false + \ No newline at end of file diff --git a/.github/workflows/stale-issues-pr.yml b/.github/workflows/stale-issues-pr.yml new file mode 100644 index 00000000..b0fd4862 --- /dev/null +++ b/.github/workflows/stale-issues-pr.yml @@ -0,0 +1,20 @@ +name: 'Stale Issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 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 stalled for 5 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' + days-before-issue-stale: 21 + days-before-pr-stale: 30 + days-before-issue-close: 5 + days-before-pr-close: 7 diff --git a/README.md b/README.md index af9b43b3..18dc2122 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Stale Issues and PRs](https://github.com/Azure/arc_jumpstart_docs/actions/workflows/stale-issues-pr.yml/badge.svg?branch=main)](https://github.com/Azure/arc_jumpstart_docs/actions/workflows/stale-issues-pr.yml) [![Stale Branches](https://github.com/Azure/arc_jumpstart_docs/actions/workflows/stale-branches.yml/badge.svg)](https://github.com/Azure/arc_jumpstart_docs/actions/workflows/stale-branches.yml) + # Arc Jumpstart documentation Welcome to the Arc Jumpstart documentation repository! This repository is your go-to resource for in-depth guides, best practices, and detailed documentation related to Azure Arc. Whether you're a beginner exploring the basics or an experienced user optimizing your deployment, you'll find valuable insights tailored to your needs. This repository complements our [source code repository](https://aka.ms/JumpstartGitHubCode) and acts has the documentation source repository which populates the [Arc Jumpstart](https://aka.ms/arcjumpstart) website. diff --git a/docs/FAQ/_index.md b/docs/FAQ/_index.md index 5d649ba2..610c385f 100644 --- a/docs/FAQ/_index.md +++ b/docs/FAQ/_index.md @@ -9,7 +9,7 @@ weight: 8 ## Can I contribute to the Arc Jumpstart? -Absolutely! Arc Jumpstart is a community-driven open source project, and contributions are welcomed. To get started, review the [Jumpstart contribution guidelines](../contribution_guidelines/) and our [Code of Conduct](https://aka.ms/JumpstartCOC). +Absolutely! Arc Jumpstart is a community-driven open-source project, and contributions are welcomed. To get started, review the [Jumpstart contribution guidelines](../contribution_guidelines/) and our [Code of Conduct](https://aka.ms/JumpstartCOC). ## Are any of the Arc Jumpstart documents created with AI assistance? @@ -29,7 +29,7 @@ Each Arc Jumpstart scenario and solution describes what is needed to run the aut ## Is Arc Jumpstart considered "production-ready"? -The intention of the Arc Jumpstart is to focus on the core Azure Arc, edge, and IoT capabilities, deployment scenarios, use cases, and ease of use. It does not focus on Azure best practices, and/or other products or open source projects being leveraged in our code. Jumpstart Scenarios, ArcBox, HCIBox, and Agora are all intended for evaluation, training, and demo purposes only and are not supported for production use cases. +The intention of the Arc Jumpstart is to focus on the core Azure Arc, edge, and IoT capabilities, deployment scenarios, use cases, and ease of use. It does not focus on Azure best practices, and/or other products or open-source projects being leveraged in our code. Jumpstart Scenarios, ArcBox, HCIBox, and Agora are all intended for evaluation, training, and demo purposes only and are not supported for production use cases. ## Is there guidance on how to run a demo using the Arc Jumpstart? diff --git a/docs/azure_arc_jumpstart/FAQ/_index.md b/docs/azure_arc_jumpstart/FAQ/_index.md index 43ac150b..547319fc 100644 --- a/docs/azure_arc_jumpstart/FAQ/_index.md +++ b/docs/azure_arc_jumpstart/FAQ/_index.md @@ -9,4 +9,4 @@ weight: 8 ## Can I contribute to the Arc Jumpstart Scenarios? -Absolutely! Arc Jumpstart Scenarios follows the Arc Jumpstart community-driven open source project vision, and contributions are welcomed. To get started, review the [Jumpstart contribution guidelines](../contribution_guidelines/) and our [Code of Conduct](https://aka.ms/JumpstartCOC). \ No newline at end of file +Absolutely! Arc Jumpstart Scenarios follows the Arc Jumpstart community-driven open-source project vision, and contributions are welcomed. To get started, review the [Jumpstart contribution guidelines](../contribution_guidelines/) and our [Code of Conduct](https://aka.ms/JumpstartCOC). \ No newline at end of file diff --git a/docs/azure_arc_jumpstart/azure_arc_k8s/day2/multi_distributions/gitops/_index.md b/docs/azure_arc_jumpstart/azure_arc_k8s/day2/multi_distributions/gitops/_index.md index 7730d50a..6b00d69e 100644 --- a/docs/azure_arc_jumpstart/azure_arc_k8s/day2/multi_distributions/gitops/_index.md +++ b/docs/azure_arc_jumpstart/azure_arc_k8s/day2/multi_distributions/gitops/_index.md @@ -17,9 +17,9 @@ The following Jumpstart scenario will guide you how to use GitOps [GitOps for Az - [Deploy EKS cluster and connect it to Azure Arc using Terraform](/azure_arc_jumpstart/azure_arc_k8s/eks/eks_terraform/) - [Deploy GKE cluster and connect it to Azure Arc using Terraform](/azure_arc_jumpstart/azure_arc_k8s/gke/gke_terraform/) - > **Note:** This guide assumes you already have deployed Calico network policy in your cluster. If you haven't, you can use our installation guides for Calico open source or Calico Cloud. + > **Note:** This guide assumes you already have deployed Calico network policy in your cluster. If you haven't, you can use our installation guides for Calico open-source or Calico Cloud. -- [Deploy Calico open source in your managed public cluster](https://projectcalico.docs.tigera.io/getting-started/kubernetes/managed-public-cloud/) +- [Deploy Calico open-source in your managed public cluster](https://projectcalico.docs.tigera.io/getting-started/kubernetes/managed-public-cloud/) - [Sign up for a Calico Cloud trial](https://www.calicocloud.io/?utm_campaign=calicocloud&utm_medium=digital&utm_source=microsoft) Calico Network Policy provides the [Network Set](https://projectcalico.docs.tigera.io/archive/v3.21/reference/resources/networkset) resource to label an arbitrary set of IP subnetworks/CIDRs, allowing it to be matched by Calico policy.