Skip to main content
Use the REST app guide 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

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. 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

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. 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 · Reviews · Commits · Releases · Workflows · Runs · Organizations · 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

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
  • 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

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

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

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 to seal the signing secret and register the subscription for this source.