Skip to content

Commit 5bf58fd

Browse files
authored
Migrate to ChatOps (#21)
1 parent 57ed9d6 commit 5bf58fd

File tree

5 files changed

+69
-152
lines changed

5 files changed

+69
-152
lines changed

.github/workflows/chatops.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: chatops
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
jobs:
7+
default:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: "Handle common commands"
12+
uses: cloudposse/actions/github/slash-command-dispatch@0.15.0
13+
with:
14+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
15+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
16+
repository: cloudposse/actions
17+
commands: rebuild-readme, terraform-fmt
18+
permission: none
19+
issue-type: pull-request
20+
21+
test:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: "Checkout commit"
25+
uses: actions/checkout@v2
26+
- name: "Run tests"
27+
uses: cloudposse/actions/github/slash-command-dispatch@0.15.0
28+
with:
29+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
30+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
31+
repository: cloudposse/actions
32+
commands: test
33+
permission: none
34+
issue-type: pull-request
35+
reactions: false
36+
37+

.github/workflows/slash-command-dispatch.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
# terraform-aws-lambda-elasticsearch-cleanup
4646

47-
[![Codefresh Build Status](https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-aws-lambda-elasticsearch-cleanup?type=cf-1)](https://g.codefresh.io/public/accounts/cloudposse/pipelines/5eaa33ff1dc82bb99faa3905) [![GitHub Action Build Status](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/workflows/Lambda/badge.svg?branch=master)](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/actions?query=workflow%3ALambda) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg)](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
47+
[![GitHub Action Build Status](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/workflows/Lambda/badge.svg?branch=master)](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/actions?query=workflow%3ALambda) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg)](https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
4848

4949

5050
Terraform module to provision a scheduled Lambda function which will

README.yaml

Lines changed: 31 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,34 @@
1-
---
2-
#
3-
# This is the canonical configuration for the `README.md`
4-
# Run `make readme` to rebuild the `README.md`
5-
#
6-
7-
# Name of this project
81
name: terraform-aws-lambda-elasticsearch-cleanup
9-
10-
# Logo for this project
11-
#logo: docs/logo.png
12-
13-
# License of this project
14-
license: "APACHE2"
15-
16-
# Canonical GitHub repo
2+
license: APACHE2
173
github_repo: cloudposse/terraform-aws-lambda-elasticsearch-cleanup
18-
19-
# Badges to display
204
badges:
21-
- name: "Codefresh Build Status"
22-
image: "https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-aws-lambda-elasticsearch-cleanup?type=cf-1"
23-
url: "https://g.codefresh.io/public/accounts/cloudposse/pipelines/5eaa33ff1dc82bb99faa3905"
24-
- name: "GitHub Action Build Status"
25-
image: "https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/workflows/Lambda/badge.svg?branch=master"
26-
url: "https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/actions?query=workflow%3ALambda"
27-
- name: "Latest Release"
28-
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg"
29-
url: "https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/releases/latest"
30-
- name: "Slack Community"
31-
image: "https://slack.cloudposse.com/badge.svg"
32-
url: "https://slack.cloudposse.com"
33-
5+
- name: GitHub Action Build Status
6+
image: https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/workflows/Lambda/badge.svg?branch=master
7+
url: https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/actions?query=workflow%3ALambda
8+
- name: Latest Release
9+
image: https://img.shields.io/github/release/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg
10+
url: https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/releases/latest
11+
- name: Slack Community
12+
image: https://slack.cloudposse.com/badge.svg
13+
url: https://slack.cloudposse.com
3414
related:
35-
- name: "terraform-aws-vpc"
36-
description: "Terraform Module that defines a VPC with public/private subnets across multiple AZs with Internet Gateways"
37-
url: "https://github.com/cloudposse/terraform-aws-vpc"
38-
- name: "terraform-aws-dynamic-subnets"
39-
description: "Terraform module for dynamic subnets provisioning."
40-
url: "https://github.com/cloudposse/terraform-aws-dynamic-subnets"
41-
- name: "terraform-aws-elasticsearch"
42-
description: "Terraform module for AWS Elasticsearch provisioning."
43-
url: "https://github.com/cloudposse/terraform-aws-elasticsearch"
44-
45-
# Short description of this project
15+
- name: terraform-aws-vpc
16+
description: Terraform Module that defines a VPC with public/private subnets across
17+
multiple AZs with Internet Gateways
18+
url: https://github.com/cloudposse/terraform-aws-vpc
19+
- name: terraform-aws-dynamic-subnets
20+
description: Terraform module for dynamic subnets provisioning.
21+
url: https://github.com/cloudposse/terraform-aws-dynamic-subnets
22+
- name: terraform-aws-elasticsearch
23+
description: Terraform module for AWS Elasticsearch provisioning.
24+
url: https://github.com/cloudposse/terraform-aws-elasticsearch
4625
description: |-
4726
Terraform module to provision a scheduled Lambda function which will
4827
delete old Elasticsearch indexes using [SigV4Auth](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) authentication. The
4928
lambda function can optionally send output to an SNS topic if the
5029
topic ARN is given. This module was largely inspired by
5130
[aws-lambda-es-cleanup](https://github.com/cloudreach/aws-lambda-es-cleanup)
52-
53-
# How to use this project
54-
usage: |-
31+
usage: |2-
5532
5633
For a complete example, see [examples/complete](examples/complete).
5734
@@ -69,18 +46,15 @@ usage: |-
6946
schedule = "rate(5 minutes)"
7047
}
7148
```
72-
7349
include:
74-
- "docs/targets.md"
75-
- "docs/terraform.md"
76-
77-
# Contributors to this project
50+
- docs/targets.md
51+
- docs/terraform.md
7852
contributors:
79-
- name: "Josh Myers"
80-
github: "joshmyers"
81-
- name: "Erik Osterman"
82-
github: "osterman"
83-
- name: "Andriy Knysh"
84-
github: "aknysh"
85-
- name: "Igor Rodionov"
86-
github: "goruha"
53+
- name: Josh Myers
54+
github: joshmyers
55+
- name: Erik Osterman
56+
github: osterman
57+
- name: Andriy Knysh
58+
github: aknysh
59+
- name: Igor Rodionov
60+
github: goruha

codefresh/test.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)