Skip to content
All docs

Docs / Collaborate

Collaborating

Everything a team does on Forge is a signed document on Dash Platform: who may push, issues, comments, pull requests, reviews, merges and releases. There is no server in the middle to ask. Consensus decides who may write, and every client computes the same state from the same documents.

  1. Members
  2. Private repositories
  3. Members-only content in a public repository
  4. Issues
  5. Pull requests
  6. Releases
  7. From the web app
  8. Webhooks and CI

The commands below take a repository as <owner>/<name>, where <owner> is the owner's identity id (base58) or DPNS username (alice or alice.dash, resolved with a proof-verified DPNS read). A bare <name> means one of your own repositories. Every argument naming an identity — dg repo list --owner, dg collab add/remove, dg issue --author/--assignee, dg pr request-review, dg ci runner add/revoke — accepts either form; a name is resolved once per process and cached.

Reading a public repository needs no identity: dg repo view, dg repo list --owner, dg issue list / view, dg pr list / view / diff / checkout / checks / commits, dg label list, dg collab list, dg release list / download, dg repo protect list and dg repo policy show work signed out, and never open a key you have configured, so a passphrase-protected key file is not unlocked just to read. A private repository's content is encrypted to its members, so reading one uses your identity, and without one it stops with E301.


Members

Members have one of four roles: Read, Triage, Write or Maintain. The Owner is the identity that created the repository. Automated accounts can be added as a Bot where the network's contracts have that role (below). Every human role holds the key to the repository's encrypted content, on public and private repositories alike. Consensus enforces what each role can write: a write the role does not allow is refused by Platform, and Forge's apps refuse it before you pay for it. Counting approvals is a rule Forge apps enforce: every app applies it alike (Who enforces what).

Role--roleCanClosest GitHub role
Readreader (alias read)Read the repository's encrypted content: a private repository, or a public repository's members-only content (it receives the key). Otherwise what anyone can do: open issues and PRs, comment and review, and as an author close or reopen their own issues and PRs, mark their own PRs draft or ready, request reviews on them and resolve their threads. Comment-only reviews: an approve or request for changes is refused, with an offer to post it as a comment.Read
TriagetriageEverything Read can, plus close, reopen and lock any issue or PR; label, assign, set milestones, request reviews and resolve review threads; create labels and milestones. Not: push, merge, mark a PR draft or ready, change a PR's base, dismiss reviews, pin, post check runs, or re-run checks; nor, like Read, approve or request changes.Triage
Writewriter (default; alias write)Everything Triage can, plus push to unprotected branches, approve or request changes, merge, mark draft or ready, change a PR's base, dismiss reviews, pin, post check runs, and re-run checks.Write
Maintainmaintainer (alias maintain)Everything Write can, plus protected branches, releases, repository settings (config, branch policy), webhooks and hiding comments.Maintain, and most of Admin
Ownern/aEverything Maintain can (the Owner is enrolled as a maintainer when the repository is created), plus adding and removing members and editing the description and topics.Admin
BotbotAn automated account. It can post comments and reviews, and open issues and PRs. It can't approve or merge, it pushes only to branches a maintainer allows, and it reads members-only content only when someone asks it to. To report checks it also needs to be added as a CI runner (dg ci runner add). It never gets the members key: a maintainer gives it a key for its own members-only posts, which members read and everyone else sees as members-only. Only where the network's contracts have the Bot role; elsewhere --role bot is refused before anything is signed.an app or bot account

The repository's Owner alone adds and removes members, and edits the description and topics. The --role values reader, triage, writer and maintainer are the names dg has always taken, and read, write and maintain are accepted as aliases. dg collab list, dg collab add and the web app's Members settings show the role words; --json output keeps the --role names.

Anyone, member or not, can open issues and PRs, comment and review. Only people with Write access or more approve or request changes: for Read and Triage members, dg pr review --approve (or --request-changes) and the web's Approve and Request changes stop before anything is signed with "Only people with Write access or more can approve." and offer to post the review as a comment (dg pr review --comment, or Post as a comment). Approvals count toward a branch policy only from people with Write access or more: an approval that another client wrote for someone with Read or Triage access is shown as "Read access; doesn't count", a non-member's as not counting, and neither blocks. Imported issues and comments (a mirror's provenance and upstream numbers) are trusted from the same people.

On a public repository everyone can read the public content already, so the Read role is for its members-only content: someone who should follow the members-only discussion and comment, without pushing, approving or merging. dg collab add --role reader works on public repositories too, and the web app offers Read there too. A member holds one writer document, so changing between Write, Triage and Read replaces it: dg collab add with the new --role deletes the old document and writes the new one (their acceptance stands, so they need not accept again), and the web app's Settings → Members has Change role on public repositories. On a private repository dg collab add changes the role the same way without rotating the key, since the member stays a member; in the web app, remove the member and add them again, which rotates it as every removal does.

Adding a member is two steps: the owner adds them, and they accept. Consensus admits a writer/maintainer document only when it names the member's own consent document for the repo (member_consent), so nobody can be made a member, or spammed with an invitation, without agreeing first.

dg collab accept <owner>/<repo>              # the new member, first: records their consent
dg collab list   <owner>/<repo>
dg collab add    <owner>/<repo> <identity id or DPNS name> --role writer   # or triage, reader, maintainer
dg collab remove <owner>/<repo> <identity id or DPNS name> --role writer

dg collab list shows each member's access (Owner, Maintain, Write, Triage or Read). dg collab remove --role writer (or triage, reader) removes the member's writer document, whichever of the three roles (Write, Triage or Read) it grants. A member with Maintain access is removed with --role maintainer: the default --role writer refuses, naming their access, and writes nothing.

If the owner runs dg collab add before the invitee has accepted, it is refused before anything is signed: "<identity> has not accepted membership of <repo> yet", with the fix to ask them to run dg collab accept, then add them again. dg collab add <owner>/<repo> <identity id> --wait 300 instead waits (printing that it is waiting) up to that many seconds for the acceptance to land, then adds them; with no --wait it checks once. dg collab accept --withdraw withdraws an earlier acceptance (a membership already granted stands until the owner removes it).

From the web app, the invitee opens the repository's invite link (Settings → Members, on public and private repos alike) and clicks Accept invitation; the owner's Settings → Members lists Pending invitations (accepted, not added yet) with a role picker (Read, Triage, Write and Maintain) and an Add button for each, and shows who is still waiting to accept after a refused add.

Adding or removing a member is a write by the repository owner, signed with the owner's HIGH key.

Repository settings

Maintainers change a repository's settings from the CLI or from Settings in the web app. Each change is a small paid write, shown with its cost before you confirm; repeating a change that already holds writes nothing.

dg repo protect add    <owner>/<repo> main              # or a glob: 'release/*', 'refs/tags/v*'
dg repo protect defaults <owner>/<repo>                  # the default branch and every tag
dg repo protect remove <owner>/<repo> main
dg repo protect list   <owner>/<repo>
dg repo edit <owner>/<repo> --default-branch trunk       # maintainers
dg repo edit <owner>/<repo> --description "…" --topics rust,cli   # the owner
dg repo edit <owner>/<repo> --moved-to <owner>/<new-repo>          # maintainers; "" clears it
dg repo policy set  <owner>/<repo> --required-approvals 2 --maintainers-only true --merge-methods ff,squash
dg repo policy show <owner>/<repo>
dg repo archive   <owner>/<repo>
dg repo unarchive <owner>/<repo>

