File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -112,19 +112,30 @@ export const createBackportPr = async (
112
112
} ,
113
113
) ;
114
114
115
- // set assignees and milestone
115
+ // set milestone
116
116
await fetch (
117
117
`${ GITHUB_API } /repos/go-gitea/gitea/issues/${ json . number } ` ,
118
118
{
119
119
method : "PATCH" ,
120
120
headers : HEADERS ,
121
121
body : JSON . stringify ( {
122
- // assignees: [originalPr.user.login],
123
122
milestone : giteaVersion . milestoneNumber ,
124
123
} ) ,
125
124
} ,
126
125
) ;
127
126
127
+ // set assignee
128
+ await fetch (
129
+ `${ GITHUB_API } /repos/go-gitea/gitea/issues/${ json . number } ` ,
130
+ {
131
+ method : "PATCH" ,
132
+ headers : HEADERS ,
133
+ body : JSON . stringify ( {
134
+ assignees : [ originalPr . user . login ] ,
135
+ } ) ,
136
+ } ,
137
+ ) ;
138
+
128
139
// if the original PR had exactly one backport/* label, add the backport/done label to it
129
140
const backportLabels = originalPr . labels
130
141
. filter ( ( label ) => label . name . startsWith ( "backport/" ) ) ;
You can’t perform that action at this time.
0 commit comments