Skip to content

Commit

Permalink
chore: Update user survey conditions (apollographql/apollo-ios-dev#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed Feb 6, 2024
1 parent 74a16c7 commit 9855a2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/issue-close-user-survey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'apollographql/apollo-ios'
steps:
- run: gh issue comment "$NUMBER" --body "$BODY"
- run:
if [ "$AUTHOR" == "MEMBER" ] && [ "$COMMENTS" == 0 ]; then
echo "Issue opened by member with no comments, skipping user survey."
else
gh issue comment "$NUMBER" --body "$BODY"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
COMMENTS: ${{ github.event.issue.comments }}
AUTHOR: ${{ github.event.issue.author_association }}
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+iOS&entry.204965213=GitHub+Issue). Your responses will help us understand Apollo iOS usage and allow us to serve you better.

0 comments on commit 9855a2c

Please sign in to comment.