Решение проблемы GitHub из карточки проекта с помощью RESTful SDK

#github #github-api #octokit-js

Вопрос:

Я использую octokit (https://octokit.github.io/rest.js/v18#projects-list-cards ) для взаимодействия с моим проектом и проблемами в моем репозитории. У меня есть project_cards в списке, но я хотел бы внести некоторые изменения в метки проблемы при переходе от столбца к столбцу.

Насколько я могу судить (https://docs.github.com/en/rest/reference/projects#list-project-cards ), единственный способ получить номер проблемы — это вручную проанализировать content_url поле:

 [
  {
    "url": "https://api.github.com/projects/columns/cards/1478",
    "id": 1478,
    "node_id": "MDExOlByb2plY3RDYXJkMTQ3OA==",
    "note": "Add payload for delete Project column",
    "creator": {
      "login": "octocat",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "gravatar_id": "",
      "url": "https://api.github.com/users/octocat",
      "html_url": "https://github.com/octocat",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "type": "User",
      "site_admin": false
    },
    "created_at": "2016-09-05T14:21:06Z",
    "updated_at": "2016-09-05T14:20:22Z",
    "archived": false,
    "column_url": "https://api.github.com/projects/columns/367",
    "content_url": "https://api.github.com/repos/api-playground/projects-test/issues/3",
    "project_url": "https://api.github.com/projects/120"
  }
]
 

Это кажется мне довольно удивительным, я что-то упускаю? Я просто пытаюсь выяснить, что лежит issue number в основе, чтобы я мог выполнить некоторые манипуляции с метками.