Skip to main content
PUT
/
integrations
/
github
/
{conversation_id}
/
tickets
/
{ticket_id}
Attach a GitHub issue to a conversation
curl --request PUT \
  --url https://api.getfernand.com/integrations/github/{conversation_id}/tickets/{ticket_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "I_kwDOABCDEF",
  "number": 42,
  "title": "Fix login bug",
  "url": "https://github.com/piedpiper/www/issues/42",
  "state_reason": null,
  "updated_at": "2024-01-15T10:30:00Z",
  "closed_at": null,
  "assignee": {
    "id": "U_kgDOABCDEF",
    "login": "richard.hendricks",
    "name": "Richard H.",
    "avatar_url": "https://avatars.githubusercontent.com/u/123456"
  },
  "labels": [
    {
      "id": "LA_kwDOABCDEF",
      "name": "bug",
      "color": "d73a4a"
    }
  ],
  "type": {
    "id": "IT_kwDOABCDEF",
    "name": "Bug",
    "color": "d73a4a"
  }
}
Attaches an existing GitHub issue to the specified conversation. The issue must exist in one of the repositories that the GitHub integration has access to. A comment is added to the issue with a link to the related conversation in Fernand. Returns a 404 error if the issue cannot be found.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Path Parameters

conversation_id
integer
required

ID of the conversation to attach the issue to.

ticket_id
string
required

ID of the GitHub issue to attach.

Response

GitHub issue attached successfully.

id
string

Unique identifier of the GitHub issue.

Example:

"I_kwDOABCDEF"

number
integer

Issue number within the repository.

Example:

42

title
string

Title of the issue.

Example:

"Fix login bug"

url
string

URL to view the issue on GitHub.

Example:

"https://github.com/piedpiper/www/issues/42"

state_reason
string

Reason for the current state (COMPLETED, NOT_PLANNED, REOPENED, or null if open).

Example:

null

updated_at
string

ISO 8601 timestamp of last update.

Example:

"2024-01-15T10:30:00Z"

closed_at
string

ISO 8601 timestamp when the issue was closed (null if open).

Example:

null

assignee
object

Assigned user (null if unassigned).

labels
object[]

List of labels applied to the issue.

type
object

Issue type (null if no type is set).