We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 741aa4a commit a35dd9cCopy full SHA for a35dd9c
.github/workflows/auto_label_and_review.yml
@@ -63,3 +63,17 @@ jobs:
63
console.error('Error requesting reviewers:', error);
64
}
65
66
+
67
+ // Auto-assign PR creator as assignee
68
+ const prCreator = context.payload.pull_request.user.login;
69
+ try {
70
+ await github.rest.issues.addAssignees({
71
+ owner,
72
+ repo,
73
+ issue_number: prNumber,
74
+ assignees: [prCreator]
75
+ });
76
+ console.log(`Assigned PR creator: ${prCreator}`);
77
+ } catch (error) {
78
+ console.error('Error assigning PR creator:', error);
79
+ }
0 commit comments