From ddfbc442e97dff98985bdbf60a3ddbde9ab9856b Mon Sep 17 00:00:00 2001 From: Andrea Ghensi Date: Sat, 30 Mar 2024 09:59:49 +0100 Subject: [PATCH] chore: add custom slash commands for isssues --- .github/slash-commands.yml | 27 ++++++++++++++++++++++++ .github/workflows/issues-manager.yml | 20 ++++++++++++++++++ .github/workflows/needs-info-manager.yml | 13 ------------ 3 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 .github/slash-commands.yml create mode 100644 .github/workflows/issues-manager.yml delete mode 100644 .github/workflows/needs-info-manager.yml diff --git a/.github/slash-commands.yml b/.github/slash-commands.yml new file mode 100644 index 000000000..ce93b25b3 --- /dev/null +++ b/.github/slash-commands.yml @@ -0,0 +1,27 @@ +issues: + more-info: + label: + - needs-more-info + + install-fix: + comment: > + Hi @{{ author }}, Thy these steps: + + 1. Uninstall pyRevit + + 2. Delete C:\ProgramData and %AppData%\ pyRevit and pyrevit-master folders + + 3. Move all Revit addins to a temporary location. Usual addins locations include: + - %AppData%\Autodesk\Revit\Addins + - %AppData%\Autodesk\ApplicationPlugins + - %ProgramData%\Autodesk\Revit\Addins + - %ProgramData%\Autodesk\ApplicationPlugins + + 4. [Reboot computer] + + 5. Reinstall pyRevit + + 6. Started each version of Revit confirming pyRevit successfully compiled at startup. + + 7. Move all Revit addins that were moved in step 3 back to their original location. + You may want to add them one at a time and start a revit session everytime to figure out which ones are causing the issue. diff --git a/.github/workflows/issues-manager.yml b/.github/workflows/issues-manager.yml new file mode 100644 index 000000000..fba46c08d --- /dev/null +++ b/.github/workflows/issues-manager.yml @@ -0,0 +1,20 @@ +name: issues-manager +on: + issue_comment: + types: [created] + +jobs: + issue_commented: + runs-on: ubuntu-latest + steps: + - name: Custom Slash Commands + uses: wow-actions/slash-commands@v1.1.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: .github/slash-commands.yml + + - name: Pending Response Follow Up + uses: siegerts/pending-response@v1.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + pending-response-label: needs-more-info diff --git a/.github/workflows/needs-info-manager.yml b/.github/workflows/needs-info-manager.yml deleted file mode 100644 index a1b4c5451..000000000 --- a/.github/workflows/needs-info-manager.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: - issue_comment: - types: [created] - -jobs: - hello_world_job: - runs-on: ubuntu-latest - name: Toggle needs-more-info label - steps: - - name: Toggle needs-more-info label of issues - uses: jd-solanki/gh-action-toggle-awaiting-reply-label@v1.0.1 - with: - label: needs-more-info