Skip to content

Commit bd1b016

Browse files
author
Jake Perkins
committed
new-fields
1 parent 75cfa50 commit bd1b016

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/post-gh-rca.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ on:
3939
description: The entry ID for the team field in the Google Form
4040
required: true
4141
type: string
42+
entry-repo-name:
43+
description: The entry ID for the repository name field
44+
required: true
45+
type: string
46+
entry-issue-url:
47+
description: The entry ID for the GitHub issue URL field
48+
required: true
49+
type: string
50+
4251

4352
jobs:
4453
post-rca-form:
@@ -56,6 +65,8 @@ jobs:
5665
ENTRY_ISSUE: ${{ inputs.entry-issue }}
5766
ENTRY_REGRESSION: ${{ inputs.entry-regression }}
5867
ENTRY_TEAM: ${{ inputs.entry-team }}
68+
ENTRY_REPO_NAME: ${{ inputs.entry-repo-name }}
69+
ENTRY_ISSUE_URL: ${{ inputs.entry-issue-url }}
5970
with:
6071
github-token: ${{ secrets.GITHUB_TOKEN }}
6172
script: |
@@ -64,6 +75,8 @@ jobs:
6475
ENTRY_ISSUE,
6576
ENTRY_REGRESSION,
6677
ENTRY_TEAM,
78+
ENTRY_REPO_NAME,
79+
ENTRY_ISSUE_URL,
6780
OWNER_NAME: owner,
6881
REPO_NAME: repo,
6982
ISSUE_NUMBER: issueNumStr,
@@ -109,6 +122,9 @@ jobs:
109122
teamLabels.length ? teamLabels.join(',') : ''
110123
);
111124
125+
formUrl.searchParams.set(ENTRY_REPO_NAME, repo);
126+
formUrl.searchParams.set(ENTRY_ISSUE_URL, `https://github.com/${owner}/${repo}/issues/${issue_number}`);
127+
112128
const assignees = issue.assignees.map(u=>`@${u.login}`).join(', ');
113129
const body = `Hi ${assignees},
114130

0 commit comments

Comments
 (0)