Skip to content

Promote test -> main#105

Closed
anderdc wants to merge 16 commits into
mainfrom
test
Closed

Promote test -> main#105
anderdc wants to merge 16 commits into
mainfrom
test

Conversation

@anderdc
Copy link
Copy Markdown
Collaborator

@anderdc anderdc commented May 16, 2026

Promotes test to main.

Net change

The only content difference between main and test is the repo maintainers endpoint (#104):

  • New GET /api/v1/repos/:owner/:repo/maintainers (ReposController / ReposService).
  • Returns users whose latest known association for the repo is OWNER, MEMBER, or COLLABORATOR, read from the existing contributor_repo_roles view.
 packages/das/src/api/api.module.ts             |  4 +++
 packages/das/src/api/repos/repos.controller.ts | 27 +++++++++++++++++
 packages/das/src/api/repos/repos.service.ts    | 41 ++++++++++++++++++++++++++

Schema / runbook

No schema changes. The endpoint reads the existing contributor_repo_roles view — no new table, no migration, no runbook SQL required for this deploy.

anderdc and others added 16 commits April 28, 2026 15:25
When `since` is provided, behavior is unchanged: OPEN created on/after,
CLOSED closed on/after — the scoring window.

When `since` is omitted, the response now returns all currently-OPEN
issues with no time bound and no CLOSED history. Callers asking for
"current open-issue load" no longer need a synthetic epoch-since
workaround that pulls a full all-time payload.

Lets the validator's open-issue spam-multiplier count old still-open
issues that fall outside the scoring lookback window — the gap called
out in entrius/gittensor#929 / PR #930.

Co-authored-by: anderdc <me@alexanderdc.com>
* Fix stale PR file fetch completion

* Fix stale PR file write race

* Run tests before DAS build

* Drop contributor test artifacts

* Slim stale PR file completion fix

---------

Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com>
* Fix label actor role evidence

* Run tests before DAS build

* Drop contributor DB view tests

---------

Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com>
* Fetch base content for deleted PR files

* Tighten deleted file content regression

* Strengthen deleted file content coverage

* Drop contributor fetcher test

---------

Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com>
Branch protection on main requires a 'pr-source-check' status, but no
workflow was publishing it — leaving PRs into main perma-blocked.
Mirror the workflow used in entrius/gittensor and entrius/gittensor-ui:
enforce that PRs into main originate from 'test'.
* Make label_events writes idempotent on backfill (#25)

* Move unique index into 07_label_events.sql, drop migration files
#93)

* feat(dashboard): add slim issues endpoint to replace per-miner fan-out

New DashboardModule exposing GET /api/v1/dashboard/issues?since= for the
gittensor-ui dashboard's trend chart and Issues Solved KPI. Returns slim
issue rows (one bulk call) so the UI no longer fans out N parallel
/miners/<id>/issues requests on every dashboard mount.

The mirror is roster-blind by design: every issue is returned regardless
of author. The UI blends with the gittensor miner roster client-side to
filter to subnet authors. Validator-facing /miners/<id>/issues is
unchanged.

* style(api.module): prettier formatting

---------

Co-authored-by: anderdc <me@alexanderdc.com>
# Conflicts:
#	packages/das/src/webhook/github-fetcher.service.ts
#	packages/das/src/webhook/handlers/issue.handler.ts
#	packages/das/src/webhook/handlers/label.handler.ts
Add GET /api/v1/repos/:owner/:repo/maintainers, returning users whose
latest known association for the repo is OWNER, MEMBER, or COLLABORATOR.
Reads the existing contributor_repo_roles view — no new table or GitHub
API permission. An unknown repo returns an empty maintainers list.

Consumed by the gittensor validator to route the per-repo maintainer_cut
emission carve-out.

Co-authored-by: anderdc <me@alexanderdc.com>
@anderdc
Copy link
Copy Markdown
Collaborator Author

anderdc commented May 16, 2026

Closing — das-github-mirror is adopting gittensor's promotion model: main advances by fast-forward via a Release workflow, not by merging a test→main PR. A PR merge (squash/rebase/merge-commit) rewrites or adds commits, which is exactly why main and test have diverged. Replaced by a release.yml workflow plus a one-time fast-forward realignment.

@anderdc anderdc closed this May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants