Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Repository files navigation

delete-branch

Deprecated Automatic deletion of branches was released

Automatically delete branch when PR is merged

delete-branch

Install

Go to the App page and select the repository you want to install

Deployment

  1. Set environment variable for terraformuser
    • export TF_VAR_aws_access_key=""
    • export TF_VAR_aws_secret_key=""
  2. terraform init
  3. terraform plan to confirm that it will be created aws_lambda_function.delete_branch_bot
  4. terraform apply
  5. Go to API-Gateway GUI
    • Create New API and select Regional Endpoint Type
    • Actions -> Create Method -> POST
    • Select Lambda Function Integration type and set delete_branch_bot to Lambda Function form
    • Actions -> Deploy API -> Set prod stage name
    • You can see the Invoke URL
  6. Set Invoke URL to Webhook URL in GitHubApp setting

Articles

in Japanese

in English

About

Automatically delete branch when PR is merged

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages