Event Timeline
Comment Actions
Here's a proper call for diffusion.uri.edit:
curl https://forge.softwareheritage.org/api/diffusion.uri.edit \ -d api.token=api-token \ -d transactions[0][type]=repository \ -d transactions[0][value]=repositoryPHID \ -d transactions[1][type]=uri \ -d transactions[1][value]=git%40github.com%3Asoftwareheritage/repo.git \ -d transactions[2][type]=io \ -d transactions[2][value]=mirror \ -d transactions[3][type]=display \ -d transactions[3][value]=never \ -d transactions[4][type]=credential \ -d transactions[4][value]=PHID-CDTL-keoenkcfmbq2nn3dgor6
- The credential value has been pulled from a call to https://forge.softwareheritage.org/conduit/method/passphrase.query/
- The repository PHID needs to be pulled from a call to conduit repository.search
- The GitHub URI needs to correspond to the one sent to the GitHub API
Comment Actions
Listing all publically accessible repositories:
curl https://forge.softwareheritage.org/api/diffusion.repository.search \ -d api.token=api-token \ -d queryKey=all | jq '.result.data | map(select(.fields.policy.view == "public"))'
Comment Actions
Listing all repos tagged with the Sync to GitHub tag:
curl https://forge.softwareheritage.org/api/diffusion.repository.search \ -d api.token=api-token \ -d constraints[projects][0]=PHID-PROJ-ximqdentnggqkdbc2ycg