Git Product home page Git Product logo

uk-gov-mirror / ukhomeoffice.hubot-merge-spam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ukhomeoffice/hubot-merge-spam

0.0 0.0 0.0 20 KB

Periodically announce to the channel what merge requests are available. Also print them on demand. Supports both GitLab's Merge Requests and GitHubs Pull Requests.

Home Page: https://www.npmjs.com/package/hubot-merge-spam

License: GNU General Public License v2.0

JavaScript 1.85% CoffeeScript 98.15%

ukhomeoffice.hubot-merge-spam's Introduction

Hubot Merge Spam

Build Status npm version

Periodically announce to the channel what merge requests are available. Also print them on demand. Supports both GitLab's Merge Requests and GitHubs Pull Requests.

Usage

This is a plugin to Hubot

5:34:08 PM <•purplebooth> dec4rd: list mr
5:34:09 PM <•dec4rd> @purplebooth: Listing Merge Requests
5:34:09 PM <•dec4rd>  
5:34:09 PM <•dec4rd> ⭐ API-Factory / data-assurance-dataimport#3 Added standard format
5:34:09 PM <•dec4rd> 🔗 https://gitlab.digital.homeoffice.gov.uk/API-Factory/data-assurance-dataimport/merge_requests/3 
5:34:09 PM <•dec4rd> 👤 purplebooth
5:34:09 PM <•dec4rd>  
5:34:09 PM <•dec4rd> ⭐ API-Factory / data-assurance-api#9 This should cause a test to fail
5:34:09 PM <•dec4rd> 🔗 https://gitlab.digital.homeoffice.gov.uk/API-Factory/data-assurance-api/merge_requests/9 
5:34:09 PM <•dec4rd> 👤 mikeyhu
5:34:09 PM <•dec4rd>  
5:34:09 PM <•dec4rd> ⭐ API-Factory / data-assurance-api#7 Standardise on coding style
5:34:09 PM <•dec4rd> 🔗 https://gitlab.digital.homeoffice.gov.uk/API-Factory/data-assurance-api/merge_requests/7 
5:34:09 PM <•dec4rd> 👤 purplebooth
5:34:09 PM <•dec4rd>  
9:23:33 AM <•purplebooth> dec4rd: list pr
9:23:35 AM <•dec4rd> @purplebooth: Listing Pull Requests
9:23:35 AM <•dec4rd>  
9:23:35 AM <•dec4rd> ⭐ UKHomeOffice/passports-form-wizard#31 Support for multiple translators
9:23:35 AM <•dec4rd> 🔗 https://github.com/UKHomeOffice/passports-form-wizard/pull/31 
9:23:35 AM <•dec4rd> 👤 easternbloc 🔍 gavboulton
9:23:35 AM <•dec4rd>  
9:23:35 AM <•dec4rd> ⭐ UKHomeOffice/vaultconf#13 Added support for configuring secrets in vault
9:23:35 AM <•dec4rd> 🔗 https://github.com/UKHomeOffice/vaultconf/pull/13 
9:23:35 AM <•dec4rd> 👤 timgent
9:23:35 AM <•dec4rd>  
9:23:35 AM <•dec4rd> ⭐ UKHomeOffice/RTM#4 Add a local dev environment based on docker-compose
9:23:35 AM <•dec4rd> 🔗 https://github.com/UKHomeOffice/RTM/pull/4 
9:23:35 AM <•dec4rd> 👤 daniel-ac-martin
9:23:35 AM <•dec4rd>  
9:23:35 AM <•dec4rd> ⭐ UKHomeOffice/removals_dashboard#11 BM-264 unit tests
9:23:35 AM <•dec4rd> 🔗 https://github.com/UKHomeOffice/removals_dashboard/pull/11 
9:23:35 AM <•dec4rd> 👤 fulljames 🔍 chrisns
9:23:35 AM <•dec4rd>  

Installing

To add this plugin to hubot run

npm i --save hubot-merge-spam

And add hubot-merge-spam to external-scripts.json in your hubot

Environment Variables

  • HUBOT_MERGE_SPAM_ANNOUNCE_ROOMS Rooms to periodically announce the state of the PRs and MRs into. Make this empty to not announce
  • HUBOT_MERGE_SPAM_CRON Standard CRON for when it should announce. Defaults to every 3 hours.
  • HUBOT_MERGE_SPAM_GITHUB_ORGANISATION GitHub Organisation to get the Pull Requests from. If this is blank it'll disable the GitHub functionality.
  • HUBOT_MERGE_SPAM_GITHUB_AUTH_USERNAME GitHub Username. If this or the auth token are missing it'll try to do the requests without authentication, but it'll probably hit rate limiting.
  • HUBOT_MERGE_SPAM_GITHUB_AUTH_PASSWORD GitHub password (generate one).
  • HUBOT_MERGE_SPAM_GITLAB_HOST GitLab URL. If token or this are missing it'll disable the GitLab aspects.
  • HUBOT_MERGE_SPAM_GITLAB_API_TOKEN GitLab API Token

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the GPL v2 License - see the LICENSE.md file for details

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.