diff --git a/.github/workflows/post-gh-rca.yml b/.github/workflows/post-gh-rca.yml index da851b58..09713f05 100644 --- a/.github/workflows/post-gh-rca.yml +++ b/.github/workflows/post-gh-rca.yml @@ -9,7 +9,7 @@ on: inputs: google-form-base-url: description: Base URL of the Google Form. - required: true + default: 'https://docs.google.com/forms/d/e/1FAIpQLSeLOVVUy7mO1j-5Isb04OAWk3dM0b1NY1R8kf0tiEBs9elcEg/viewform?usp=pp_url' type: string repo-owner: description: The repo owner @@ -29,15 +29,23 @@ on: type: string entry-issue: description: The entry ID for the issue field in the Google Form - required: true + default: 'entry.1417567074' type: string entry-regression: description: The entry ID for the regression field in the Google Form - required: true + default: 'entry.1470697156' type: string entry-team: description: The entry ID for the team field in the Google Form - required: true + default: 'entry.1198657478' + type: string + entry-repo-name: + description: The entry ID for the repository name field + default: 'entry.1085838323' + type: string + entry-issue-url: + description: The entry ID for the GitHub issue URL field + default: 'entry.516762472' type: string jobs: @@ -56,6 +64,8 @@ jobs: ENTRY_ISSUE: ${{ inputs.entry-issue }} ENTRY_REGRESSION: ${{ inputs.entry-regression }} ENTRY_TEAM: ${{ inputs.entry-team }} + ENTRY_REPO_NAME: ${{ inputs.entry-repo-name }} + ENTRY_ISSUE_URL: ${{ inputs.entry-issue-url }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -64,6 +74,8 @@ jobs: ENTRY_ISSUE, ENTRY_REGRESSION, ENTRY_TEAM, + ENTRY_REPO_NAME, + ENTRY_ISSUE_URL, OWNER_NAME: owner, REPO_NAME: repo, ISSUE_NUMBER: issueNumStr, @@ -109,6 +121,9 @@ jobs: teamLabels.length ? teamLabels.join(',') : '' ); + formUrl.searchParams.set(ENTRY_REPO_NAME, repo); + formUrl.searchParams.set(ENTRY_ISSUE_URL, `https://github.com/${owner}/${repo}/issues/${issue_number}`); + const assignees = issue.assignees.map(u=>`@${u.login}`).join(', '); const body = `Hi ${assignees},