Skip to content

Commit

Permalink
chore: adds user survey link in README and issue close workflow (apol…
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Jan 24, 2024
1 parent 491ec41 commit cd36fde
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/issue-close-user-survey.yml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion .size-limits.json
Original file line number Diff line number Diff line change
@@ -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
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <br/>
Expand Down

0 comments on commit cd36fde

Please sign in to comment.