Create or scope a release milestone
curl --request POST \
--url https://lanesync.dev/api/milestones/create \
--header 'Content-Type: application/json' \
--cookie connect.sid= \
--data '
{
"owner": "<string>",
"repo": "<string>",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-12-25",
"existingMilestoneNumber": 2,
"issues": [
{
"title": "<string>",
"assignee": "<string>"
}
],
"issueNumbers": [
2
]
}
'import requests
url = "https://lanesync.dev/api/milestones/create"
payload = {
"owner": "<string>",
"repo": "<string>",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-12-25",
"existingMilestoneNumber": 2,
"issues": [
{
"title": "<string>",
"assignee": "<string>"
}
],
"issueNumbers": [2]
}
headers = {
"cookie": "connect.sid=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'connect.sid=', 'Content-Type': 'application/json'},
body: JSON.stringify({
owner: '<string>',
repo: '<string>',
title: '<string>',
description: '<string>',
dueDate: '2023-12-25',
existingMilestoneNumber: 2,
issues: [{title: '<string>', assignee: '<string>'}],
issueNumbers: [2]
})
};
fetch('https://lanesync.dev/api/milestones/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lanesync.dev/api/milestones/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'owner' => '<string>',
'repo' => '<string>',
'title' => '<string>',
'description' => '<string>',
'dueDate' => '2023-12-25',
'existingMilestoneNumber' => 2,
'issues' => [
[
'title' => '<string>',
'assignee' => '<string>'
]
],
'issueNumbers' => [
2
]
]),
CURLOPT_COOKIE => "connect.sid=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lanesync.dev/api/milestones/create"
payload := strings.NewReader("{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "connect.sid=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lanesync.dev/api/milestones/create")
.header("cookie", "connect.sid=")
.header("Content-Type", "application/json")
.body("{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lanesync.dev/api/milestones/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'connect.sid='
request["Content-Type"] = 'application/json'
request.body = "{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
],
"synced": true,
"createdBy": "<string>"
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}Milestones
Create or scope a release milestone
Requires a repository in the active workspace, verified configuration and active protection, and GitHub triage/write/maintain/admin scope permissions. Saves GitHub mutations sequentially, then attempts sync. A failure may report mutationStarted and confirmed saved work; do not blindly repeat creation after partial success. This endpoint does not provide request-level idempotency.
POST
/
api
/
milestones
/
create
Create or scope a release milestone
curl --request POST \
--url https://lanesync.dev/api/milestones/create \
--header 'Content-Type: application/json' \
--cookie connect.sid= \
--data '
{
"owner": "<string>",
"repo": "<string>",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-12-25",
"existingMilestoneNumber": 2,
"issues": [
{
"title": "<string>",
"assignee": "<string>"
}
],
"issueNumbers": [
2
]
}
'import requests
url = "https://lanesync.dev/api/milestones/create"
payload = {
"owner": "<string>",
"repo": "<string>",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-12-25",
"existingMilestoneNumber": 2,
"issues": [
{
"title": "<string>",
"assignee": "<string>"
}
],
"issueNumbers": [2]
}
headers = {
"cookie": "connect.sid=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'connect.sid=', 'Content-Type': 'application/json'},
body: JSON.stringify({
owner: '<string>',
repo: '<string>',
title: '<string>',
description: '<string>',
dueDate: '2023-12-25',
existingMilestoneNumber: 2,
issues: [{title: '<string>', assignee: '<string>'}],
issueNumbers: [2]
})
};
fetch('https://lanesync.dev/api/milestones/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lanesync.dev/api/milestones/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'owner' => '<string>',
'repo' => '<string>',
'title' => '<string>',
'description' => '<string>',
'dueDate' => '2023-12-25',
'existingMilestoneNumber' => 2,
'issues' => [
[
'title' => '<string>',
'assignee' => '<string>'
]
],
'issueNumbers' => [
2
]
]),
CURLOPT_COOKIE => "connect.sid=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lanesync.dev/api/milestones/create"
payload := strings.NewReader("{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "connect.sid=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lanesync.dev/api/milestones/create")
.header("cookie", "connect.sid=")
.header("Content-Type", "application/json")
.body("{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lanesync.dev/api/milestones/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'connect.sid='
request["Content-Type"] = 'application/json'
request.body = "{\n \"owner\": \"<string>\",\n \"repo\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueDate\": \"2023-12-25\",\n \"existingMilestoneNumber\": 2,\n \"issues\": [\n {\n \"title\": \"<string>\",\n \"assignee\": \"<string>\"\n }\n ],\n \"issueNumbers\": [\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
],
"synced": true,
"createdBy": "<string>"
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}{
"error": "<string>",
"mutationStarted": true,
"milestone": {
"number": 2,
"title": "<string>",
"url": "<string>"
},
"issues": [
{
"number": 2,
"title": "<string>"
}
],
"linkedIssueNumbers": [
2
]
}Authorizations
GitHub OAuth session cookie
Body
application/json
Provide a title for a new milestone, or existingMilestoneNumber for an open existing milestone. dueDate is optional YYYY-MM-DD. Existing issues must be open and unscoped, or already in the selected existing milestone.