Coder Social home page Coder Social logo

67p / hubot-kredits Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 915 KB

Kosmos Kredits chat/service integrations

Home Page: https://wiki.kosmos.org/Kredits

License: MIT License

JavaScript 100.00%
hubot hubot-scripts kosmos kredits rootstock rsk web3

hubot-kredits's People

Contributors

bumi avatar dependabot[bot] avatar galfert avatar gregkare avatar raucao avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

cryptarc

hubot-kredits's Issues

Different categories based on labels

For contributions from Gitea and Github, we should parse the labels some more and change the category from dev to something more appropriate for the labels we think make sense. To start with, I'd propose:

  • docs and documentation -> docs category
  • ops -> ops category

Not sure what makes sense for design, but I'm sure it would be useful to have some labels for that be turned into the category as well.

Add date/time to contributions

Just merged the new schemas and wrapper support for validating them. Which means that contributions now expect a date, and optionally allow a time.

MVP

Idea: catch incoming webhooks and automatically create Kredits issuance proposals based on the the content.

Example case: Incoming hook for a merged GitHub PR -> create proposal to issue kredits for PR author -> post proposal link to channel.

First source to implement would be handling GitHub org-wide hook.

MediaWiki support

Some kind of incoming notification from MediaWiki should be supported for automatically proposing kredits based on edits details.

Set up test suite

The codebase is starting to get a bit complex and large. We should set up a test suite and CI so we can't shoot ourselves in the foot to hard in the future.

GitLab support

Basically port what we have for GitHub to work with GitLab hooks. Hopefully they have org hooks, if not we'll just have to use repo hooks.

Add support for Gitea org hooks

Turns out Gitea is not just pretty great overall, but also perfect for this use case. It supports both organization-wide webhooks, as well as custom label sets that one can select when creating a new repo. So we created a Kosmos label set, with both our preferred normal labels, as well as the kredits labels. See https://gitea.kosmos.org/kosmos/gitea.kosmos.org/labels for example.

The org hook for Kosmos can be created here: https://gitea.kosmos.org/org/kosmos/settings/hooks

Sign up via Gitea

Ideally be able to connect both Gitea and GitHub in the signup UI, before profile is created.

Adjust code to contract refactoring changes

  1. No manually created contributor IDs (currently UUID) anymore. ID/UID has been removed, contributor.id can be used from the contract data instead.
  2. Name has been removed from contributor object in contract, all profile data lives in IPFS now.
  3. ipfsHash has been renamed to profileHash
  4. Finding a contributor has to be done by ID instead of address now
  5. Proposal URL has been removed in favor of URL in IPFS contribution doc

Fix creating proposals from IRC

Creating proposals from IRC is currently borken as it used a createProposal method that is now in the github integration script: https://github.com/67P/hubot-kredits/blob/master/index.js#L84

maybe we can even remove that feature right now (even though I think I like it) and plan a better one. The main issue right now is that the github username has to be used in the chat message and not the IRC username.

What do you think?

[zoom] Configure meeting ID(s) to count

Currently, it creates contributions for any meetings in the entire Zoom account that the JWT app is registered for, resulting in e.g. 5apps meetings being counted as Kosmos ones.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.