Support for Gitea organization hooks, based on GitHub hooks code.
Please note: depends on a GitHub branch of `kredits-contracts`, for the Gitea account info to be serialized and deserialized.
closes #24
bumi
(Migrated from github.com)
reviewed 2019-04-24 12:42:29 +00:00
there are contract methods for that: https://github.com/67P/kredits-contracts/blob/master/lib/contracts/contributor.js#L20-L38
should be something like: `Contributor.findByAccount({gitea_username: username, site: 'gitea something})`
This is copied from the GitHub integration code, so I won't refactor things for this functionality now. Can do that for all integrations after we're not losing Gitea kredits anymore.
This is copied from the GitHub integration code, so I won't refactor things for this functionality now. Can do that for all integrations after we're not losing Gitea kredits anymore.
raucao
(Migrated from github.com)
reviewed 2019-04-24 12:50:27 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Support for Gitea organization hooks, based on GitHub hooks code.
Please note: depends on a GitHub branch of
kredits-contracts, for the Gitea account info to be serialized and deserialized.closes #24
whoop whoop, \o/
@@ -0,0 +26,4 @@return Contributor.all().then(contributors => {const contrib = contributors.find(c => {return c.gitea_username === username;});there are contract methods for that: https://github.com/67P/kredits-contracts/blob/master/lib/contracts/contributor.js#L20-L38
should be something like:
Contributor.findByAccount({gitea_username: username, site: 'gitea something})let's first release a new kredits-contract version
@@ -0,0 +26,4 @@return Contributor.all().then(contributors => {const contrib = contributors.find(c => {return c.gitea_username === username;});This is copied from the GitHub integration code, so I won't refactor things for this functionality now. Can do that for all integrations after we're not losing Gitea kredits anymore.
PR is open over there: https://github.com/67P/kredits-contracts/pull/113
@@ -0,0 +26,4 @@return Contributor.all().then(contributors => {const contrib = contributors.find(c => {return c.gitea_username === username;});ok, maybe we should make an issue to not forget it. also that we don't use
gitea_usernamehere but theaccoutsarray/hash somehow.utACK
once a new kredits-contract version is published and we use that npm version here, then let's merge it and deploy it