What each one enforces:

  • Protected branches are enforced by Dash Platform and Forge apps together. A ref matching a pattern moves only through a maintainer-only document, and Platform refuses that document from anyone else. Platform can't read the patterns, though, so it accepts a writer's plain update that names a protected ref; Forge's readers ignore that update, so the branch never moves in the web app, dg or a clone. Forge's push helper normally refuses such a push up front (E601). A bare name means refs/heads/<name>; * stays within one path segment and ** crosses segments. refs/tags/** covers every tag. Up to 8 patterns. A new repository protects its default branch and every tag (refs/tags/**) unless its creator opts out (dg repo create --no-protect, or the checkbox on the web's New repository form), so a release tag cannot be moved by a writer. Forks and mirrors start unprotected. For an older repository, Settings → Branches offers the same protection in one click, and dg repo protect defaults adds it from the CLI.
  • The default branch is what a clone checks out and what the web opens on.
  • The branch policy is enforced by Forge apps. The web disables the merge until it is met, and dg pr merge refuses it (E804). The PR author's own approval never counts. When the policy requires approvals, a request for changes from a maintainer or writer whose approval would count blocks the merge, as on GitHub, until they approve or the review is dismissed. A maintainer can bypass it, as on GitHub: tick "bypass rules" in the merge box and confirm, or pass dg pr merge --override-policy. The code is really merged, and an event on the PR records which rules were bypassed. Unlike a comment, the event cannot be edited or deleted, by the maintainer who bypassed or anyone else. Nothing on Platform requires approvals.
  • Mark as merged (done elsewhere) records a merge that already happened some other way (a push). It moves no code, so the web offers it only once the PR's head is on the base branch (dg pr merge --event-only).
  • Moving a public repository marks it with the repository that replaces it. Its pages then show "This repository moved to …" with a link, dg commands on it print a one-line note, and git clone or git fetch prints a hint with the git remote set-url to run. Nothing is redirected: the old repository stays readable and writable, so archive it as well if work should stop there. A private repository cannot be marked.
  • Archiving is enforced by Forge apps too. They refuse writes to an archived repository: the web disables issues, PRs, merges and releases; dg refuses issue, PR, comment, review, merge and release writes; and the push helper refuses pushes. All of these use E606. Override with dg --allow-archived … or git push -o allow-archived. Platform still accepts a member's writes.

Who enforces what

The web app labels each rule with who enforces it:

  • Enforced by Dash Platform. Platform refuses a write that breaks the rule, whichever app sends it. Member roles and a limited key's budget and expiry work this way.
  • Enforced by Dash Platform and Forge apps. Part of the rule is a write Platform refuses and part is a rule Forge's readers apply. Protected branches work this way: only a maintainer can write a protected-branch update, and a plain update of a protected branch, which Platform accepts, is ignored.
  • Forge apps enforce this. The web app, dg and the push helper apply the rule and won't send a write that breaks it. Platform doesn't check it, so a write made outside Forge's apps can ignore it. The branch policy and archiving work this way. A maintainer's override of the branch policy is recorded on the PR, where everyone can see it.

The description and topics live on the repository document, which only its owner can edit. They are public even for a private repository. A private repository's other settings are encrypted: the CLI writes them encrypted, and the web app does not write them yet.

Topics. Up to 20 per repository, each 1–30 characters of lowercase letters, digits and single hyphens (^[a-z0-9]+(-[a-z0-9]+)*$, the same pattern GitHub topics use). --topics replaces the whole list; deletes and creates happen together, so a topic removed from the list stops counting toward Explore's per-topic browsing at once. A private repository's topics stay set on its repo document (still visible, since topics are public even for a private repo), but Forge writes no per-topic index document for a private repo, so its topics don't show up when someone browses Explore by topic.

How access works

A member is a writer or maintainer document in Forge's shared forge-core contract, keyed by (repository, member). A writer document carries the role (Write, Triage or Read), and every role-gated write claims a role that consensus checks against it. Only the repository owner can create one, and consensus enforces that. Every write-path document type (ref updates, packs, releases, config, events) names its gate, and consensus refuses a write whose author has no current membership document (E601, Platform code 40120).

  • Add creates the membership document, naming the member's consent. Remove deletes it. The member's next write is refused.
  • Consent stands on its own. A consent document is not deleted when the owner removes the member, so adding them again later needs no new acceptance.
  • There is no suspend. Remove the member, and add them again later.
  • Past work stays valid. A document's existence proves its writer was a member at the time it was written. Removing a maintainer later does not undo their past merges or ref updates.
  • The owner is enrolled as a maintainer when the repository is created.

forge-v2.md §2 lists which role each document type needs, and §2.1 how roles are proved.

Organizations

Forge has no organization accounts, and membership is never delegated: only a repository's owner can add or remove its members. A team that wants one shared owner uses an organization identity:

  1. Create an identity for the organization (dg auth new, or the web app's sign-up) and keep its identity file or recovery phrase offline. It owns the organization's repositories (dg repo create), so their URLs are <org>/<repo>; register a DPNS name for it.

  2. Add each admin's personal identity as a maintainer of each repository (dg collab add <org>/<repo> <admin> --role maintainer). Pushes, merges, reviews and releases stay signed by the person who made them.

  3. Give each admin a limited key of the organization identity for the owner-only writes: adding and removing members, the description and topics. The key can do everything the organization can on Forge (it is the owner and a maintainer of every organization repository: protected pushes, settings, policy, webhooks, new repositories), but never spend more than its budget, never outlive its expiry, and never touch another contract. The organization's master key registers it:

    # as the organization (its identity file); one key per admin
    dg auth export --new-key --budget 0.5 --expires 90d --format dfk1 --reveal-secrets -o alice-admin.dfk1

    Hand the file to the admin over a private channel; they use it as DASH_FORGE_KEY (or dg --identity) for the organization's commands. dg auth keys list (as the organization) shows every admin's key, and dg auth keys disable <id>, run with the organization's identity file, revokes one at once.

What this does not give you: the key does not say which admin used it (Platform records the organization as the writer of membership changes), and a limited key holds no encryption key, so on a private repository adding a member (which wraps the key to them) and removing one (which rotates it) is done by whoever keeps the organization's identity file, on that machine. Don't copy the identity file to admins' machines: that gives them the master key, which the limited keys exist to avoid.


Private repositories

A private repository's content is encrypted on your machine before it leaves it, to a key only its members hold. Platform nodes, storage providers and anyone else see ciphertext. The design is docs/security/private-repos.md.

dg auth keys add --encryption                   # once per identity (see Identity and keys)
dg repo create secret --private                 # or `dg init --private`
git push dash://<you>/secret main               # packs and ref names are encrypted
dg collab add    <you>/secret <identity id>     # membership + the key, wrapped to them
dg collab add    <you>/secret <identity id> --role reader   # Read: the key, and no member writes
dg collab remove <you>/secret <identity id>     # delete + key rotation
dg repo keys status <you>/secret                # key changes, who holds a key, pending repairs

What is hidden and what is not. The encryption covers the content. What the network needs to enforce access stays visible:

Encrypted (members only)Visible to everyone
Code: every pack, index and browse artifactThat the repository exists; its name, owner, description, display name and topics
Branch and tag namesMembers and their roles (Write, Triage or Read included); when each joined; key changes and who made them
Default branch and protected-branch patternsWhen pushes, issues, PRs, comments and reviews happen, and who wrote each
Issue and PR titles and bodies, comment and review text, an inline comment's file path; the labels and milestones set on them, and a dismissal's reasonCommit ids (newOid, PR heads): anyone who already knows a commit id can confirm the repo contains it
A release's tag, name, notes, draft, pre-release, yanked and unpublished flags, and its asset list; each asset fileThat a release revision was written, when and by whom; revisions of one tag within one key version share a keyed tag name; each asset file's size
Sizes: pack sizes, object counts, the approximate length of every encrypted field
That a label was added, a milestone set or a review dismissed (the kind of each event), and when; who is assigned (the assignee identity is indexed for "assigned to me")
Not encrypted in this release: label definitions (dg label create: name, colour, description); check runs; webhook URLs

Leave the description empty if the project's purpose is itself sensitive.

Every member needs an encryption key. Private repositories wrap the key to each member's identity ENCRYPTION key. dg collab add checks the member has one and stops before writing anything if not (E306); they add one with dg auth keys add --encryption, or Settings → Members-only and private content in the web app.

Read access. Someone with the Read role (--role reader) holds the key like any member and can read everything, and can write only what anyone can (issues, PRs, comments and comment-only reviews, all encrypted); they cannot approve or request changes. Like any member, they could copy what they read.

Removing a member rotates the key. New pushes, issues and comments will be unreadable to the removed member. Everything they could already read stays readable to them: encryption can't take back what was shared. The rotation is one key wrap per remaining member plus one anchor document, so dg collab remove shows the cost first. You are wrapped first, so an interruption never locks you out; running dg repo keys repair finishes an interrupted rotation (the key is recovered from your own wrap on chain, never from a local file).

Repairs. A maintainer's dg and git push check the key on every visit: if a non-member still holds the current key (two maintainers removed members at the same time), or a member has no wrap to their current encryption key (they replaced it, or an add was interrupted), dg repo keys repair fixes it. The key is re-read before every write, so nothing is ever written under a key that was rotated away.

Cloning. git clone dash://<owner>/<repo> works as for a public repository when your key source holds your encryption key: what dg auth login and dg auth new store (the limited key with your encryption key beside it), or the identity file (DASH_FORGE_KEY); not a key stored with --signing-only or by an older dg (identity and keys). A non-member gets E307; an identity without an encryption key gets E306.

No recovery. If every member loses their encryption key (every copy of every identity file and mnemonic), the contents cannot be decrypted by anyone.

Make a private repository public. Its owner can do it once: in the web app, Settings → Danger zone → Make public…, or dg repo make-public <owner>/<repo>. It can never be private again. Choose what becomes public, since nothing is chosen for you:

  • Code only (--code-only): the code of the branches and tags you pick (--ref, repeated; by default the default branch and the tags on it). Issues, pull requests, reviews and other branches stay members-only, as "#3 · members-only".
  • Everything (--everything): everything members could ever read until now, every earlier edit, deleted and hidden comments, every branch ever pushed (deleted ones too), old settings and requests sent to bots. Releases made while the repository was private stay hidden after the conversion: a public reader sees them counted as hidden, and Forge has no step yet that publishes them (Known limitations).

--check shows what becomes public with each, what stays private, the cost and the oldest Forge that can clone it, and signs nothing. Messages to specific people, environments, branches for fewer people and everything members write from then on stay private in both. Everything is refused while an environment still holds values saved in the old format (E812). Both scan what they publish for secrets: a likely one stops the run until you name it with --allow-secret <fingerprint>. Everything's scan covers the code (deleted branches too) and the posts as they read now, not earlier edits, deleted comments or long posts kept in storage, so check those yourself before you choose it. You type make <owner>/<repo> public to confirm (or pass --yes). Code only can become Everything later (run it again with --everything), never the reverse. Members-only content keeps working afterwards, and old issues take public replies: a member's reply to a conversation written while the repository was private is members-only unless they add --public (dg issue comment, dg pr comment), and anyone who isn't a member replies publicly. --public is refused in conversations written since, which stay members-only. dg issue view and dg pr view mark what was written while it was private: with Everything it reads "Public · written while private", with Code only "members-only … · written while private". Everything members write from the run's own key change on stays members-only, and for that run that point never moves (a run started on another computer or browser is a new run): if another maintainer changes the repository's key after it and before the repository is public, the run can't be finished (E310) and the repository stays private; to make it public with what members wrote since included, start a new run with --start-over (or Start again… in the Danger zone), which says what that adds and asks you to type start over making <owner>/<repo> public. A known limit: if a key change lands in the moments right before the repository turns public, or the device that started the run loses its record, Forge falls back to the boundary the repository states, which can be later. Run the whole conversion from one device, don't change the repository's key while it runs, and check the result with --check (what Forge doesn't do yet). If the run stops, run it again with --resume, or open the Danger zone again and choose Finish: once the repository is public any maintainer can finish the settings and the code (the owner publishes the history), and maintainers see "Making this repo public stalled …" on the repository's pages until it is done. In the web app, the owner makes everything public after Code only with Make everything public… in the same place; a choice made in one browser is remembered there only, so finishing elsewhere asks again. Members are told in their notifications. On the web, a conversation written while the repository was private reads "Members-only · written while private" (Code only) or "Public · written while private" (Everything), and its reply box offers Public; people who can't read it see its public replies and can reply publicly. It costs about 0.02 DASH plus storing the code, which is about 0.27 DASH per MB on Platform, or nothing extra with storage of your own. People on Forge older than 0.2.0 can't clone it until they update.

Not supported for private repositories yet (E207): forks (dg repo fork) and webhooks. Issues, PRs, comments and reviews are encrypted; label definitions (dg label create) are allowed but stay public.

Branches changed while the repository was being made public are kept for members by dg. A new branch keeps its name when available; changes to a published branch or the default branch are kept as members/<name> (with a number on collision), so public branches retain their published tips. Tags are reported and are not kept. The keep step is safe to repeat: any maintainer can run dg repo make-public <owner>/<repo> --resume, including after a finished conversion. If the conversion ran in the web app, owners and maintainers see how many branches still need this command. The command shows the branch count and estimated cost before keeping; a keep-only resume asks for confirmation (--yes accepts the normal prompt; dash.confirm=refuse keeps its cap even with --yes, and always still prompts). A bare resume from a computer without a record publishes no additional code when public branches already exist; if none exist, the owner must say which mode to finish. A branch that cannot be kept is reported as Not kept: <name> (<reason>); other branches are kept and the conversion can finish. JSON lists each {name, tip, keep} result and counts these failures in notKeptForMembers. A service, push or cleanup failure leaves the dg run unfinished, prints its cause and retry command, and reports keptForMembersError. Temporary copies are deleted even on failure; the next run sweeps copies left by a killed run.

Releases of a private repository are encrypted (private repositories §16). The web app publishes, edits, yanks and unpublishes them (a maintainer's Edit on each release), and members download their files verified in the browser; dg release create, dg release unpublish and dg release download do the same from the command line. Each file you publish is encrypted in the tab before it goes to your own storage (an imported asset that could not be fetched and encrypted stays an external link: its URL is hidden, but the file is not encrypted), named by the hash of the encrypted copy, and the asset list is an encrypted file too. A private release holds 1507 bytes of tag, name, notes preview and provenance: longer notes continue in the encrypted asset list, so they need storage of your own even without files. Draft and pre-release are labels every member sees, not access control. Every change is a new revision that carries the rest forward; two maintainers editing the same release at once both land, and the one written second is warned that it may have dropped the other's change.

Content a removed member wrote late. A member removed from the repository who keeps writing under the old key, more than 240 blocks after the rotation, is hidden from every reader (the late-content rule). A clone that needs such a pack stops with E510 (clone incomplete: N packs hidden by the late-content rule).


Members-only content in a public repository

A public repository can keep some of its discussion members-only: issues, comments and reviews that only its members can read, beside everything public. Its code is public; branches and pull requests can be members-only too (Who can read what). Everyone can still see that something was posted, by whom and when. Who can read what explains the audiences, exactly what stays public, and what can still leak.

The words. Forge uses the same words in dg, the web app and these guides:

  • Audiences: Public, All members (short: Members), Maintainers, Writers and maintainers, Specific people. "Members-only" describes anything that isn't public. A post (an issue, comment or review) and an environment can have any of them.
  • Roles: Read, Triage, Write, Maintain, Owner, and Bot for an automated account, where the network's contracts have the role (Bots and agents). See Members.
  • Verbs: Publish (code), Make public (a post, such as a comment) and Make this repo public (a whole private repository). Each widens the audience for good and can't be undone. An author makes their own posts public and a maintainer anyone's; the owner makes a whole private repository public (above).
  • Repository kinds: Public and Private. "Private" means only a private repository, where everything is encrypted (above).
  • Access is what a bot or a CI runner is given.
dg repo members enable <owner>/<repo>                      # a maintainer, once; shows the cost first
dg repo members status <owner>/<repo>                      # on or off, can you read it, who has no key yet
dg issue create  <owner>/<repo> --members --title "…" --body "…"
dg issue comment <owner>/<repo> 12 --members --body "…"
dg pr comment    <owner>/<repo> 7 --members --body "…"
dg pr review     <owner>/<repo> 7 --approve --members --body "…"

New public repositories have it on from the start: dg repo create, dg init and the web's New repository form turn it on unless you opt out (--no-members-only, or untick Turn on members-only content now), for about 0.0011 DASH while you are the only member. Imports, mirrors and forks start with it off.

Turning it on in an existing repository shares a members key with every member who has an encryption key: about 0.0004 DASH plus about 0.0007 DASH per member (about 0.004 DASH for 5 members). Members without an encryption key are listed. They get the key once they set one up (dg auth keys add --encryption) and a maintainer runs dg repo keys repair. A member who asks for members-only content before it is on gets E312. In the web app, a maintainer chooses Turn on members-only content; the sheet shows the same cost first.

Replies follow what they answer. Without --members, a comment on a members-only issue, or a reply to a members-only comment, is members-only. A public reply inside a members-only conversation is refused before anything is signed, except in one written while the repository was private (see above), where --public makes the reply public. Edits keep the audience.

Messages to specific people. --to sends an issue, comment or review to a role group as it is now (--to maintainers, or --to writers for writers and maintainers) or to people you name (--to @alice,@bob, members or not), up to 16 people with you. Only they can read it; everyone else sees that it was posted and to how many people. It needs no members-only content turned on, but each person needs an encryption key. Replies go to the same people (a group as it is now) and --to on a reply adds people, who read from that reply on. Who can read what has the details.

dg issue create  <owner>/<repo> --to maintainers --title "…" --body "…"
dg issue comment <owner>/<repo> 12 --to @alice,@bob --body "…"
dg pr review     <owner>/<repo> 7 --comment --to writers --body "…"

Reading. Members read members-only items in dg issue view/list and dg pr view/list, marked "members-only". Everyone else sees #3 · members-only issue by @alice · open, "3 members-only comments hidden, shown as placeholders (you're not a member of alice/shop)", and lists that say how many rows they can't read ("Issues 3 (1 members-only; only members of alice/shop can read them)"). In --json, every item has "audience" and "readable". A dg key protected by a passphrase is asked for on the terminal. Without a terminal (or with --json, and no DASH_FORGE_PASSPHRASE), a member sees the items as locked instead. A removed member still reads what was posted before the removal.

From the web app, members read members-only issues, comments and reviews after one unlock per tab, and a reply in a members-only conversation stays members-only. Choose Members on a composer's audience chip for a new issue or comment; everyone else sees members-only rows and placeholders, and View as public shows you what they see.

A members-only review counts. Its verdict is public, so an approval counts toward the branch policy for everyone, member or not, while its text stays members-only. Older Forge builds don't count it, and may refuse a merge an up-to-date build allows (E804). Update to see and count members-only reviews.

Adding and removing members works as on a private repository, keyed on whether the repository has members-only content:

  • dg collab add shares the key with the new member (about 0.0007 DASH more). They read everything members-only, including what was posted before they joined. A member with no encryption key is added anyway and can do everything public. They get the key after they set one up and a maintainer runs dg repo keys repair.
  • dg collab remove changes the key (about 0.0007 DASH per remaining member, plus about 0.0006 DASH), and says so before you confirm: new members-only issues, comments and reviews will be unreadable to them, and what they could already read stays readable to them.
  • A role change between Write, Triage and Read keeps the key: every role holds it, Read included.
  • The web app's Settings → Members does the same.
  • Change members only with an up-to-date Forge. A member added by an older build has no key yet and sees E311 until a maintainer shares it: Repair on the repo page, or dg repo keys repair. Nothing shares it automatically. A member removed by an older build keeps reading new content until dg repo keys repair changes the key. dg repo keys status shows both.

CI runners are not members. A runner key (dg ci runner add) reports check runs and never receives the members key. If you give a runner's identity the Read role, it reads everything members-only.

Environments. A repository's configuration and secrets can be kept outside git, encrypted for the people you choose (Maintainers, Writers and maintainers, All members, or specific people): see Environments.

Make your own posts public. The author of a members-only issue, comment or review, or of one sent to specific people, can make it public, at any role: dg make-public <repo> <id or number>…, or Make public beside your own members-only post in the web app. Everyone can read it as it reads now; earlier versions of an issue stay members-only. It can't be undone. A review's text is added as a public comment on your review, shown in its place as "Review text made public by @you". On the current network an inline comment's file name can't be made public, so it shows without it, and an imported post can't be made public. A post inside a members-only conversation can't be made public on its own. The web app warns when the text quotes someone else's members-only words.

Make other people's posts public (maintainers). A maintainer can make anyone's members-only issue, pull request, comment or review public, and one sent to specific people if it was sent to them: dg make-public <repo> <id or number>…, or Make public… beside the post in the web app, and a whole conversation with dg make-public <repo> <issue or PR number> --thread or Make thread public…. Forge lists every person whose words become public before you confirm ("Make 6 posts public? Words by alice, bob and carol become public. They'll be notified."), and they see it in their notifications. Each post is made public as it reads now; --history (Also publish earlier edits) adds an issue's earlier versions. It doesn't edit the posts: it publishes the key that opens them, in one write of about 0.0022 DASH. Every reader, signed in or not, then shows them as public, with "Made public by @you". Left out, and named before you confirm: posts that are public already, messages for specific people that weren't sent to you, posts you can't read, posts too long to make public this way, and a pull request from or into a members-only branch (making it public this way would publish the branch's name and newest commit too; its author can make its title and description public). A members-only pull request between public branches is made public with its comments and reviews. If the author edits a post after that, the edit is public too; an author using an older Forge build might keep it members-only, and readers then say it was "edited after it was made public" (an issue shows the version you made public, a comment shows that its new text is members-only). Only a maintainer can do this: Forge ignores anyone else's attempt.

Not yet. Members-only releases are coming later. Search doesn't look inside members-only issues you can't read.

Coordinated security fixes

A fix for a vulnerability is made members-only and published on an agreed date, in the same repository:

  1. Reports arrive by your SECURITY.md (an email address and a PGP key, as on GitHub). Forge shows it as Security policy on the repository and on the new-issue form. There is no report form in Forge.
  2. Track it in a members-only issue (dg issue create <repo> --members …). A message to specific people can't hold a publication date, so track the fix in a members-only issue even when the report itself went to maintainers only.
  3. Fix it on a members-only branch with a members-only pull request (dg branch new --members sec/cve-…, push, dg pr create). A runner set up for members-only branches runs its checks; the public sees only their outcomes, under names that mean nothing.
  4. Set the date. dg publish --pr 7 --issue 12 --tag v1.2.3 --at 2026-10-20T14:00Z (or a branch: dg publish sec/cve-… --onto main --issue 12 --at …) runs every check dg publish runs, then records the date and what is published on the tracking issue, members-only (about 0.0007 DASH); nothing is published. Members see it in the issue's Publication panel in the web app and in dg embargo list, with its checklist; anyone else sees only that a date was set on #12, by whom and when. Run it again with another --at to move the date (the newest counts), or dg embargo cancel 12 to withdraw it, even after the issue was made public. A maintainer or someone with Write access sets it; the panel's Set a date…, Change date and Withdraw do the same. What is published is the branch as it is at that time: members can still push to it until then.
  5. The release bot publishes it. A member identity with Maintain access (Write is enough without a tag and for your own issue) runs dg embargo run --wait --yes in a clone of the repository. --wait keeps it running until every waiting date is published; to pick up dates set later, run dg embargo run --yes every few minutes from cron or a service instead. Run one release bot per repository. When a date comes it checks everything first and reads the date again, then, in order: makes the tracking issue public, publishes the fix squashed into one new commit made at that moment on the branch as it is then, tags it and publishes the release. A date withdrawn or moved meanwhile stops it before its next step. A run that stops part way finishes the rest when run again. It uses its own clock.
dg publish --pr 7 --issue 12 --tag v1.2.3 --at 2026-10-20T14:00Z   # the date and the plan, members-only
dg embargo list <owner>/<repo>                                     # the dates and their checklists (members)
dg embargo cancel 12                                               # withdraw a date
dg embargo run --wait --yes                                        # the release bot, in a clone

Issues

Anyone with an identity and some credits can file an issue. On mainnet fees are the spam floor; on a test network credits are free, so they are not.

Security problems don't go in issues. An issue is public and permanent. A repository says how to report a vulnerability in a SECURITY.md file, and Forge shows it as GitHub does: the repo header has a Security policy link, the file opens at /<owner>/<repo>/security, and the new-issue form points to it ("Issues are public and permanent. Reporting a vulnerability? Read the security policy."). Forge looks on the default branch in .github/SECURITY.md, then SECURITY.md, then docs/SECURITY.md (GitHub's order) and uses the first it finds. A repo without one says "Contact a maintainer privately." instead. A private repo's new-issue form shows no such line: its issues are visible only to its members. Forge has no report form of its own: put an email address and a PGP key in the file. dg repo view prints Security policy: .github/SECURITY.md when there is one. Run in a clone it reads the clone; elsewhere it fetches the default branch first, unless the repo is over 25 MiB, when it says so (--json: securityPolicyChecked is false and securityPolicy null). --skip-security-policy never fetches. Private repos are not read.

dg issue list   <owner>/<repo> [--state open|closed|all] [--label bug]... [--author me|<id|name>]
                [--assignee me|<id|name>|none] [--search "crash #12"] [--limit 30] [--page 2]
                [--include-hidden]
dg issue view   <owner>/<repo> 12
dg issue create <owner>/<repo> --title "Crash on empty input" --body "Steps: …"
dg issue edit   <owner>/<repo> 12 --title "Crash on empty config" [--body … | --body-file notes.md]
dg issue edit   <owner>/<repo> 12 --add-label bug,docs --remove-label triage \
                --add-assignee @me --remove-assignee alice --milestone v1   # or --remove-milestone
dg issue comment <owner>/<repo> 12 --body "Fixed in 8f3e2a1"
dg issue edit-comment <owner>/<repo> <comment id> --body "Fixed in 8f3e2a1 (and 91c0d4e)"
dg issue delete-comment <owner>/<repo> <comment id>
dg issue close  <owner>/<repo> 12
dg issue reopen <owner>/<repo> 12
dg issue label  <owner>/<repo> 12 add bug docs     # or: remove bug (the older --add/--remove still work)
dg issue assign <owner>/<repo> 12 me alice         # or: unassign; ids or DPNS names
dg issue status <owner>/<repo>                     # assigned to you, mentioning you, opened by you

dg issue edit takes gh's flags: every change is confirmed once and written as one event each, and labels, assignees and milestone can go with a title or body change in the same run. A label must be one the repository defines and a milestone an open one; both are checked, with your role, before anything is signed.

A label the issue already has, or an assignee already assigned, is left alone: dg says so and writes (and charges) nothing for it, so the timeline never shows the same change twice. Removing one the issue does not have is skipped the same way.

Who can change state. The issue's author can close and reopen it (an authorEvent). Maintainers, writers and triage members can close, reopen, label and assign any issue (an event). dg picks the right one for you. Consensus refuses both from anyone else, and dg says so before anything is signed (E601).

Edits. Only the author can edit an issue's title or body, or a comment's body (dg issue edit-comment takes the comment's id from dg issue view --json or dg pr view --comments --json, and works for PR comments too): an edit replaces their document, so consensus admits it from them alone, members included. The earlier text stays readable on Platform to anyone who could read it, and the web shows "edited". Re-running an edit that already landed writes nothing. In a private repository the whole text is re-encrypted (a PR's under the key version it was opened with, the others under the current one) and nothing is written in plaintext. An edit made against text someone else replaced in the meantime is refused before signing (E607).

Long text. A body, comment or set of release notes holds 5,120 bytes on Platform (less in a private repository, where the title and other encrypted text share the space). A maintainer or writer can post a longer one, up to 256 KiB: dg and the web store the full text as a repository artifact and the field keeps its first part and a hidden line naming it (forge-v2.md §6.3). Readers show the whole text; if the artifact cannot be read they show the first part and say the rest is missing. dg stores it on the repository's storage policy (dash.storage), else on Platform, and the confirmation says where and adds its cost (about 0.010 DASH for 20 KB on Platform; only one small manifest on your own storage). People with Triage or Read access and non-members cannot record artifacts, so their text stays within 5,120 bytes: split it into comments. Where it works: issue and PR descriptions, comments and release notes in dg (dg pr comment too, inline ones included) and on the web, where the composer says the text is stored whole and adds its cost (always on Platform); a review's summary on the web. Not yet: dg pr review drafts and the web's inline review comments, and a private repository's release notes on the web (use dg release create, which stores them on the repository's own storage).

Assignees are events naming the identity twice: as the value the state fold reads, and as the event's refId, so "assigned to me" is one indexed query (Explore and --assignee me).

Listing. dg issue list reads every issue and the repository's event feed once, then filters, so a filter sees the whole repository rather than the newest page. The web issue list has the same filters, keeps them in the URL, and pages 50 at a time.

Numbers. Issues and PRs share one dense number sequence: consensus requires a new issue or PR's number to equal the exact count of the repository's issues and PRs, counted with the new one (the dense rule), so a repository's first issue and first PR are never both #1 — whichever is opened second gets #2, and nobody can squat a high number to jump the line. If two people race for the same number at once, the second create is refused (consensus code 10422, rule "dense"), and dg retries with the next free number. An interrupted dg issue create resumes when run again rather than opening a second issue.

A mirrored item's own number still follows this repo's dense sequence; mirroring never skips ahead to match the source. What a mirror (forge-import) can carry instead is the source's number in a separate upstreamNumber field, trusted only when it was written by the repo's owner or a current maintainer or writer. The web app shows it beside the local number, "#12 · upstream #7761", and a bare #7761 in an imported body resolves to whichever local item recorded that upstream number (Mirror a GitHub repo has the details). dg does not read upstreamNumber back today; the display is web-only.

No deletes. Issues, PRs and their state events cannot be deleted, so nobody can rewrite a thread's history. Comments can be deleted by their author: the comment's Delete on the web, or dg issue delete-comment (for PR comments too). Consensus lets nobody else delete it, maintainers included, so a comment posted by mistake is for its author to remove. Replies to it stay, and read as replies to a deleted comment. A delete removes the comment from Platform state, but the write that posted it stays in the chain's block history: treat a secret posted in a comment as leaked and rotate it.

Locking. A maintainer, writer or triage member locks a conversation to stop non-members from posting to it:

dg issue lock   <owner>/<repo> 12          # or: dg pr lock <owner>/<repo> 7
dg issue lock   <owner>/<repo> 12 --off    # unlock

Locking and unlocking are transitions maintainers, writers and triage members write, folded the same way for issues and PRs. dg issue view --json shows the fold as "locked": true|false; dg pr view does not print it today. On the web, an issue's sidebar shows "Locked to members" or "Open to everyone" and has a Lock / Unlock button for maintainers, writers and triage members; a PR enforces the same lock (a non-member sees the compose box disabled, "This conversation is locked: only the repo's members can comment") but shows no status label and no button yet — it locks and unlocks from dg pr lock only. Once locked, a non-member's comment or review is refused at the CLI before anything is signed ("comment not posted: issue #12 is locked to members"); a member's still goes through. Locking does not require re-running a close or reopen — it is independent of the issue or PR's open/closed state.

Issue and PR templates

The web app reads templates from the repository's default branch when you open an issue or a PR, as GitHub and GitLab do. They are files in the repository, so a mirrored or imported repository brings its own.

Issue templates come from the first of .forge/ISSUE_TEMPLATE/, .github/ISSUE_TEMPLATE/ and .gitlab/issue_templates/ that holds any. Open an issue offers them as buttons above the title:

  • Markdown templates (*.md) work as on GitHub: optional front matter (name, about, title, labels) followed by the body. GitLab's plain Markdown files are named after the file.
  • YAML issue forms (*.yml) use GitHub's schema: markdown, input, textarea (with render), dropdown (with multiple and default) and checkboxes. Required fields block Submit until they are answered. The issue body is the one GitHub writes: each field's label as a ### heading, then the answer (_No response_ when empty). A file that is not a valid form is not offered.
  • config.yml works as on GitHub. blank_issues_enabled: false removes Blank issue, so a template must be picked, unless no template is usable. contact_links (https links only) are listed under the templates.
  • Labels a template names are applied with the issue when you are a maintainer, writer or triage member. Only labels the repository defines are applied, as on GitHub. Each label is one more document, included in the cost shown. Anyone else sees the suggested labels for a member to apply. A form's assignees are not applied.

PR templates. Open a pull request fills an empty description with the default template. That is the first pull_request_template.md (any case) found in .forge/, .github/, the root or docs/; failing that, GitLab's .gitlab/merge_request_templates/Default.md. The *.md files of a PULL_REQUEST_TEMPLATE/ folder and GitLab's other merge request templates are offered as buttons. A link can name one, as on GitHub: …/repo/pulls/new?owner=…&name=…&template=bug.md. A description you already typed, or one kept from an earlier visit, is never replaced. Picking another template swaps the text only while you have not edited it.

dg issue create and dg pr create take --body as given; they do not read templates.

Moderation: lock and hide

A repository's maintainers moderate its conversations with two tools. Neither deletes anything: on Dash Platform nobody but a comment's author can delete it, and the network's own moderation applies to every repository at once, so it cannot be scoped to yours.

LockHide
Whomaintainers, writers and triage membersmaintainers only
What it doesfrom then on only members can comment or reviewreaders see a comment, a review or a whole issue or PR collapsed, and can expand it
Enforced byDash Platform (it refuses a non-member's post)Forge apps; Dash Platform checks that the hider is a maintainer
Use it fora thread under attack, or a finished discussionspam, abuse, off-topic or outdated posts that are already there
dg issue hide <owner>/<repo> 12 --comment <comment id> --reason spam   # hide one comment
dg issue hide <owner>/<repo> 12 --reason off-topic                       # hide the whole issue
dg issue hide <owner>/<repo> 12 --comment <comment id> --off             # unhide
dg pr hide    <owner>/<repo> 7 --review <review id> --reason outdated    # or --comment <id>
dg issue view <owner>/<repo> 12 --show-hidden                            # read what was hidden

Reasons are GitHub's: spam, abuse, off-topic, outdated, resolved, duplicate, or none. The ids come from dg issue view --json and dg pr view --comments --json. dg refuses a hide from someone who is not a maintainer before anything is signed.

What readers see. On the web a hidden comment or review is one line, "A comment by bob was hidden by alice as spam · Show", in the timeline and in Files changed. A hidden issue or PR keeps its number; the web's Issues and Pull requests lists leave it out behind "N on this page hidden by maintainers or a ban · Show" (the Open and Closed counts do not change), and its page opens behind a banner with "Show it anyway". dg issue list and dg pr list leave it out the same way, after paging (a page may show fewer rows than --limit), and say "(2 hidden by maintainers or a ban on this page; --include-hidden shows them)"; --include-hidden lists it with "[hidden by alice as spam]" at the end of its row, and --json gives each row a hiddenBy field (null, or by, reason, at, eventId) and the page's hiddenOmitted count. In --json, count is the rows shown and count + hiddenOmitted the page's size, so use truncated, not count < --limit, to tell the last page (the top-level hidden still counts malformed documents). The flag is meant for maintainers checking what was hidden, but anyone can use it: the hides are public. dg issue view and dg pr view print the same one line unless you pass --show-hidden. Notifications leave out a hidden issue or PR, and a hidden comment or review, once the inbox has read the hide (within a few minutes). The timeline records every hide and unhide that counts ("alice hid a comment by bob · spam"): they cannot be edited or deleted, so they are the record of who hid what.

Who wins. Any maintainer can hide or unhide. If the repository's owner hid or unhid something, the owner's latest decision stands whatever a maintainer does later, and only the owner can hide what the owner wrote; dg and the web refuse such a write before signing rather than spend credits on it. An inline comment hidden with its review shows again when the review is unhidden. A hide stays after its maintainer is removed (the network proved them a maintainer when they wrote it); unhide it to undo it.

A hidden review still counts. Hiding is display only: an approval or a request for changes still counts toward the merge until a member dismisses it (dg pr dismiss-review, or Dismiss on the Reviewers card). Hiding an issue or PR does not close it either; the web's Hide issue… offers "Also close and lock it", which writes the close and the lock after the hide.

Banning someone. When one identity keeps posting spam or abuse, a maintainer can ban it from the repository instead of hiding each post. Forge apps then collapse everything it wrote there (its issues, pull requests, comments and reviews) behind "Hidden: … was banned by a maintainer · Show", leave its issues and pull requests out of the lists and notifications, and refuse its new issues, pull requests, comments and reviews before signing (E610). Platform still accepts its writes, as with hides.

dg repo ban   <owner>/<repo> @spammer --reason spam   # spam, abuse or off-topic; or no reason
dg repo bans  <owner>/<repo>                          # who is banned, by whom, and why
dg repo unban <owner>/<repo> @spammer                 # lift your own ban

The web has the same under Settings → Bans. A ban counts while the maintainer who wrote it is still a maintainer (or the repository's owner); only that maintainer can lift it, and removing them as a maintainer drops it. The owner and current maintainers cannot be banned: a ban of one is ignored. A ban, its reason and who wrote it are public, in a private repository too: the ban document is not encrypted. A banned identity's review still counts toward the merge until a member dismisses it, as with a hidden review.

Limits. A hidden post is still on Platform: anyone can read it with Show, --show-hidden, --include-hidden, or any client that predates hiding. In a private repository the reason is encrypted like other event values; which item was hidden is not. Each hide is one event: a whole thread costs about as much as a label, and hiding one comment or review costs about 0.0002 DASH more, because the event also names it. To stop a flood, lock the thread first, then hide what was already posted.


Searching, and what concerns you

dg issue status and dg pr status are gh's summaries for one repository:

  • Issues: the open ones assigned to you, those that mention you (@yourname or your identity id in the body, the web's mention rule), and those you opened.
  • PRs: the PR from the branch checked out here, your open PRs, and the open PRs that request your review. Each shows whether it is a draft, approved, has changes requested, or still needs review.

Inside a clone, leave out the repository: dg pr status.

dg search issues and dg search prs take the web search box's qualifiers. The grammar is shared with the web and pinned by the search_* conformance vectors:

dg search issues <owner>/<repo> is:open label:bug -label:wontfix author:@me "exact phrase"
dg search issues <owner>/<repo> no:assignee milestone:"v1.0" in:title crash reason:"not planned"
dg search prs    <owner>/<repo> is:merged review-requested:@me draft:false
dg search repos  forge                       # name prefix; or topic:rust, owner:alice (--topic, --owner)

How a search reads:

  • It looks in one repository. Platform has no text index, so it reads the repository's items (every issue; the newest 100 PRs) with their state and filters them.
  • Every state is searched unless the query names one, as gh search does.
  • is:closed on PRs means closed without merging (the web's Closed tab); is:merged and is:unmerged pick the rest.
  • author: and assignee: take a DPNS name, an identity id or @me.
  • A qualifier dg cannot apply is named on stderr ("not applied: …") and in --json's notApplied, never searched for as text: comments: and sort:comments-desc need a count read per item.

dg search repos finds repositories:

  • by name prefix (the repo.name index);
  • by topic (public repositories only);
  • by owner; with an owner or a topic, the remaining words must appear in the name or description.

Raw queries. dg api query <core|collab|community|dpns|contract id> <type> '[["field","==",value]]' [--order '[["field","asc"]]'] [--limit N] [--start-after ID] [--all] [--count] runs one document query, proof-checked like every other read, and prints the documents as JSON:

  • Identifiers are base58 and byte arrays hex.
  • The clauses must fit one of the type's indexes, as Drive requires.
  • --count needs a countable index.

Pull requests

A pull request is a patch document in the base repository. It points at the commit you want merged and at the repository that holds that commit (sourceRepoId): the base itself, or a fork. The code itself lives in that repository, not in the PR.

Pushing branches

git push to dash:// works as it does with any git server, with four differences worth knowing:

  • Rewriting a branch. After a rebase or an amend, push with git push --force-with-lease. It overwrites the branch only if it still points where you last fetched it when the push starts, so you don't drop commits someone pushed since. If the branch has moved, the push is rejected as stale info: fetch, look, then push again. If someone else's push lands while yours is being written, neither replaces the other: git reports yours as rejected and the branch shows both until one of you pushes again. git push --force overwrites without that check.
  • Two pushes at once. Platform cannot compare and swap, so when two people push to a branch from the same commit at the same moment, both pushes land. The branch then has two tips and reads as diverged everywhere until a later push settles it, and git reports a push that finds the branch diverged once it landed as rejected (non-fast-forward (lost concurrent race)). To settle it, fetch, merge the other tip and push as usual. A merge that contains every tip writes one ref update for each one (about 0.0009 DASH per extra tip, included in the estimate), so every reader sees the branch resolve to it. A push that leaves a tip out is refused before anything is written, and the refusal names that tip's commit: git fetch <remote> <commit> brings it into your clone, so you can merge it and push again. git push --force also settles the branch, but drops whatever it does not contain.
  • No atomic pushes. Each branch and tag is a separate Platform write, so git push --atomic is refused: some refs could land while another fails. Push without it. git reports each ref, and you can push a failed one again.
  • Names git cannot hold side by side. A new branch or tag is refused when a ref already uses its name as a folder or as a file (feature and feature/x), or differs from it only in letter case (Fix and fix, which are the same file on macOS and Windows). The web's New branch refuses the same names.

The flow

1. Have a repository you can push to. If you are a writer on the base repository, push a branch to it directly and skip to step 3. Otherwise, fork it:

dg repo fork <owner>/project            # or --name <another name>; --default-branch-only
✓ forked <owner>/project → <you>/project
  packs:   36 recorded (36 by reference to the parent's Platform chunks), nothing re-uploaded
  refs:    1 copied
  remote:  dash://<you>/project
  cost:    ~0.03 DASH
  next:    push a branch to dash://<you>/project, then `dg pr create <owner>/project`

A fork is a new repository with forkOf set to the parent. It records the parent's packs by reference, so nothing is uploaded again. Packs on external storage keep their URLs, and packs on Platform are read from the parent's chunks, which are permanent. The fork's cost is its own documents: the repo, one small manifest per pack, and the refs. It copies the parent's branches and tags; --default-branch-only copies the default branch alone (GitHub's "Copy the main branch only", also a checkbox in the web's fork dialog), one ref update instead of one per branch and tag. Re-running an interrupted fork finishes it without paying twice. It never moves a branch you have already pushed to the fork. In the web, the fork browses through the parent's published browse and history index, so no visitor rebuilds it in the browser; your own pushes to the fork index just the packs they add.

Keeping a fork up to date. When the parent moves on, sync the fork, as GitHub's Sync fork does:

dg repo sync <you>/project              # the default branch; --branch <name> for another
Sync <you>/project:main with <owner>/project:main: fast-forward 8f3e2a1c9d0b → 41c07b5e2a9f (3 commit(s))
  2 pack manifest(s) by reference, nothing re-uploaded, + 1 ref update   ~0.0027 DASH
✓ synced <you>/project:main with <owner>/project:main: now at 41c07b5e2a9f (3 new commit(s))

The fork's default branch follows the parent's default branch; another branch (--branch) follows the parent's branch of the same name. A sync only fast-forwards: it records the parent's new packs by reference (nothing is uploaded) and moves the branch with one ref update. When your branch already has the parent's commits and some of its own, there is nothing to sync. When both moved, nothing is written and dg stops with E105, naming the pull request that merges the parent's branch into your fork (dg pr create <you>/project --base main --head main --head-repo <owner>/project --title "Merge <owner>/project:main"), or git pull and a push. Your own commits are never dropped. Syncing is for the fork's maintainers and writers; a protected branch, for its maintainers. dg compares the histories in the current repository when it already holds both tips, else it fetches the parent's branch (and yours, when it is not in the parent's history) into a scratch repository first.

In the web, a fork's Code tab says whether its default branch is up to date with the parent's. Sync fork (maintainers and writers; Compare for everyone else) compares the histories in the browser, then offers Update branch for a fast-forward, or the pull request into the fork when both sides moved.

2. Push your branch to it.

git clone dash://<you>/project && cd project
git switch -c fix-empty-input
# … commit …
git push dash://<you>/project fix-empty-input

3. Open the PR. From the branch, with no other flags:

dg pr create <owner>/project --body "Fixes #12"
Open PR "Handle empty input" in <owner>/project: <you>/project refs/heads/fix-empty-input (8f3e2a1c9d0b) → refs/heads/main
✓ opened PR #7 in <owner>/project · ~0.0014 DASH

dg fills in the rest:

  • Branch: the current branch (--head to name another).
  • Source repository: your fork of the base, found through forkOf, else the base itself (--head-repo to name one).
  • Commit: where that branch points in the source repository, so the PR always names a commit reviewers can fetch (--head-oid to name one).
  • Base: the base repository's default branch (--base).
  • Title: the head commit's subject (--title).

PR numbers follow the same rule as issue numbers.

4. Review. Reviewers fetch your commit straight from your repository:

dg pr status   <owner>/project            # your current branch's PR, yours, and those awaiting your review
dg pr list     <owner>/project [--state open|closed|all] [--include-hidden]
dg pr view     <owner>/project 7          # state, reviewers, approvals, reviews
dg pr view     <owner>/project 7 --comments   # + threads under their file and line
dg pr diff     <owner>/project 7          # fetches head and base, then git diff base...head (merged: from the base tip before the merge)
dg pr commits  <owner>/project 7          # the commits the PR adds
dg pr checks   <owner>/project 7          # check runs reported on the head
dg pr checkout <owner>/project 7          # branch pr/7 at the PR head, switched to if the tree is clean
dg pr review   <owner>/project 7 --approve --body "LGTM"
dg pr review   <owner>/project 7 --request-changes --body "Needs a test" \
  --file src/a.rs --line 12 --body "off by one?" \
  --file src/b.rs --start-line 3 --line 5 --side old --body "why remove these?" \
  --file src/c.rs --line 9 --suggest 'let x = 1;' --body "simpler"
dg pr comment  <owner>/project 7 --body "Why this approach?"          # one comment now
dg pr comment  <owner>/project 7 --reply-to <comment id> --body "Done"

Inline comments. Every flag after a --file belongs to that file's comment, until the next --file. --line alone is one line; --start-line makes a range. --side old is the removed side of the diff. With no --line, the comment is about the whole file. --suggest adds a ``` `suggestion ``` block that the PR's author can apply. The review and its comments are 1 + N documents, written one after another. If the submit is interrupted, running the same command again finishes it without writing anything twice.

Pending review. dg pr review … --pending --file … --line … --body … adds comments to a review kept on your machine and writes nothing. A later dg pr review … --request-changes (or --approve, --comment) submits all of them with the verdict. --discard throws the pending review away.

Conversations. dg pr resolve <owner>/project 7 <comment id> resolves a thread, and unresolve reopens it. The PR's author and its members can do this. dg pr request-review <owner>/project 7 @alice asks for a review, and unrequest-review withdraws the request. A member can dg pr dismiss-review <owner>/project 7 <review id> --reason "…": the review then counts neither for nor against. The reason is public.

Suggestions. The PR's author (anyone who can push to its branch) runs dg pr suggestion apply <owner>/project 7 --all, or names comment ids. This commits the suggestions to the PR branch as one commit, with a Forge-Suggestion: trailer per comment, and moves the PR head to it. Overlapping suggestions, or ones made on an older head, are refused with E107.

Drafts and edits. dg pr create --draft opens a draft. dg pr ready and dg pr draft switch between the two. The author can change the title and description with dg pr edit <owner>/project 7 --title … --body …. Maintainers, writers and triage members change a PR's labels, assignees and milestone with the same flags as dg issue edit (--add-label, --remove-label, --add-assignee, --remove-assignee, --milestone, --remove-milestone), confirmed once.

Changing the base (retarget). dg pr edit <owner>/project 7 --base release/1.x moves an open PR to another branch of the repository, as GitHub's "Edit" does: one event (kind 8, about 0.0007 DASH) that maintainers and writers may write (triage members may not; consensus refuses theirs). The new base must be a branch now, and is refused before signing when it is not, when it is the PR's own source branch, or when the PR is closed or merged. From then on the PR merges into the new base: its diff, dg pr merge, dg pr update-branch and the web's merge box all use it, and a merge counts when it lands there (the base had to be a branch when the PR was retargeted to it). dg pr view shows "retargeted from …", and --json keeps baseRef (the base it was opened against) beside baseRefName (the one it merges into now) and retargetedTo. The timeline shows who retargeted it and when; a PR merged into its base stays merged there, whatever is written later.

A review records the commit it was made on, which is the PR's head at the time. Which approvals count:

  • Only reviews from current writers and maintainers count.
  • Only reviews on the PR's current head count. When the head moves, older reviews go stale: dg pr view marks them, and tells a reviewer "new commits since your review".
  • A reviewer's newest approve or request-changes review is the one that stands.
  • A members-only review counts like any other, for everyone: its verdict is public, only its text is members-only.

Anyone can post a review. A non-member's approve or request-changes is written, shown on the PR, and labelled "approved (not a member)" or "changes requested (not a member)" — it never counts toward the branch policy's required approvals, and dg says so.

The PR follows its branch. When you git push the PR's branch, the helper moves the PR's head to the new commit (a headUpdate, about 0.0007 DASH) and says so. It does this for your own PRs only. git config dash.prAutoSync false turns it off, and dg pr sync <owner>/project 7 then does it by hand. dg pr update-branch <owner>/project 7 merges the base branch into the PR branch and moves the head.

5. Merge. A writer or maintainer runs:

dg pr merge <owner>/project 7
Merging PR #7 of <owner>/project into refs/heads/main
  ✓ fetch     base 61ebee5956a8 · head e5d18e7f96e9
  ✓ merge     merge commit 3b1f0c2d4e5a
  ✓ push      refs/heads/main → 3b1f0c2d4e5a
  ✓ event     merge event 9FhT…
✓ merged PR #7 (3b1f0c2d4e5a)

dg does the merge on your machine, in a scratch repository, in four steps:

  1. Fetch the base branch and the PR head, each from its own repository, and build the merge (step 2) before asking: the price shown is git-remote-dash's own price for the push, from a dry run of it. --yes approves that price and no more: a push that turns out dearer is refused (E801) before anything is paid.
  2. Fast-forward if it can. Otherwise build a merge commit, authored with your git user.name and user.email, with the message Merge pull request #7 from <branch> and the PR title (--message sets your own; --no-ff writes a merge commit even where the base could fast-forward). --squash instead makes one commit on the base with the PR's changes, authored by the PR's author (the author of its oldest commit) and committed by you, with a Co-authored-by line for each other author (--message sets its message). --rebase instead replays the PR's commits on the base with git rebase: each keeps its author and message and you commit it, a commit whose change the base already has is skipped, and a head already on the base tip is fast-forwarded unchanged. A commit that does not apply cleanly stops it, naming the commit and files.
  3. Push the result to the base branch. The push uses your dash.storage settings when you run dg pr merge inside a clone of the repository.
  4. Post the merge event naming the commit that landed.
  5. Close the open issues the description closes (Fixes #12, closes #3, resolves #7; at most 10), as GitHub and the web's merge box do. --keep-linked-open leaves them open, and each close is quoted with the merge. On a public repository each close names the pull request, and the issue reads "closed this as completed in #7" once readers confirm that the pull request was merged before the close and its description closes the issue. A close that names a pull request that fails that check reads as a plain close.

Each step is reported. If one fails, the output says what already happened. If the push landed but the event did not, dg pr merge --event-only records the event. If a merge with --override-policy landed but its policy-bypass event did not, the command fails with E106, and dg pr merge --override-policy --record-bypass records it. --delete-branch deletes the PR's branch afterwards. This needs write access to the repository it lives in. Before merging, it checks the repository's newest 100 pull requests: when another open PR is based on that branch (a stack) or uses it as its head, the merge is refused with E808, naming them. When there are older pull requests, or some can't be read, the output says they were not checked (branchCheckNote in --json). Retarget them first (dg pr edit <repo> <n> --base <branch>), merge without --delete-branch, or pass --force-delete-branch to delete it anyway.

  • Conflicts: nothing is pushed (E105). Check the PR out, merge the base into it, resolve, push the result to the PR's branch (the PR follows it), and run dg pr merge again. dg pr update-branch does this for you when the merge is clean.
  • Protected base branch: only a maintainer can push to it. A writer's merge is refused with E601 before any git work.
  • Merged elsewhere: if the merge was pushed some other way, dg pr merge --event-only [--merge-oid <commit>] only posts the event. A merge event is permanent, so dg checks the commit first: it must already have been a tip of the base branch, and it must contain the PR (the PR head is that commit or one of its ancestors, or the commit is a squash or a rebase of the PR on the base). On a protected base only a maintainer can record a merge, as only a maintainer can push one.
  • Reverting a merge: dg pr revert <repo> <n> does what GitHub's Revert button does. It fetches the base branch into a throwaway repository (your clone is never touched), checks that the recorded merge contains the PR, and builds one commit on the base's tip that undoes what the merge brought in: a merge commit against its first parent (git revert -m 1), a squash commit, or the commits a rebase or a fast-forward added. It pushes that commit to a new branch, revert-<n>-<head branch> (--branch names another), and opens a pull request Revert "<title>" into the same base, with Reverts #<n> in its description. The cost is shown before you confirm, and --json reports the new PR. It is refused for a PR that is not merged, a merge that does not contain the PR, a merge commit the base branch no longer holds, or a revert that conflicts with later changes on the base; nothing is pushed then, and the error gives the git revert command to run in a clone for the way the PR was merged. It is also refused when its revert would reach more people than the pull request did: a members-only pull request in a public repository, or one for specific people. The revert's title repeats the original title. It needs write access to the repository.

A PR shows as merged only when both are true: the merge event exists (consensus admits it only from a writer or maintainer), and its commit has been a tip of the base branch. dg pr merge reads the PR back and reports what readers will see.

Checking a merge. Platform cannot read git, so a member could record a merge that does not contain the PR. Readers check it: the web labels a merged PR's merge commit as containing the PR, as a squash or a rebase of it, or, in red, as not containing its commits. dg pr verify <repo> <n> fetches the base and the PR head and says the same; dg pr view says it when the current repository already has the commits.

Branch rules at merge. Branch rules are applied by Forge apps, not by Platform, so a maintainer could weaken the rules, merge, and restore them. A merged PR shows Branch rules at merge: open it to see the rules in force when the PR was merged (whether the base branch was protected, the required approvals, the required checks), whether the merge met each one, who merged it, and any bypass a maintainer recorded. A bypass recorded by someone who no longer has a membership record (removed, or given another role since) is still shown, but it doesn't count, because their role at the time can't be confirmed: the section says the bypass can't be confirmed. A protected branch merged by someone with no membership record now reads Unconfirmed rather than not met. When the policy required code owners' approval, the section says Code owners: not audited, and the merge is never shown as fully met. It also warns when the rules changed less than an hour before the merge (a repository's first policy or protection is not a change). dg pr verify prints the same. Reviews and check runs can be deleted, and a removed member's approval stops counting, so "did not meet the branch rules" means "not met by what is on Platform now", not proof of a bypass. Private repositories are not checked by dg pr verify yet.

Recording an interrupted merge. A browser merge moves the base branch, then records the merge. If it stops in between, the base already holds the PR but the PR stays open. Maintainers and writers who could merge it then see Record merge of <commit> on the PR: it records the merge of the base branch's current commit, after checking that the commit contains the PR or is a squash or rebase of it. If the base branch also changed some of the PR's files since the PR branched off, the page can't check those files automatically, so it offers no button and shows the dg pr merge --event-only command instead. It moves no code. The same rules apply as for dg pr merge --event-only: a writer can't record a merge into a protected branch, and a maintainer recording one past unmet branch rules records a bypass.

Close without merging: dg pr close / dg pr reopen. The author can close and reopen their own PR, as with issues.

Code owners

A CODEOWNERS file names who owns which paths, in GitHub's format or GitLab's. Forge reads the first of these that exists on the PR's base branch: .forge/CODEOWNERS, .github/CODEOWNERS, CODEOWNERS, docs/CODEOWNERS, .gitlab/CODEOWNERS. A file over 3 MB is ignored, as on GitHub.

# The last matching line wins.
*            @alice
/docs/       @bob ExampLeidentityExampLeidentityExampLeidentEx
*.rs         @carol.dash

Owners are DPNS names (@alice, @alice.dash) or identity ids (bare, or after @). Teams (@org/team), e-mail addresses and GitLab roles (@@maintainer) are shown but never asked: Forge has no teams, and identities have no e-mail. In a repository mirrored from GitHub, @login is looked up as a DPNS name, which may belong to someone else; only members are ever asked (below), so a stranger with that name is not.

Patterns follow GitHub: gitignore patterns, with the last matching line winning, except that docs/* owns only the files directly in docs/, and [ ] are plain characters (so app/[slug]/ means that folder). A line starting with ! or holding *** is skipped. GitLab sections work too ([Docs], ^[Optional], [Backend][2] @default-owner): in each section the last matching line counts, and the owners of all sections are combined. A section's approval count is read but not enforced.

When you open a PR, on the web or with dg pr create, the owners of the files it changes (a renamed file counts under its old and new path) are asked for review, as GitHub does:

  • only current maintainers and writers are asked, never people with Triage or Read access, non-members or you (GitHub likewise ignores a code owner without write access);
  • at most 15 reviewers;
  • each request is one more document, included in the cost shown before you sign. A member writes them as events; anyone else, as the PR's author, as authorEvents (both kind 13).

The web form lists them under Reviewers from code owners, each with a box to leave them out, and "Show n not asked" says why the rest are not asked. dg pr create prints the same list before its confirm prompt, and --json reports it under codeOwners. dg pr create --no-code-owners skips it. dg reads the base and the head from the clone you run it in, or fetches them into a scratch repository when the clone lacks them.

The Files tab marks each owned file with a shield (filled when you own it). Select it for the owners and the CODEOWNERS line that decided them.

Requiring a code owner's approval. Turn on Require approval from code owners in Settings → Branches → Branch policy, or run dg repo policy set <owner>/<repo> --require-code-owners true. Then every changed file that CODEOWNERS on the base branch assigns needs an approval from one of its owners before the PR can merge. The merge box names each file still waiting ("code owner approval: src/a.rs (@alice)"), the Branch rules card names the files still waiting, and dg pr merge refuses with E804 naming the same files, together with any other rule left unmet. dg pr view reads no git, so it says "code owner approval is checked at merge" and never calls such a policy met (--json: codeOwners is {"required": true, "checked": false}, and policyMet is null when nothing else is unmet). dg pr merge reads the base and the head from the clone you run it in when the clone has them (and, in a shallow clone, their merge base), else fetches them. It lists the changed files with git diff-tree, so a submodule's new commit counts even when .gitmodules or your git config says to ignore it. An owner's approval counts as for the required approvals: on the PR's current head, not dismissed, not the PR's author, and from someone whose role counts toward the policy (a maintainer, or a writer unless only maintainers' approvals count). A file nobody owns needs nothing. The rule fails closed: a CODEOWNERS file that cannot be read blocks the merge, and a file owned only by teams, e-mail addresses, unregistered names or non-members cannot be approved until CODEOWNERS is fixed. A maintainer can bypass it like the rest of the policy, and the bypass is recorded on the PR.


Releases

A release names a tag, a title, notes and optionally files. Only maintainers can publish one. Consensus enforces this, and dg checks it before uploading anything.

git tag v1.0.0 && git push dash://<owner>/<repo> v1.0.0
dg release create <owner>/<repo> --tag v1.0.0 --name "1.0.0" --notes "First stable release" \
  --asset ./dist/app-linux.tar.gz --asset ./dist/app-macos.tar.gz [--storage <profiles>]
dg release list   <owner>/<repo>
dg release download <owner>/<repo> v1.0.0 [--asset <name>] [-O/--output <dir | file>] [--force]
dg release unpublish <owner>/<repo> v1.0.0
dg release verify <owner>/<repo> v1.0.0     # has the tag or any asset changed since it was published?

The tag must exist in the repository first (push it, as above, or publish from the web, which can create it): a release cannot be deleted, only unpublished, so dg release create refuses a tag the repository does not have (E102) before anything is uploaded or signed. A new revision of an existing release (to yank it or change its notes) is allowed even if its tag was deleted since.

--asset uploads each file to your own storage and records its SHA-256, size and URLs in the release. The storage is the repository's dash.storage profiles, or --storage, and each copy is read back and verified. Platform stores packs, not arbitrary files, so publishing an asset needs an S3 or IPFS profile (bring your own storage).

dg release download fetches every asset of the release, or only --asset <name>, and saves each under its own name in the current directory or in the --output directory (-O, -o, and gh's -D/--dir work too). --output <file> names the file for a single asset. It never replaces a file that is already there unless you pass --force (--clobber works too); a symlink there is replaced, never written through. A file that already holds the asset's bytes is kept and counted as downloaded. An asset is saved under its own name only when that is a plain file name. A name that is a path, starts with a dot (.git, .npmrc) or a dash, holds :, <, >, ", |, ?, * or control characters, ends in a dot or space, is over 255 bytes, or is a Windows device name such as CON or nul.txt is skipped with a warning, and so is one that saves as the same file as an earlier asset (README.txt and readme.TXT). --asset <name> --output <file> downloads such an asset to a file you choose. dg release create and the web app refuse to publish a file with such a name, or one whose name differs only in case from another asset of the release. A directory given with --output or -D is made only once an asset is verified. It accepts only bytes that hash to the recorded SHA-256. It needs no identity, and no credentials when the storage has a public URL.

dg release list always names who published each release. Every publish, edit or unpublish is a fresh revision that needs a current maintainer to sign it, so a maintainer who is later removed can no longer touch the releases they published — not edit them, and not unpublish them either. Only a maintainer still on the repo can do that.

Yanking keeps the release, flagged; unpublishing takes it down. To flag a release as withdrawn while keeping it listed, publish it again with --yanked. The newest release for a tag wins, so a new revision keeps what you leave out: its assets, name and notes carry over (an --asset of the same file name replaces that one asset), and --yanked alone marks the release without dropping its files. Publishing again without --yanked un-yanks it.

dg release unpublish <owner>/<repo> <tag> goes further: it takes the tag off the release list entirely (it no longer shows in dg release list or counts toward the repo's release total), and only works while the tag currently has a live release — a tag that was never published, or is already unpublished, is refused. Publishing the same tag again afterwards starts a fresh release.

Releases are never deleted. Releases are listed by version (highest first), and the latest is the highest that is neither a pre-release nor yanked. Every revision a release ever had — including an unpublish — stays on chain, so a tag's publication history can always be reconstructed.

Branch and tag activity. The Activity link beside each branch and tag (on the Branches and Tags pages) lists everything that ever happened to it, newest first: who created it, each push with the commits before and after, deletions, and every change to its protection. A push that replaced the branch's history instead of adding to it carries a red force-pushed badge; a moved tag carries moved; two pushes that raced from the same starting point, leaving two tips until a later push settles them, carry diverged. Protection lifted and protection restored mark when a settings change stopped and resumed protecting it, so a force-push in between is easy to spot. From the CLI:

dg repo activity <owner>/<repo> main          # a branch
dg repo activity <owner>/<repo> v1.0 --tag    # a tag

Run it inside a clone to tell force-pushes from ordinary pushes with your local git; elsewhere a push whose commits it cannot compare reads "updated". The web's Activity page covers public repositories only for now; dg repo activity works for private ones too.

Provenance: is this still what was published? A tag can be moved after its release is published, by a maintainer, or by any writer when tags are not protected (new repositories protect them). Every move stays on chain, so each release's page has a Provenance card:

  • what the tag pointed at when the release was first published, and who pushed it;
  • every later move or deletion, with who did it and when;
  • whether the assets changed since the first publish (replaced, added or removed);
  • the tag's signature, for an annotated tag signed with a key on a member's profile (git tag -s, SSH or OpenPGP, checked as git verify-tag checks it);
  • whether tags are protected now.

The card turns red, and the release list marks the release changed since publish, when the tag points somewhere else, was deleted, or two pushes race on it, or when the assets changed. A tag that was moved and then moved back is shown in amber.

A public release also records the commit its tag pointed at when you published it (the web's release form and dg release create both write it). The card shows it under Release records and turns red if the tag's history says the tag pointed somewhere else at that moment. If the tag moved while you had the release form open, publishing stops and asks you to reload, so the record is always what you saw. A release whose tag named nothing when it was published (it was deleted then, or pushed only later) is checked against its record instead of the tag's history.

dg release verify <owner>/<repo> <tag> prints the same checks and exits with E504 when the release changed, so a script can stop before installing from the tag. Run it inside a clone that has fetched the tag (git fetch --tags) to check the tag's signature as well. A private repository's encrypted release may record its commit; it is checked against that when its tag named nothing at the moment of publish (the tag's own history wins otherwise).

Labels

Members define a repository's labels and apply them to issues:

dg label create <owner>/<repo> bug --color "#d73a4a" --description "Something is broken"
dg label list   <owner>/<repo> [--all]
dg label retire <owner>/<repo> bug
dg label delete <owner>/<repo> bug                 # deletes your definitions; retires it if others defined it too
dg issue label  <owner>/<repo> 12 add bug

On the web, Issues → Labels lists them and lets members create one, change its colour or description, and delete it (with the same retire-if-others-defined-it rule). A label keeps its name once defined: issues carry a label by its name, so a rename would leave them under the old one.

Milestones

Maintainers, writers and triage members define milestones and put issues in them:

dg milestone create <owner>/<repo> v1.0 --description "First release" --due 2026-12-01
dg milestone list   <owner>/<repo>
dg milestone close  <owner>/<repo> v1.0             # --reopen to reopen
dg issue milestone  <owner>/<repo> 12 v1.0

On the web, Issues → Milestones lists them open and closed, with due dates and progress, and lets members create, edit, close, reopen and delete them. Like a label, a milestone keeps its title once defined. A milestone definition can be deleted only by the member who wrote it, so one another member also defined can be closed but not deleted. Milestones in a private repository are encrypted, which this release does not do yet (web or dg).

Boards

Boards lay issues and pull requests out in columns, with fields, iterations and saved views (GitHub's projects). Triage members and up move and place items; maintainers and writers create boards:

dg board create <owner>/<repo> --name Roadmap
dg board view   <owner>/<repo> Roadmap
dg board move   <owner>/<repo> Roadmap #12 "In progress"
dg board set    <owner>/<repo> Roadmap #12 priority=P1 estimate=3

The Boards guide has every command.

Stars

dg repo star   <owner>/<repo>
dg repo unstar <owner>/<repo>

From the web app

On forge.dashhq.org, signed in with a limited key (Identity and keys):

You canNot yet (coming soon)
Browse code, commits, branches, tags and PR diffs; download a branch as a zipWeb editing of files
Create and delete branches on the Branches page (maintainers and writers)Deleting tags (use git push <remote> :refs/tags/<tag>)
File issues, comment, close and reopen; label them and put them in milestones, and manage the repo's labels and milestones (members)In a private repository: merging its PRs, committing to its branches, Update branch and applying suggestions (use dg)
Open a PR from a branch you have already pushed, in the repository or your forkMerging when both sides changed the same lines, or renamed or moved what the other changed (use dg pr merge)
Review a PR: approve, request changes or comment, with inline comments, suggestions and a pending review
Merge a PR (see below)
Create a repository (public or private), or fork one, with a cost preview; sync a fork with its parent (fast-forward)Syncing a fork whose branch has commits of its own (open the pull request it offers)
Add and remove members (owner)
Read and write members-only issues, comments and reviews, and send them to specific people (members, after one unlock per tab); make posts public (an author's own, a maintainer's anyone's); turn members-only content on (maintainers); read members-only branches and open, review and publish members-only pull requests; Settings → EnvironmentsStarting or pushing a members-only branch (use git push after dg branch new --members); publishing a branch for fewer people than all members, and sharing one outside the members (use dg); members-only releases
Publish a release with assets, creating its tag when it does not exist (maintainers)
Star repositories and follow people
See your repositories, issues, PRs and stars in Explore, and new activity in Notifications

Every write shows its price before you sign, and a toast shows what it actually cost. Settings → Spend keeps a local ledger of what this browser spent, by repository and month.

Releases from the browser. On a repository's Releases tab, a maintainer sees New release. It works like dg release create --asset: the maintainer role is checked before anything uploads, each file (up to 256 MiB) goes to your storage from Settings → Storage (never to Platform), is verified by reading it back, and is recorded with its SHA-256. Anyone who downloads an asset from the release page gets it only if it hashes to the recorded value. The tag can be an existing one, or a new one: the form then says the tag is new and asks for the Target branch (the default branch first), and publishing first writes the tag as a lightweight tag at that branch's tip (one ref update, about 0.0007 DASH, nothing uploaded), as GitHub's "Create new tag on publish" does. A tag that was pushed meanwhile at another commit stops the publish before anything uploads. To make an annotated or signed tag, push it with git first.

Branches from the browser. On the Branches page, maintainers and writers see New branch (a name and the branch to start from) and a delete button on each branch. Each is one ref update, about 0.0007 DASH, and nothing is uploaded: a new branch points at a commit the repository already stores. A branch matching a protected pattern is a maintainer's to create. The default branch and protected branches cannot be deleted from the web, as on GitHub: the button is disabled and says why (change the default, or a maintainer removes the protection in Settings → Branches, first). A branch is deleted only from the commit the page showed, so commits pushed since are never dropped unseen, and a branch deleted from the page can be Restored there until you leave it. Its commits stay stored either way: deleting a branch deletes no pack. People with Triage or Read access see a line saying their role cannot create or delete branches.

Merging. Writers and maintainers get a merge box on a public repository's PR. It checks the merge in the browser first, then offers what it can do: Merge (fast-forward), Create merge commit and merge, Squash and merge (authored by the PR's author, committed by you, as on GitHub) or Rebase and merge (the PR's commits replayed on the base exactly as git rebase replays them, each keeping its author, committed by you), limited to the methods the branch policy allows. A rebase is checked on its own, since it can stop where a merge would not: when a commit would not apply cleanly the box names it and its files (git's rebase stops there too, so pick another method or rebase the branch yourself), and when the PR holds a merge commit or a commit's change may already be on the base it sends you to dg pr merge --rebase. A merge commit's and a squash's message can be edited in the box before merging. The browser merges a file both sides changed line by line, exactly as git merge does: the same merged file, byte for byte. When the two sides changed the same lines, or lines next to each other, git would stop with a conflict, and so does the browser: it lists the files and sends you to dg pr merge. A merge needs a commit name and email; the merge box asks for them in place when they are not set yet. It builds the pack, uploads it to your storage from Settings → Storage (it asks before storing on Platform), moves the branch and posts the merge event: the same steps as dg pr merge. These cases go to dg pr merge: lines both sides changed (a conflict, which dg pr merge reports too until you resolve it on the PR's branch), shapes only git merges (a file one side renamed or deleted and the other changed, a directory one side moved or removed, a file added on both sides, binary files, files over 2 MiB, files under a .gitattributes, whose merge rules the browser does not read), a private repository, a merge too large to build in the browser, and a history that changes .gitmodules or .gitattributes or holds an object git would reject. On a protected base branch only a maintainer can merge, in the browser or with dg; a writer sees Protected branch — maintainers only. A base branch that two concurrent pushes left diverged is not moved: the browser's merge would contain only one of its tips, so the merge stops before moving the branch (the uploaded pack stays unused) and asks you to settle the branch with git first (Two pushes at once). Mark as merged (done elsewhere) only records a merge done some other way, and is offered once the head is on the base branch. While the branch policy is not met the merge is disabled; a maintainer can tick bypass rules, confirm the rules named, and merge: an event on the PR records the bypass, and nobody can delete it.

Notifications are computed in your browser from the chain: new issues and PRs in your repositories, state changes, comments and reviews on your threads, and optionally pushes and starred repositories. There is no email, no push notification and no sync across devices, because there is no server to send them.

Coming soon: editing files in the browser, and browser merges, branch commits, Update branch and applying suggestions for private repositories (use dg meanwhile; the web app says so where you create a private repository and in its merge box).


Known limitations

These are the supported core of members-only content: members-only discussion in a public repository, private-only repositories, messages to specific people and role groups, a maintainer's bundle and an author's Make public, environments, and members-only branches and pull requests published with dg publish.

The features below work, but they are Beta: expect rough edges, and try them on a throwaway repository before you rely on them. The web app marks each with a Beta badge.

Beta featureWhat to expect
Narrower branches (a branch only some members can read)Set up and change them with dg (dg branch audience); the web lists them and says who each is for. When a role changes, the person making the change re-sends the key only for branches whose key they hold; the others are updated by the next person to push them.
Branch sharing (dg branch share <branch> --to @name)dg only; there is nothing in the web app. The recipient gets a snapshot of the branch as it is now. What is pushed to it later stays unreadable to them until you share again.
Bots and runnersSettings → Bots and runners and dg bot. A bot reads members-only content only when someone asks it to, and it never receives the members key. The guide: Bots and agents.
Access notices and read lettersWhat a bot may do is a notice everyone can read. A read letter opens one issue, pull request or branch, as it was when someone asked, for that one job.
Agents (asking a bot to work on an issue or pull request)The web app can ask on an issue or pull request. Sharing code with the bot needs a clone: use dg bot ask.
Bot push accessA maintainer gives a bot push access to chosen branches until a date. Renew, suspend or remove it in Settings → Bots and runners or with dg bot.
Make this repo public (whole repository, Code only or Everything)Cost, steps and what stays private are shown before you confirm. A run that stops is finished with Finish or --resume. Releases made while private stay hidden (below).
Publication dates (an embargo on a fix)Someone must run the release bot (dg embargo run) for a date to take effect; Forge sends no reminder as a date approaches.

Limits that apply to the supported core as well:

  • Releases made while a repository was private stay hidden after it is made public, with Code only or Everything. A public reader sees them counted as hidden. Releases published after the conversion are public.
  • A pull request into a members-only branch can be opened and reviewed, but Forge can't mark it merged yet. Merge it with git (git merge, git push). A pull request from a members-only branch into a public branch is published with dg publish --pr <n> instead.
  • In a private repository the browser cannot merge, commit to a branch, update a branch or apply a suggestion yet. Use dg for those. Reading, reviewing, issues and pull requests all work in the browser.

Webhooks and CI

A maintainer can have on-chain activity delivered as GitHub-shaped webhooks (push, issues, pull_request, issue_comment, pull_request_review, release, check_run), signed with X-Hub-Signature-256. Forge runs no webhook service: deliveries come from a relay that you, or someone you choose, runs.

dg webhook add <owner>/<repo> --url https://ci.example/hook \
  --relay <relay identity id> --events push,pull_request --name ci
dg webhook list   <owner>/<repo>
dg webhook remove <owner>/<repo> ci      # by the name it was added with, or its hook id

The URL and event list are public on chain. The URL must be https:// to a DNS hostname — stricter than a check run's URL: no IP literal, no localhost, no userinfo. dg webhook add refuses one that doesn't parse that way before it signs anything. The HMAC secret is encrypted to the relay identity's encryption key, so only that relay can read it; without --secret-env <VAR>, dg generates one and shows it once, in a terminal only. Scripted, piped, in CI or with --json, pass --secret-file <new file> (0600; only the path is printed) or --secret-env. Without either, dg refuses before it writes anything. The relay (forge-relay run, or its Docker image) needs only that encryption key, never signs and never spends. A delivery that fails is kept in a durable retry queue on the relay's disk and retried for up to 48 hours, across restarts (given a writable state dir; without one the relay warns and keeps the queue in memory); forge-relay deliveries lists the queue. Every delivery carries a stable X-GitHub-Delivery id, so receivers can drop duplicates.

Check results go the other way: CI reports them with dg ci report under a runner key that can sign nothing else. See CI and check runs.

A relay is trusted for availability only: a receiver that must not be fooled checks what a webhook says against Platform. crates/forge-relay/README.md covers running one, the delivery guarantees, and a CI consumer that verifies the pushed ref.

This page is docs/guides/collaborating.md from the Dash Forge repository, as of this build. View or edit it on GitHub