Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit fdfe5ca

Browse files
authored
make github/init (#15)
1 parent d2e60f4 commit fdfe5ca

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/CODEOWNERS

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
# Cloud Posse must review any changes to standard context definition,
1717
# but some changes can be rubber-stamped.
18-
**/*.tf @cloudposse/engineering @cloudposse/approvers
19-
README.yaml @cloudposse/engineering @cloudposse/approvers
18+
**/*.tf @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
19+
README.yaml @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
2020
README.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
2121
docs/*.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
2222

.github/auto-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ template: |
4646
4747
replacers:
4848
# Remove irrelevant information from Renovate bot
49-
- search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm'
49+
- search: '/(?<=---\s)\s*^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
5050
replace: ''
5151
# Remove Renovate bot banner image
5252
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'

.github/workflows/auto-release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: auto-release
33
on:
44
push:
55
branches:
6+
- main
67
- master
8+
- production
79

810
jobs:
911
publish:
@@ -14,11 +16,10 @@ jobs:
1416
id: get-merged-pull-request
1517
with:
1618
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
17-
# Drafts your next Release notes as Pull Requests are merged into "master"
19+
# Drafts your next Release notes as Pull Requests are merged into "main"
1820
- uses: release-drafter/release-drafter@v5
19-
if: "!contains(steps.get-merged-pull-request.outputs.labels, 'no-release')"
2021
with:
21-
publish: true
22+
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
2223
prerelease: false
2324
config-name: auto-release.yml
2425
env:
+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Validate Codeowners
22
on:
3+
workflow_dispatch:
4+
35
pull_request:
46

57
jobs:
@@ -8,18 +10,21 @@ jobs:
810
steps:
911
- name: "Checkout source code at current commit"
1012
uses: actions/checkout@v2
11-
- uses: mszostok/[email protected]
13+
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
14+
- uses: mszostok/[email protected]
1215
if: github.event.pull_request.head.repo.full_name == github.repository
1316
name: "Full check of CODEOWNERS"
1417
with:
1518
# For now, remove "files" check to allow CODEOWNERS to specify non-existent
1619
# files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos
1720
# checks: "files,syntax,owners,duppatterns"
1821
checks: "syntax,owners,duppatterns"
22+
owner_checker_allow_unowned_patterns: "false"
1923
# GitHub access token is required only if the `owners` check is enabled
2024
github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
21-
- uses: mszostok/codeowners-validator@v0.5.0
25+
- uses: mszostok/codeowners-validator@v0.7.1
2226
if: github.event.pull_request.head.repo.full_name != github.repository
2327
name: "Syntax check of CODEOWNERS"
2428
with:
2529
checks: "syntax,duppatterns"
30+
owner_checker_allow_unowned_patterns: "false"

0 commit comments

Comments
 (0)