You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STATUS=$(gh api "orgs/$ORG/members/$USERNAME" --silent && echo "true" || echo "false")
30
-
if [[ "$STATUS" == "true" ]]; then
31
-
echo "MEMBER_FOUND=true" >> $GITHUB_ENV
32
-
else
33
-
echo "MEMBER_FOUND=false" >> $GITHUB_ENV
31
+
32
+
# Skip if user is a bot
33
+
if [[ "$USER_TYPE" == "Bot" ]]; then
34
+
echo "Skipping survey for bot user: $USERNAME"
35
+
exit 0
34
36
fi
37
+
38
+
# Skip if user is an org member
39
+
if gh api "orgs/$ORG/members/$USERNAME" --silent; then
40
+
echo "Skipping survey for org member: $USERNAME"
41
+
exit 0
42
+
fi
43
+
44
+
# Add survey comment for external contributor
45
+
echo "Adding survey comment for external contributor: $USERNAME"
46
+
gh pr comment ${PR_NUM} --repo ${{ github.repository }} --body "Thank you for your contribution @${USERNAME}! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})."
gh pr comment ${PR_NUM} --repo open-telemetry/opentelemetry-js --body "Thank you for your contribution @${USERNAME}! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})."
Copy file name to clipboardExpand all lines: doc/contributing/releasing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ We aim to eventually automate this process as much as possible.
20
20
21
21
## 2. Review and merge the release PR
22
22
23
-
1. Review the PR generated via the workflow (it will be titled `chore: prepare next release` and opened by the @opentelemetrybot user)
23
+
1. Review the PR generated via the workflow (it will be titled `chore: prepare next release` and opened by [otelbot[bot]](https://github.com/apps/otelbot))
0 commit comments