Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/post-gh-rca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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: |
Expand All @@ -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,
Expand Down Expand Up @@ -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},

Expand Down
Loading