From 8f6eafca9fd0f440563794d215d21c31e1f05262 Mon Sep 17 00:00:00 2001 From: David Pine Date: Tue, 18 Mar 2025 10:18:16 -0500 Subject: [PATCH 1/2] Delete chore creation workflow --- .github/workflows/create-monthly-issues.yml | 59 --------------------- 1 file changed, 59 deletions(-) delete mode 100644 .github/workflows/create-monthly-issues.yml diff --git a/.github/workflows/create-monthly-issues.yml b/.github/workflows/create-monthly-issues.yml deleted file mode 100644 index 7b9ace0bed..0000000000 --- a/.github/workflows/create-monthly-issues.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Create monthly issues - -on: - schedule: - - cron: '0 0 24 * *' # Runs at midnight on the 24th of each month - workflow_dispatch: - -permissions: - contents: read - -jobs: - create-issue: - runs-on: ubuntu-latest - permissions: - issues: write - - steps: - - name: Harden Runner - uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 - with: - egress-policy: audit - - - name: Create GitHub Issue - uses: actions/github-script@660ec11d825b714d112a6bb9727086bc2cc500b2 #v7 - with: - script: | - const nextMonth = new Date(); - const currentMonth = nextMonth.getMonth(); - if (currentMonth === 11) { // December - nextMonth.setMonth(0); // January - nextMonth.setFullYear(nextMonth.getFullYear() + 1); - } else { - nextMonth.setMonth(currentMonth + 1); - } - const monthName = nextMonth.toLocaleString('default', { month: 'short' }); - const year = nextMonth.getFullYear(); - const monthEmojis = ['❄️', '❀️', '🌸', '🌧️', '🌼', 'β˜€οΈ', 'πŸŽ†', '🌞', 'πŸ‚', 'πŸŽƒ', '🍁', 'πŸŽ„']; - const month = nextMonth.getMonth(); - const emoji = monthEmojis[month]; - const issueTitle = `${emoji} Repo choresβ€”${monthName} ${year}`; - const issueBody = ` - - [ ] Check [UUF feedback](https://aka.ms/uuftriageapp) for `dotnet/docs-aspire` - - [ ] Fix build suggestions in `dotnet/docs-aspire` - - [ ] Check [broken links report](https://msit.powerbi.com/groups/me/reports/0a1183d7-baae-4d5d-9d71-7bb437e2b2b3/ReportSection5885348483cf9c5a907f?ctid=72f988bf-86f1-41af-91ab-2d7cd011db47&experience=power-bi) for `dotnet/docs-aspire`: #1863 - - [ ] Approve/merge CleanRepo PR - - [ ] Clean up hygiene items in [ADO board](https://dev.azure.com/msft-skilling/Content/_dashboards/dashboard/8132ec13-0654-4ffd-89a1-a1b9bcd77715) - - > [!NOTE] - > πŸ€– This issue was created using [.github/workflows/create-monthly-issues.yml](https://github.com/dotnet/docs-aspire/blob/main/.github/workflows/create-monthly-issues.yml). - `; - - github.rest.issues.create({ - owner: context.repo.owner, - repo: context.repo.repo, - title: issueTitle, - body: issueBody, - labels: ['Pri1', 'βš™οΈ repo-maintenance'], - assignees: ['IEvangelist'] - }); From 8676aa9c06a2d999e2b887da360e28f7067f16ae Mon Sep 17 00:00:00 2001 From: David Pine Date: Tue, 18 Mar 2025 13:26:37 -0500 Subject: [PATCH 2/2] Revisisted repoman.yml --- .repoman.yml | 123 +++------------------------------------------------ 1 file changed, 6 insertions(+), 117 deletions(-) diff --git a/.repoman.yml b/.repoman.yml index 0e26bac4af..11f44365b7 100644 --- a/.repoman.yml +++ b/.repoman.yml @@ -1,4 +1,4 @@ -revision: 4 +revision: 7 schema-version: 5 owner-ms-alias: adegeo @@ -13,56 +13,8 @@ config: - "### Page URL\n\n(.*)" issues: - unlabeled: "labeled" - - labeled: - # Temporary label to mark issues as updated for Quest. The label is instantly removed - - check: - - type: query - value: "length(Issue.Labels[?Name == ':world_map: mapQUEST']) != `0`" - pass: - - labels-remove: [":world_map: mapQUEST"] - - # Handle issues with /svc /subsvc labels from label bot - - check: - - type: query - value: "length(Issue.Labels[?contains(Name, '/svc') || contains(Name, '/subsvc')]) != `0`" - - # If the issue has a /svc or /subsvc label, it must be categorized otherwise it's considered untriaged - pass: - - check: - - type: query - value: "length(Issue.Labels[?Name == ':pushpin: seQUESTered' || Name == ':world_map: reQUEST' || Name == 'training-module' || Name == 'doc-enhancement' || Name == 'product-question' || Name == 'in-progress' || Name == 'test-issue' || Name == 'kudos' || Name == 'loc' || Name == 'doc-bug' || Name == 'product-feedback' || Name == 'code-of-conduct' || Name == 'support-request' || Name == 'duplicate' || Name == 'resolved-by-customer' || Name == 'docs-experience' || Name == 'doc-provided' || Name == 'doc-idea' || Name == 'needs-more-info']) != `0`" - pass: - - labels-remove: [":watch: Not Triaged"] - fail: - - labels-add: [":watch: Not Triaged"] opened: - # New issue opened, add Not Triaged - - labels-add: [":watch: Not Triaged"] - - # Dependabot opened issue, label it - - check: - - type: query - value: "Issue.User.Login == 'dependabot'" - pass: - - labels-add: ["dependencies"] - - # Try to detect an empty issue - - check: - - type: comment-body - value: "### Description[\\n\\r]+\\[Enter feedback here\\][\\n\\r]+###" - pass: - - labels-add: ["needs-more-info"] - - labels-remove: [":watch: Not Triaged"] - - close - - # Add metadata - - check: - - type: metadata-exists - pass: - - svc_subsvc_labels: true # Add links to related issues if it's a doc issue - check: @@ -72,22 +24,10 @@ issues: pass: - link-related-issues - reopened: - # Remove won't fix label - - labels-remove: ["won't fix"] - - closed: - - # Issue closed, remove in-progress and not triaged labels - - labels-remove: ["in-progress", ":watch: Not Triaged"] - - # Check if the issue was closed by the user who opened it - check: - - type: query - value: "Issue.User.Id == EventPayload.sender.id" + - type: metadata-exists pass: - - labels-add: ["resolved-by-customer"] - - labels-remove: [":watch: Not Triaged"] + - svc_subsvc_labels: true projects_v2_item: @@ -104,61 +44,10 @@ projects_v2_item: - labels-add: [":world_map: mapQUEST"] pull_request: + reopened: opened opened: - # Set default sprint for new PRs - - milestone-set: "![sprint]" - - check: - - type: query - value: "PullRequest.base.ref != 'live'" - pass: - - files-changed: - # storage - - path: "(?i).*docs\/storage.*" - run: - - labels-add: ["storage"] - - # caching - - path: "(?i).*docs\/caching.*" - run: - - labels-add: ["caching"] - - # messaging - - path: "(?i).*docs\/messaging.*" - run: - - labels-add: ["messaging"] - - # database - - path: "(?i).*docs\/database.*" - run: - - labels-add: ["database"] - - # security - - path: "(?i).*docs\/security.*" - run: - - labels-add: ["security"] - - # deployment - - path: "(?i).*docs\/deployment.*" - run: - - labels-add: ["deployment"] - - # fundamentals - - path: "(?i).*docs\/fundamentals.*" - run: - - labels-add: ["fundamentals"] - - path: "(?i).*docs\/service-discovery.*" - run: - - labels-add: ["fundamentals"] - - # getting started - - path: "(?i).*docs\/get-started.*" - run: - - labels-add: ["getting-started"] - - # reference - - path: "(?i).*docs\/reference.*" - run: - - labels-add: ["reference"] + # Set default sprint for new PRs + - milestone-set: "![sprint]" \ No newline at end of file