Skip to content

jfcolomer/config_pr

Repository files navigation

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

The Config Pull Request module allows Admin users to request a pull request of config changes on live environments. When last minute/urgent changes need to be done on the Admin UI, the user can issue a Pull request that can be reviewed and merged by the dev team.

Pros:

REQUIREMENTS

This module requires no modules outside of Drupal core.

Libraries:

  • knplabs/github-api:^2.10
  • php-http/guzzle6-adapter:^1.1

INSTALLATION

Use composer to make sure you will have all dependencies. composer require drupal/config_pr:^1.0

CONFIGURATION

  1. Navigate to Administration > Extend and enable the module.
  2. Navigate to the /user page and add the Authentication token. To learn how to create authentication tokens, visit https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
  3. Navigate to the module settings page, /admin/config/development/configuration/pull_request/settings and add the repo user name and repo name. Normally these are found on the repo Url. i.e. https://github.com/marcelovani/captcha_keypad the username = marcelovani and repo name = captcha_keypad

How it works:

  1. After the Admin is done with the changes, they will visit the Configuration Management page, select the Pull Request tab, select the configs that they want to keep in the Pull Request. They will confirm the repo url and give it a title and description, then select the submit button.
  2. The module will check user authentication on the repo and create the pull request. It can also notify devs about the Pull Request.
  3. The devs will review, comment, accept or reject the Pull Request.

Creating pull requests:

  1. Visit the Config Manager page /admin/config/development/configuration and select the 'Pull Request' tab.
  2. Select the configs you want to add to the pull request.
  3. Fill in the pull request details and select the button.
  4. After the form is submitted, you will see a message with the link to the pull request.
  5. At the bottom of the page the user will see a list of open pull requests for the relevant repo.

MAINTAINERS

Supporting organization:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages