|
9 | 9 | inputs: |
10 | 10 | google-form-base-url: |
11 | 11 | description: Base URL of the Google Form. |
12 | | - required: true |
| 12 | + default: 'https://docs.google.com/forms/d/e/1FAIpQLSeLOVVUy7mO1j-5Isb04OAWk3dM0b1NY1R8kf0tiEBs9elcEg/viewform?usp=pp_url' |
13 | 13 | type: string |
14 | 14 | repo-owner: |
15 | 15 | description: The repo owner |
|
29 | 29 | type: string |
30 | 30 | entry-issue: |
31 | 31 | description: The entry ID for the issue field in the Google Form |
32 | | - required: true |
| 32 | + default: 'entry.1417567074' |
33 | 33 | type: string |
34 | 34 | entry-regression: |
35 | 35 | description: The entry ID for the regression field in the Google Form |
36 | | - required: true |
| 36 | + default: 'entry.1470697156' |
37 | 37 | type: string |
38 | 38 | entry-team: |
39 | 39 | description: The entry ID for the team field in the Google Form |
40 | | - required: true |
| 40 | + default: 'entry.1198657478' |
| 41 | + type: string |
| 42 | + entry-repo-name: |
| 43 | + description: The entry ID for the repository name field |
| 44 | + default: 'entry.1085838323' |
| 45 | + type: string |
| 46 | + entry-issue-url: |
| 47 | + description: The entry ID for the GitHub issue URL field |
| 48 | + default: 'entry.516762472' |
41 | 49 | type: string |
42 | 50 |
|
43 | 51 | jobs: |
|
56 | 64 | ENTRY_ISSUE: ${{ inputs.entry-issue }} |
57 | 65 | ENTRY_REGRESSION: ${{ inputs.entry-regression }} |
58 | 66 | ENTRY_TEAM: ${{ inputs.entry-team }} |
| 67 | + ENTRY_REPO_NAME: ${{ inputs.entry-repo-name }} |
| 68 | + ENTRY_ISSUE_URL: ${{ inputs.entry-issue-url }} |
59 | 69 | with: |
60 | 70 | github-token: ${{ secrets.GITHUB_TOKEN }} |
61 | 71 | script: | |
|
64 | 74 | ENTRY_ISSUE, |
65 | 75 | ENTRY_REGRESSION, |
66 | 76 | ENTRY_TEAM, |
| 77 | + ENTRY_REPO_NAME, |
| 78 | + ENTRY_ISSUE_URL, |
67 | 79 | OWNER_NAME: owner, |
68 | 80 | REPO_NAME: repo, |
69 | 81 | ISSUE_NUMBER: issueNumStr, |
@@ -109,6 +121,9 @@ jobs: |
109 | 121 | teamLabels.length ? teamLabels.join(',') : '' |
110 | 122 | ); |
111 | 123 |
|
| 124 | + formUrl.searchParams.set(ENTRY_REPO_NAME, repo); |
| 125 | + formUrl.searchParams.set(ENTRY_ISSUE_URL, `https://github.com/${owner}/${repo}/issues/${issue_number}`); |
| 126 | +
|
112 | 127 | const assignees = issue.assignees.map(u=>`@${u.login}`).join(', '); |
113 | 128 | const body = `Hi ${assignees}, |
114 | 129 |
|
|
0 commit comments