From ab0a54859f2210dca769605e87998c0f9bb283cb Mon Sep 17 00:00:00 2001 From: "Brandon Waterloo [MSFT]" <36966225+bwateratmsft@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:04:53 -0500 Subject: [PATCH] Add workflows for issue cleanup --- .github/workflows/info-needed-closer.yml | 29 ++++++++++++++++++++++++ .github/workflows/locker.yml | 26 +++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/info-needed-closer.yml create mode 100644 .github/workflows/locker.yml diff --git a/.github/workflows/info-needed-closer.yml b/.github/workflows/info-needed-closer.yml new file mode 100644 index 0000000000..308b11d0cb --- /dev/null +++ b/.github/workflows/info-needed-closer.yml @@ -0,0 +1,29 @@ +name: Info Needed Closer +on: + schedule: + - cron: 30 5 * * * # 10:30pm PT + workflow_dispatch: + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Checkout Actions + uses: actions/checkout@v2 + with: + repository: "microsoft/vscode-github-triage-actions" + path: ./actions + ref: stable + - name: Install Actions + run: npm install --production --prefix ./actions + - name: Run Info Needed Closer + uses: ./actions/needs-more-info-closer + with: + app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }} + app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }} + app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }} + label: info-needed + closeDays: 14 + closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/azcodeissuereporting) guidelines.\n\nHappy Coding!" + pingDays: 80 + pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information." diff --git a/.github/workflows/locker.yml b/.github/workflows/locker.yml new file mode 100644 index 0000000000..4211dec732 --- /dev/null +++ b/.github/workflows/locker.yml @@ -0,0 +1,26 @@ +name: Locker +on: + schedule: + - cron: 0 5 * * * # 10:00pm PT + workflow_dispatch: + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Checkout Actions + uses: actions/checkout@v2 + with: + repository: "microsoft/vscode-github-triage-actions" + path: ./actions + ref: stable + - name: Install Actions + run: npm install --production --prefix ./actions + - name: Run Locker + uses: ./actions/locker + with: + app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }} + app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }} + app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }} + daysSinceClose: 45 + daysSinceUpdate: 7