File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,27 @@ jobs:
137
137
labels: ['ready-for-doc-review']
138
138
});
139
139
140
+ - name : Assign PR to commenter
141
+ if : env.CONTINUE_WORKFLOW == 'true'
142
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
143
+ env :
144
+ # Reuse the PR number captured earlier
145
+ PULL_REQUEST_NUMBER : ${{ steps.create_pull_request.outputs.pull-request-number }}
146
+ with :
147
+ github-token : ${{ secrets.DOCS_BOT_PAT_BASE }}
148
+ script : |
149
+ try {
150
+ const username = context.payload.comment.user.login;
151
+ await github.rest.issues.addAssignees({
152
+ owner: context.repo.owner,
153
+ repo: context.repo.repo,
154
+ issue_number: Number(process.env.PULL_REQUEST_NUMBER),
155
+ assignees: [username]
156
+ });
157
+ } catch (err) {
158
+ core.info(`Failed to assign PR to @${context.payload.comment.user.login}: ${err.message}`);
159
+ }
160
+
140
161
- uses : ./.github/actions/slack-alert
141
162
if : ${{ failure() && github.event_name != 'workflow_dispatch' }}
142
163
with :
You can’t perform that action at this time.
0 commit comments