Deprecated Automatic deletion of branches was released
Automatically delete branch when PR is merged
Go to the App page and select the repository you want to install
- Set environment variable for terraformuser
- export TF_VAR_aws_access_key=""
- export TF_VAR_aws_secret_key=""
- terraform init
- terraform plan to confirm that it will be created
aws_lambda_function.delete_branch_bot - terraform apply
- Go to API-Gateway GUI
- Create New API and select
RegionalEndpoint Type - Actions -> Create Method -> POST
- Select
Lambda FunctionIntegration type and setdelete_branch_botto Lambda Function form - Actions -> Deploy API -> Set
prodstage name - You can see the Invoke URL
- Create New API and select
- Set Invoke URL to
Webhook URLin GitHubApp setting
