Add Gitea integration #31
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/24-gitea"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_username
here but theaccouts
array/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