From 35283cfccf2e3bb0c8f6dc50b390f8c0ee06056e Mon Sep 17 00:00:00 2001 From: Radu Date: Tue, 26 Nov 2024 14:11:24 +0200 Subject: [PATCH] [VSC-1462] Create request-rating.yml (#1349) * Create request-rating.yml * Update text v2 --- .github/workflows/request-rating.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/request-rating.yml diff --git a/.github/workflows/request-rating.yml b/.github/workflows/request-rating.yml new file mode 100644 index 000000000..6bc6cfcc4 --- /dev/null +++ b/.github/workflows/request-rating.yml @@ -0,0 +1,23 @@ +name: Request ESP-IDF Extension Rating + +on: + issues: + types: [closed] + +jobs: + request-rating: + runs-on: ubuntu-latest + steps: + - name: Create rating request comment + uses: actions/github-script@v7 + with: + script: | + const extensionUrl = 'https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details'; + const comment = `Thanks for using our extension! šŸš€\n\nYour feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving.\n\nā­ Rate ESP-IDF Extension: ${extensionUrl}\n\nYour support means a lot to our development team!`; + + github.rest.issues.createComment({ + owner: 'espressif', + repo: context.repo.repo, + issue_number: context.issue.number, + body: comment + }); \ No newline at end of file