Git Product home page Git Product logo

drupal-issue-closer's Introduction

Drupal.org issue closer

While drupal.org does have a REST API, it is read-only.

So when you have 500+ issues (a lot of them being support issues with no reply) it gets really cluttered.

This is a bot that uses your own credentials to close tickets.

Drupal.org does not allow automated bots or user accounts that do not represent a single person.

This is in line with their ToS as it is using your account and credentials. I'm not responsible if you get banned though.

You probably shouldn't loop through all drupal.org issues and close them...

Installation

  1. Checkout this repository
  2. Run composer install

How to use

  1. Take a look at features/drupal.feature.example
  2. Copy that to features/mymodule.feature
  3. Edit it so it looks like this:
Feature: Update old issues on drupal.org

Background:
When I am on "https://drupal.org/user"
And I fill in "Username or email" with "Dries"
And I fill in "Password" with "loveGor"
And I press "Log in"

Scenario Outline: I need to update old issues on drupal.org but they don't have any sort of bulk operations
Then I close all "mymodule" issues with version "<version>" and message:
"""
This issue is being closed because it was filed against a version that is no longer supported.

If the issue still persists in the latest version of my module, please open a new issue.
"""
Examples:
| version |
| 7.x-1.0-alpha1 |
| 7.x-1.0-alpha2 |
| 7.x-1.0-alpha3 |
  1. Run bin/behat features/mymodule.feature

All issues with that version will be set to "Closed (outdated)" and a comment added.

You can put multiple scenarios in the same file, for multiple projects if you'd like.

ToDo

  • Closing tickets by date (e.g. 1 year is now outdated)
  • Closing/transitioning tickets by other critieria (e.g. old support tickets moving to "postponed")

Wishlist

drupal.org needs to add some VBOs

Why Behat? You could just use Mink for this

I know. Gherkin was easier than building a configuration syntax.

drupal-issue-closer's People

Contributors

djdevin avatar

Stargazers

 avatar

Watchers

 avatar

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.