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