Skip to content

Commit 60dd21e

Browse files
authored
Update actions (#276)
* Update actions * refactor auto-lable * remove dup * Update README.md (#278)
1 parent ae26d50 commit 60dd21e

15 files changed

+174
-33
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Use this file to define individuals or teams that are responsible for code in a repository.
2+
# Read more: <https://help.github.com/articles/about-codeowners/>
3+
4+
* @cloudposse/engineering

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
Found a bug? Maybe our [Slack Community](https://slack.cloudposse.com) can help.
11+
12+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
13+
14+
## Describe the Bug
15+
A clear and concise description of what the bug is.
16+
17+
## Expected Behavior
18+
A clear and concise description of what you expected to happen.
19+
20+
## Steps to Reproduce
21+
Steps to reproduce the behavior:
22+
1. Go to '...'
23+
2. Run '....'
24+
3. Enter '....'
25+
4. See error
26+
27+
## Screenshots
28+
If applicable, add screenshots or logs to help explain your problem.
29+
30+
## Environment (please complete the following information):
31+
32+
Anything that will help us triage the bug will help. Here are some ideas:
33+
- OS: [e.g. Linux, OSX, WSL, etc]
34+
- Version [e.g. 10.15]
35+
36+
## Additional Context
37+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
5+
- name: Community Slack Team
6+
url: https://cloudposse.com/slack/
7+
about: |-
8+
Please ask and answer questions here.
9+
10+
- name: Office Hours
11+
url: https://cloudposse.com/office-hours/
12+
about: |-
13+
Join us every Wednesday for FREE Office Hours (lunch & learn).
14+
15+
- name: DevOps Accelerator Program
16+
url: https://cloudposse.com/accelerate/
17+
about: |-
18+
Own your infrastructure in record time. We build it. You drive it.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'feature request'
6+
assignees: ''
7+
8+
---
9+
10+
Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) in the `#geodesic` channel or visit our [Slack Archive](https://archive.sweetops.com/geodesic/).
11+
12+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
13+
14+
## Describe the Feature
15+
16+
A clear and concise description of what the bug is.
17+
18+
## Expected Behavior
19+
20+
A clear and concise description of what you expected to happen.
21+
22+
## Use Case
23+
24+
Is your feature request related to a problem/challenge you are trying to solve? Please provide some additional context of why this feature or capability will be valuable.
25+
26+
## Describe Ideal Solution
27+
28+
A clear and concise description of what you want to happen. If you don't know, that's okay.
29+
30+
## Alternatives Considered
31+
32+
Explain what alternative solutions or features you've considered.
33+
34+
## Additional Context
35+
36+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## what
2+
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3+
* Use bullet points to be concise and to the point.
4+
5+
## why
6+
* Provide the justifications for the changes (e.g. business case).
7+
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8+
* Use bullet points to be concise and to the point.
9+
10+
## references
11+
* Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
12+
* Use `closes #123`, if this PR closes a GitHub issue `#123`
13+
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Set to true to add reviewers to pull requests
22
addReviewers: true
33

4-
# Set to author to set pr creater as assignee
4+
# Set to author to set PR creator as assignee
55
addAssignees: author
66

77
# A list of reviewers to be added to pull requests (GitHub user name)
8+
# Teams are not supported (wontfix): https://github.com/kentaro-m/auto-assign/issues/39
89
reviewers:
910
- aknysh
1011
- osterman
12+
- goruha
1113

1214
# A number of reviewers added to the pull request
1315
# Set 0 to add all the reviewers (default: 0)
1416
numberOfReviewers: 0
15-
16-

.github/labeler.yml renamed to .github/auto-label-default.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ docs:
1212
github:
1313
- .github/**
1414

15-
vendor:
16-
- vendor/**
17-
1815
scripts:
1916
- bin/**
2017
- tasks/**

.github/vendor.yml renamed to .github/auto-label.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
codefresh:
2+
- codefresh/**
3+
- codefresh.yml
4+
5+
docker:
6+
- Dockerfile
7+
- apk/Dockerfile.*
8+
9+
docs:
10+
- docs/**
11+
12+
github:
13+
- .github/**
14+
15+
scripts:
16+
- bin/**
17+
- tasks/**
18+
vendor: vendor/**
119
vendor/assume-role: vendor/assume-role/**
220
vendor/atlantis: vendor/atlantis/**
321
vendor/awless: vendor/awless/**

.github/workflows/auto-assign.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
name: 'auto-assign'
2-
on: pull_request
1+
name: auto-assign
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
35

46
jobs:
57
reviewers:
@@ -8,3 +10,4 @@ jobs:
810
- uses: cloudposse/actions/github/[email protected]
911
with:
1012
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
configuration-path: '.github/auto-assign.yml'

.github/workflows/auto-greet.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: auto-greet
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
comment:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: |-
13+
Thank you for reporting the issue! If you haven't already [joined our slack community](https://slack.sweetops.com), then we invite you to do so.
14+
15+
This is a great place to get help and ask questions from our AMAZING community.
16+
17+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
18+
pr-message: |-
19+
Thank you for submitting this PR! If you haven't already [joined our slack community](https://slack.sweetops.com), then we invite you to do so.
20+
21+
We receive an overwhelming number of contributions. By joining our slack, we'll be able to review your PR faster.
22+
23+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

.github/workflows/auto-label.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,10 @@ name: auto-label
22
on: [pull_request]
33

44
jobs:
5-
autolabel:
6-
5+
components:
76
runs-on: ubuntu-latest
8-
97
steps:
108
- uses: actions/[email protected]
119
with:
1210
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13-
configuration-path: '.github/labeler.yml'
14-
- uses: actions/checkout@master
15-
- run: "make -C vendor labeler"
16-
- uses: cloudposse/actions/github/[email protected]
17-
env:
18-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19-
GIT_COMMIT_MESSAGE: "Updated .github/vendor.yml labels"
20-
- uses: actions/[email protected]
21-
with:
22-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
23-
configuration-path: '.github/vendor.yml'
11+
configuration-path: '.github/auto-label.yml'

.github/workflows/auto-readme.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: 'auto-readme'
22

33
on:
4-
# Open a PR to update README (as necessary)
4+
# Open a PR to update README on merge to master (as necessary)
5+
push:
6+
branches:
7+
- master
8+
9+
# Open a PR to update README for all PRs (as necessary)
510
pull_request:
611
types: [opened, synchronize, reopened]
7-
12+
813
# Update README nightly
914
schedule:
1015
- cron: '0 0 * * *'
@@ -34,5 +39,5 @@ jobs:
3439
PULL_REQUEST_BODY: |-
3540
This is an auto-generated PR which updates the `README.md` from the `README.yaml`
3641
using the [`cloudposse/build-harness`](https://github.com/cloudposse/build-harness).
37-
PULL_REQUEST_BRANCH: update-readme
42+
PULL_REQUEST_BRANCH: github-actions/auto-readme
3843
BRANCH_SUFFIX: none

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export DOCKER_IMAGE_NAME ?= $(DOCKER_IMAGE):$(DOCKER_TAG)
55
export DOCKER_BUILD_FLAGS =
66

77
export DEFAULT_HELP_TARGET := help/vendor
8-
export README_DEPS ?= vendor/labeler docs/targets.md
8+
export README_DEPS ?= .github/auto-label.yml docs/targets.md
99

1010
export DIST_CMD ?= cp -a
1111
export DIST_PATH ?= /dist
@@ -36,8 +36,12 @@ push:
3636
run:
3737
docker run -it ${DOCKER_IMAGE_NAME} sh
3838

39-
vendor/labeler:
40-
$(MAKE) -C vendor labeler
39+
.github/auto-label.yml:: PACKAGES=$(sort $(dir $(wildcard vendor/*/)))
40+
.github/auto-label.yml::
41+
cp .github/auto-label-default.yml $@
42+
for vendor in $(PACKAGES); do \
43+
echo "$${vendor%/}: $${vendor}**"; \
44+
done >> $@
4145

4246
## Build alpine packages for testing
4347
docker/build/apk:

vendor/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ build: $(PACKAGES)
2222
$(PACKAGES): prepare
2323
make --no-print-directory -C $@ apk
2424

25-
labeler:
26-
for vendor in $(PACKAGES); do \
27-
echo "vendor/$${vendor%/}: vendor/$${vendor}**"; \
28-
done > ../.github/vendor.yml
29-
3025
## Update all packages
3126
auto-update:
3227
find . -mindepth 1 -maxdepth 1 -type d | xargs -I{} bash -c 'make --no-print-directory --quiet --silent -C {} auto-update || exit 255'

0 commit comments

Comments
 (0)