Compare commits
1 Commits
v3.2.1
...
chore/remo
| Author | SHA1 | Date | |
|---|---|---|---|
| e9987b4d39 |
19
README.md
19
README.md
@@ -46,25 +46,6 @@ Point a GitHub organization webhook to the following URL:
|
|||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `KREDITS_GITHUB_REPO_BLACKLIST` | Repos which you do not want to issue kredits for. Format: `orgname/reponame`, e.g. `67P/test-one-two` |
|
| `KREDITS_GITHUB_REPO_BLACKLIST` | Repos which you do not want to issue kredits for. Format: `orgname/reponame`, e.g. `67P/test-one-two` |
|
||||||
|
|
||||||
### Gitea
|
|
||||||
|
|
||||||
The Gitea integration will watch for closed issues and merged pull requests,
|
|
||||||
which carry a kredits label: `kredits-1`, `kredits-2`, `kredits-3` for small,
|
|
||||||
medium and large contributions. If there are multiple people assigned, it will
|
|
||||||
issue contribution tokens for all of them.
|
|
||||||
|
|
||||||
#### Setup
|
|
||||||
|
|
||||||
Point a Gitea organization webhook to the following URL:
|
|
||||||
|
|
||||||
https://your-hubot.example.com/incoming/kredits/gitea/{webhook_token}
|
|
||||||
|
|
||||||
#### Config
|
|
||||||
|
|
||||||
| Key | Description |
|
|
||||||
| --- | --- |
|
|
||||||
| `KREDITS_GITEA_REPO_BLACKLIST` | Repos which you do not want to issue kredits for. Format: `orgname/reponame`, e.g. `kosmos/test-one-two` |
|
|
||||||
|
|
||||||
### MediaWiki
|
### MediaWiki
|
||||||
|
|
||||||
The MediaWiki integration will periodically check for wiki page creations and
|
The MediaWiki integration will periodically check for wiki page creations and
|
||||||
|
|||||||
1
index.js
1
index.js
@@ -53,7 +53,6 @@ module.exports = async function(robot) {
|
|||||||
kredits = await new Kredits(signer.provider, signer, {
|
kredits = await new Kredits(signer.provider, signer, {
|
||||||
// TODO support local devchain custom address
|
// TODO support local devchain custom address
|
||||||
apm: 'open.aragonpm.eth',
|
apm: 'open.aragonpm.eth',
|
||||||
// addresses: { Kernel: '0x93aa4531329e4bf3efcd1ec0b74adb6f66d9d10e' }
|
|
||||||
ipfsConfig
|
ipfsConfig
|
||||||
}).init();
|
}).init();
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
async function handleGiteaIssueClosed(data) {
|
async function handleGiteaIssueClosed(data) {
|
||||||
const issue = data.issue;
|
const issue = data.issue;
|
||||||
const repoName = data.repository.full_name;
|
const repoName = data.repository.full_name;
|
||||||
const web_url = `${data.repository.html_url}/issues/${issue.number}`;
|
const web_url = `${data.repository.html_url}/issues/${issue.id}`;
|
||||||
const description = `${repoName}: ${issue.title}`;
|
const description = `${repoName}: ${issue.title}`;
|
||||||
const amount = amountFromLabels(issue.labels);
|
const amount = amountFromLabels(issue.labels);
|
||||||
const assignees = issue.assignees ? issue.assignees.map(a => a.login) : [];
|
const assignees = issue.assignees ? issue.assignees.map(a => a.login) : [];
|
||||||
|
|||||||
7
package-lock.json
generated
7
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "3.2.1",
|
"version": "3.1.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1175,9 +1175,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"kredits-contracts": {
|
"kredits-contracts": {
|
||||||
"version": "5.3.0",
|
"version": "github:67P/kredits-contracts#09b78e1e8f0e9a458324e95dcdf1e7eb1d662eee",
|
||||||
"resolved": "https://registry.npmjs.org/kredits-contracts/-/kredits-contracts-5.3.0.tgz",
|
"from": "github:67P/kredits-contracts#feature/gitea_site",
|
||||||
"integrity": "sha512-Wz4zuA6yo0Q4WbVEO61fvFin+6VTNjkBqHPhHCqq6dIoGdFSjUZ3BCKan1ei0axIAda7ZDP+eebe2vCr+eqcHg==",
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"ethers": "^4.0.27",
|
"ethers": "^4.0.27",
|
||||||
"ipfs-http-client": "^30.1.1",
|
"ipfs-http-client": "^30.1.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "3.2.1",
|
"version": "3.1.2",
|
||||||
"description": "Kosmos Kredits functionality for chat bots",
|
"description": "Kosmos Kredits functionality for chat bots",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"ethers": "^4.0.27",
|
"ethers": "^4.0.27",
|
||||||
"group-array": "^0.3.3",
|
"group-array": "^0.3.3",
|
||||||
"kosmos-schemas": "^1.1.2",
|
"kosmos-schemas": "^1.1.2",
|
||||||
"kredits-contracts": "^5.3.0",
|
"kredits-contracts": "github:67P/kredits-contracts#feature/gitea_site",
|
||||||
"node-cron": "^2.0.3",
|
"node-cron": "^2.0.3",
|
||||||
"node-fetch": "^2.3.0",
|
"node-fetch": "^2.3.0",
|
||||||
"prompt": "^1.0.0"
|
"prompt": "^1.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user