From bd1b0160eb45d653d2b42cd4336235a5d017dc59 Mon Sep 17 00:00:00 2001 From: Jake Perkins Date: Tue, 19 Aug 2025 12:19:17 -0500 Subject: [PATCH 1/2] new-fields --- .github/workflows/post-gh-rca.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/post-gh-rca.yml b/.github/workflows/post-gh-rca.yml index da851b58..3da78430 100644 --- a/.github/workflows/post-gh-rca.yml +++ b/.github/workflows/post-gh-rca.yml @@ -39,6 +39,15 @@ on: description: The entry ID for the team field in the Google Form required: true type: string + entry-repo-name: + description: The entry ID for the repository name field + required: true + type: string + entry-issue-url: + description: The entry ID for the GitHub issue URL field + required: true + type: string + jobs: post-rca-form: @@ -56,6 +65,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 +75,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 +122,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}, From eccbf3f73fa60ddb89a3f6ec6a6b1193ca5473f2 Mon Sep 17 00:00:00 2001 From: Jake Perkins Date: Tue, 19 Aug 2025 13:37:30 -0500 Subject: [PATCH 2/2] form refactor --- .github/workflows/post-gh-rca.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/post-gh-rca.yml b/.github/workflows/post-gh-rca.yml index 3da78430..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,26 +29,25 @@ 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 - required: true + default: 'entry.1085838323' type: string entry-issue-url: description: The entry ID for the GitHub issue URL field - required: true + default: 'entry.516762472' type: string - jobs: post-rca-form: name: Post Google Form link and log results on issue close