> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub repository issue source

> Observe one GitHub.com repository's issues.

Use the [REST app guide](https://docs.bijection.com/integrations/native-rest.md) to bind a feed to
`githubIssues(owner, repository, auth)` from `@bijectionhq/app-rest`.
For a private repository, bind a protected label and use a bearer token
with issue read permission. Open and closed issues are published by GitHub's record ID.

Initialize the mount with `{ profile: { mode: "githubIssues", limit: 10 } }`.
The page limit is 1–100 GitHub list items and 36 KiB. The feed uses the
GitHub REST API version `2026-03-10` and extracts only the next page number
from the `Link` header. It sends that number to the original repository
endpoint. It skips pull requests and starts a new sweep after the final
page. Missing or transferred issues remain in the published rows. The
feed requires the bundled parser artifact.
[GitHub REST pagination](https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api)

## Create and update

Bind `githubIssueWriter(owner, repository, auth, label)` to
`receivers.writers[mode]` under the app's `data` label. Use
`mode: "github"` with the [REST write commands](https://docs.bijection.com/integrations/native-rest.md#create-and-update-records).
Use a credential with issue write permission and the repository issue number
as text for updates. HTTP 201 or 200 with the matching issue number proves
that GitHub returned the corresponding issue. GitHub also routes pull-request
metadata through the issue endpoint. The app reports a pull-request reply as
unexpected, even if GitHub applied the update. The host sends each task at most once.
[Provider API](https://docs.github.com/en/rest/issues/issues?apiVersion=2026-03-10)

## Pull requests, commits, releases, Actions, and organizations

Mount one endpoint from the table with
`providerEndpoint(mode, "https://api.github.com", path, auth, data)`.
Bind it as `receivers.provider` with the same protected label as
`data`. Seal a bearer token with read access to the chosen repository
or organization. Use `source.initialize` with
`{ profile: { mode: "provider", provider: mode, limit: 10 } }`, using a limit of
one for the organization lookup.

| Mode | Reviewed path | Observation key |
| - | - | - |
| `github.repository.pull-requests.observations` | `/repos/OWNER/REPO/pulls` | Repository pull request number |
| `github.pull-request.reviews.observations` | `/repos/OWNER/REPO/pulls/NUMBER/reviews` | Review ID |
| `github.repository.commits.observations` | `/repos/OWNER/REPO/commits` | Commit SHA on the default branch |
| `github.repository.releases.observations` | `/repos/OWNER/REPO/releases` | Release ID |
| `github.repository.workflows.observations` | `/repos/OWNER/REPO/actions/workflows` | Workflow ID |
| `github.repository.workflow-runs.observations` | `/repos/OWNER/REPO/actions/runs` | Run ID |
| `github.account.organizations.observations` | `/user/orgs` | Organization ID |
| `github.organization.teams.observations` | `/orgs/ORG/teams` | Team ID |
| `github.organization.observation` | `/orgs/ORG` | Organization ID |

List modes accept 1–100 records and 36 KiB per page. They extract only the
next page number from GitHub's Link header and restart after a terminal page.
Concurrent changes can move records between pages. The organization lookup
fetches one object each poll. For the account organization list, use a
classic personal access token or OAuth app token with `read:org`. GitHub
can return an empty list for a fine-grained token on this endpoint.
Visibility follows token permissions and
GitHub retention. Missing records remain published. Workflow and run modes
observe metadata about compute managed by GitHub.

[Pull requests](https://docs.github.com/en/rest/pulls/pulls) ·
[Reviews](https://docs.github.com/en/rest/pulls/reviews) ·
[Commits](https://docs.github.com/en/rest/commits/commits) ·
[Releases](https://docs.github.com/en/rest/releases/releases) ·
[Workflows](https://docs.github.com/en/rest/actions/workflows) ·
[Runs](https://docs.github.com/en/rest/actions/workflow-runs) ·
[Organizations](https://docs.github.com/en/rest/orgs/orgs) ·
[Teams](https://docs.github.com/en/rest/teams/teams)

## Write pull requests

Use `providerWriter` with mode `github.repository.pull-requests.create-update`,
endpoint `https://api.github.com`, scope `[owner, repository]` and `receivers.writers[mode]`. Pass the same protected label to the writer and as the app's `data`, and seal a token with pull request write permission.
Create and update take up to 24 KiB of JSON. Supply the repository pull
request number as text for updates. HTTP 201 or 200 with the corresponding
number acknowledges the operation. Commands use exact keys and one send per task, with no read cursor. [GitHub pull request API](https://docs.github.com/en/rest/pulls/pulls)

## Merge or review a pull request

Bind the protected `github.repository.pull-requests.create-update` writer with
a reviewed repository as `receivers.writers[mode]` at the installed `data` label. Both commands use an exact key and one send per task.

* Mode `github.pull-requests.merge` takes
  `{ action: "merge", id, head, method }`. Pass the PR number as a string,
  the expected 40-character head SHA, and `merge`, `squash`, or `rebase`.
  The token needs Contents write permission. HTTP 200 with `merged: true`
  returns the PR number in `record` and the merge SHA in `detail`. A moved
  head can return 409. [Merge API](https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request)
* Mode `github.pull-requests.review` takes
  `{ action: "review", id, head, event, body? }`. The commit is required.
  Use `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. The latter two require a
  body. The token needs Pull requests write permission. HTTP 200 must
  attest the exact commit and requested published review state. The review
  ID appears in `record` and its state in `detail`. [Reviews API](https://docs.github.com/en/rest/pulls/reviews#create-a-review-for-a-pull-request)

## Issue timeline history

Bind `githubTimeline(owner, repository, issueNumber, auth, data)`
as `receivers.provider` at a protected `data` label. Initialize the profile
`{ mode: "githubTimeline", issueNumber: "42", limit: 20 }` with the
same issue number as the receiver. Use a credential with issue read
access. This pulls one issue or pull request timeline.

Read the append-only captures from `<mount>.occurrences.list` or
`get`. Keys use the issue number, event type and event identity. Commit
items use their SHA. Items that carry no stable identifier are omitted.
A GitHub next-page link advances the bound path's page number, and the
terminal page restarts the walk. Captured events are retained when
GitHub edits or removes them. Each page accepts up to 100 items and
36 KiB. A live timeline can change during pagination.
[GitHub timeline API](https://docs.github.com/en/rest/issues/timeline)

## Dispatch an Actions workflow

Use `providerWriter` with mode `github.actions.workflow-runs.dispatch`,
endpoint `https://api.github.com`, scope `[owner, repository, workflowId]`
and `receivers.writers[mode]`. Use the numeric workflow ID as text.
Bind the protected label and seal a credential with Actions write permission
on the repository. The installed workflow must handle `workflow_dispatch`.

Submit a create command containing up to 24 KiB of JSON with `ref` set to
a branch or tag and an optional `inputs` object with up to 25 properties.
An HTTP 200 with `workflow_run_id` acknowledges GitHub's admission of
the run. The writer uses the exact command key. Follow the run in
the workflow runs feed. [GitHub workflow API](https://docs.github.com/en/rest/actions/workflows?apiVersion=2026-03-10#create-a-workflow-dispatch-event)

## Webhook-assisted polling

GitHub SHA-256 notifications wake the installed issues, timeline or native GitHub feed.
Bind the REST mount to a protected `data` label and follow the
[verified wake route setup](https://docs.bijection.com/integrations/native-webhooks.md#wake-a-rest-source-from-a-provider-webhook)
to seal the signing secret and register the subscription for this source.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.