mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-26 16:45:26 +00:00
Fix milestone property always being undefined and thus non-null
This commit is contained in:
1 parent
be4044348c
commit
8bfd1469dd
1 file changed
+3
-2
@@ -20,17 +20,18 @@ jobs:
|
||||
const repo = context.repo.repo;
|
||||
const pr_id = context.issue.number;
|
||||
|
||||
const pr = await github.rest.issues.get({
|
||||
let response = await github.rest.issues.get({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: pr_id,
|
||||
});
|
||||
const pr = response.data;
|
||||
|
||||
if (pr.milestone !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = await github.rest.issues.listMilestones({
|
||||
response = await github.rest.issues.listMilestones({
|
||||
owner,
|
||||
repo,
|
||||
state: 'open',
|
||||
|
||||
Reference in new issue
Block a user