diff --git a/.github/workflows/issue-close-user-survey.yml b/.github/workflows/issue-close-user-survey.yml new file mode 100644 index 00000000000..36b18773fc6 --- /dev/null +++ b/.github/workflows/issue-close-user-survey.yml @@ -0,0 +1,27 @@ +name: Issue Close User Survey + +on: + issues: + types: [closed] + +jobs: + user-survey-comment: + permissions: + issues: write + runs-on: ubuntu-latest + if: github.repository == 'apollographql/apollo-client' + steps: + - run: | + if [ "$STATE_REASON" == "completed" ] || [ "$SENDER" != "github-actions" ]; then + gh issue comment "$NUMBER" --body "$BODY" + else + echo "Issue was closed as not planned, skipping comment." + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + STATE_REASON: ${{ github.event.issue.state_reason }} + SENDER: ${{ github.event.sender.login }} + BODY: > + Do you have any feedback for the maintainers? Please tell us by taking a [one-minute survey](https://docs.google.com/forms/d/e/1FAIpQLSczNDXfJne3ZUOXjk9Ursm9JYvhTh1_nFTDfdq3XBAFWCzplQ/viewform?usp=pp_url&entry.1170701325=Apollo+Client&entry.204965213=GitHub+Issue). Your responses will help us understand Apollo Client usage and allow us to serve you better. diff --git a/.size-limits.json b/.size-limits.json index 395aea47c38..96d031aaf5d 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { "dist/apollo-client.min.cjs": 37930, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 31972 + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 31974 } diff --git a/README.md b/README.md index ffeecf275fb..8340c856e8d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ Apollo Client is a fully-featured caching GraphQL client with integrations for React, Angular, and more. It allows you to easily build UI components that fetch data via GraphQL. +| ☑️ Apollo Client User Survey | +| :----- | +| What do you like best about Apollo Client? What needs to be improved? Please tell us by taking a [one-minute survey](https://docs.google.com/forms/d/e/1FAIpQLSczNDXfJne3ZUOXjk9Ursm9JYvhTh1_nFTDfdq3XBAFWCzplQ/viewform?usp=pp_url&entry.1170701325=Apollo+Client&entry.204965213=Readme). Your responses will help us understand Apollo Client usage and allow us to serve you better. | + ## Documentation All Apollo Client documentation, including React integration articles and helpful recipes, can be found at: