Skip to content

Commit 4a6dea7

Browse files
authored
Merge pull request #19 from projectsyn/modulesync-4cccee1
[ModuleSync] Update from projectsyn/modulesync-control@4cccee1
2 parents 61228a5 + 8c9c85d commit 4a6dea7

17 files changed

+230
-74
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
;
2+
; File managed by ModuleSync - Do Not Edit
3+
;
4+
; Additional Makefiles can be added to `.sync.yml` in 'Makefile.includes'
5+
;
6+
; This file is for unifying the coding style for different editors and IDEs.
7+
; More information at https://editorconfig.org
8+
9+
root = true
10+
11+
[*]
12+
charset = utf-8
13+
end_of_line = lf
14+
insert_final_newline = true
15+
trim_trailing_whitespace = true
16+
17+
[*.{y*ml,*json*,*sonnet}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.*sonnet]
22+
# C-style doc comments
23+
block_comment_start = /*
24+
block_comment = *
25+
block_comment_end = */
26+
27+
[.gitkeep]
28+
insert_final_newline = false
29+
30+
[Makefile]
31+
indent_style = tab

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Remove items that do not apply. For completed items, change [ ] to [x].
1212

1313
- [ ] Keep pull requests small so they can be easily reviewed.
1414
- [ ] Update the documentation.
15-
- [ ] Update the ./CHANGELOG.md.
15+
- [ ] Categorize the PR by setting a good title and adding one of the labels:
16+
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`
17+
as they show up in the changelog
1618
- [ ] Link this PR to related issues.
1719

1820
<!--
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
3+
"categories": [
4+
{
5+
"title": "## 🚀 Features",
6+
"labels": ["enhancement", "feature"]
7+
},
8+
{
9+
"title": "## 🛠️ Minor Changes",
10+
"labels": ["change"]
11+
},
12+
{
13+
"title": "## 🔎 Breaking Changes",
14+
"labels": ["breaking"]
15+
},
16+
{
17+
"title": "## 🐛 Fixes",
18+
"labels": ["bug", "fix"]
19+
},
20+
{
21+
"title": "## 📄 Documentation",
22+
"labels": ["documentation"]
23+
},
24+
{
25+
"title": "## 🔗 Dependency Updates",
26+
"labels": ["dependency"]
27+
}
28+
],
29+
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}"
30+
}

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
jobs:
8+
dist:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: "0"
14+
- name: Build changelog from PRs with labels
15+
id: build_changelog
16+
uses: mikepenz/release-changelog-builder-action@v2
17+
with:
18+
configuration: ".github/changelog-configuration.json"
19+
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
20+
# combining possible changelogs of all previous PreReleases in between.
21+
# PreReleases show a partial changelog since last PreRelease.
22+
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Create Release
26+
uses: ncipollo/release-action@v1
27+
with:
28+
body: ${{steps.build_changelog.outputs.changelog}}
29+
prerelease: "${{ contains(github.ref, '-rc') }}"
30+
# Ensure target branch for release is "master"
31+
commit: master
32+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches:
55
- master
66

7+
env:
8+
COMPONENT_NAME: system-upgrade-controller
9+
710
jobs:
811
linting:
912
runs-on: ubuntu-latest
@@ -12,8 +15,26 @@ jobs:
1215
command:
1316
- lint_jsonnet
1417
- lint_yaml
15-
- docs
18+
- lint_adoc
1619
steps:
1720
- uses: actions/checkout@v2
1821
- name: Run ${{ matrix.command }}
1922
run: make ${{ matrix.command }}
23+
editorconfig:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: snow-actions/eclint@v1.0.1
28+
with:
29+
args: 'check'
30+
test:
31+
runs-on: ubuntu-latest
32+
defaults:
33+
run:
34+
working-directory: ${{ env.COMPONENT_NAME }}
35+
steps:
36+
- uses: actions/checkout@v2
37+
with:
38+
path: ${{ env.COMPONENT_NAME }}
39+
- name: Compile component
40+
run: make test

.gitignore

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
_archive/
2-
_public/
1+
#
2+
# File managed by ModuleSync - Do Not Edit
3+
#
4+
# Additional entries can be added to `.sync.yml` in '.gitignore.additionalEntries'
5+
#
6+
7+
# Commodore
38
.cache/
49
helmcharts/
510
manifests/
11+
vendor/
12+
jsonnetfile.lock.json
13+
crds/
14+
compiled/
15+
16+
# Editors
17+
.vscode/
18+
.idea/
19+
20+
# Antora
21+
_archive/
22+
_public/
23+
24+
# Additional entries

.yamllint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#
2+
# File managed by ModuleSync - Do Not Edit
3+
#
4+
15
extends: default
26

37
rules:

CHANGELOG.md

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

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Code of Conduct
22

33
This code repository is part of Project Syn and the code of conduct at
4-
https://syn.tools/syn/code_of_conduct.html does apply.
4+
https://syn.tools/syn/about/code_of_conduct.html does apply.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# How to contribute
22

33
This code repository is part of Project Syn and the contribution guide at
4-
https://syn.tools/syn/contribution_guide.html does apply.
4+
https://syn.tools/syn/about/contribution_guide.html does apply.
55

66
Submit Pull Requests at https://github.com/projectsyn/component-system-upgrade-controller/pulls.

0 commit comments

Comments
 (0)