+
Skip to content

Conversation

tdruez
Copy link
Contributor

@tdruez tdruez commented Aug 11, 2025

Issue: #348

Notes

SourceHut does not provide a REST API like the other integration platforms.
Instead, it uses a GraphQL API for all interactions.
Because of this, the integration works a bit differently behind the scenes,
but this difference should be transparent to both admins and end users relying on it.

See https://docs.sourcehut.org/todo.sr.ht/ for SourceHut API Documentation.

Documentation

https://dejacode.readthedocs.io/en/latest/integrations-sourcehut.html

Changes

  • Add a sourcehut_token field on the Dataspace configuration model.
  • The integration code exists as the SourceHutIntegration class.

Quickstart

Prerequisites

  • A SourceHut tracker that you want to integrate with DejaCode.
  • A SourceHut user account with sufficient permissions to create and manage tickets in the target tracker.

DejaCode configuration

  1. Set your sourcehut_token on your Dataspace configuration.
  2. Create a new RequestTemplate in your Dataspace and use your SourceHut tracker URL as the Issue Tracker ID, e.g.: https://todo.sr.ht/~USERNAME/PROJECT_NAME
  3. From now on, any new DejaCode Request using this template will be pushed to the SourceHut-provided tracker. Edits such as field updates, comments, and closing the Request are also propagated to the SourceHut ticket.

Refer to https://dejacode.readthedocs.io/en/latest/integrations-sourcehut.html for detailed instructions.

tdruez added 5 commits August 11, 2025 16:13
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
@DennisClark
Copy link
Member

@DennisClark
Copy link
Member

@tdruez Testing completed successfully following the instructions in the documentation. The whole thing was very simple to setup, no problems found. See
https://todo.sr.ht/~dmclark/aboutcode-dejacode-integration?search=status:closed
and
https://todo.sr.ht/~dmclark/aboutcode-dejacode-integration/1

Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez tdruez merged commit eed0701 into main Aug 12, 2025
4 checks passed
@tdruez tdruez deleted the 348-sourcehut-integration branch August 12, 2025 06:06
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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载