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
Copy file name to clipboardexpand all lines: .github/workflows/survey-on-merged-pr.yml
+9-2
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,17 @@ on:
4
4
pull_request:
5
5
types: [closed]
6
6
7
+
env:
8
+
PR_NUM: ${{ github.event.issue.number }}
9
+
SURVEY_URL: https://forms.gle/WV58koUBGSG9HBY66
10
+
7
11
jobs:
8
12
comment-on-pr:
13
+
name: Add survey to PR if author is not a member
9
14
runs-on: ubuntu-latest
15
+
permissions:
16
+
contents: write
17
+
pull-requests: write
10
18
if: github.event.pull_request.merged == true
11
19
steps:
12
20
- name: Check if user is a member of the org
@@ -26,7 +34,6 @@ jobs:
26
34
- name: Add comment to PR if author is not a member
27
35
if: env.MEMBER_FOUND == 'false'
28
36
run: |
29
-
PR_NUMBER=${{ github.event.pull_request.number }}
30
-
gh pr comment $PR_NUMBER --body "Thank you for your contribution! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by filling out this survey: https://forms.gle/WV58koUBGSG9HBY66"
37
+
gh pr comment ${PR_NUM} --body "Thank you for your contribution! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by filling out this survey: ${SURVEY_URL}"
0 commit comments