Skip to content

Commit 8833530

Browse files
Initial commit
0 parents  commit 8833530

21 files changed

+769
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = false
10+
trim_trailing_whitespace = true
11+
max_line_length = 150
12+
13+
[*.{sh,html,bash,bats}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[Makefile]
18+
indent_style = tab
19+
20+
[*.{tf,tfvars}]
21+
indent_size = 2
22+
indent_style = space
23+
24+
[*.{yml,yaml}]
25+
indent_style = space
26+
indent_size = 2

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# https://direnv.net/
2+
export WORKSHOP="NAME_ME_PLEASE!"

.gitattributes

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Ensure shell script uses LF, coz Git will convert files to CRLF on Windows which means the Linux container will fail to build\run
2+
Dockerfile eol=lf
3+
*.sh eol=lf
4+
5+
###############################################################################
6+
# Set the merge driver for project and solution files
7+
#
8+
# Merging from the command prompt will add diff markers to the files if there
9+
# are conflicts (Merging from VS is not affected by the settings below, in VS
10+
# the diff markers are never inserted). Diff markers may cause the following
11+
# file extensions to fail to load in VS. An alternative would be to treat
12+
# these files as binary and thus will always conflict and require user
13+
# intervention with every merge. To do so, just uncomment the entries below
14+
###############################################################################
15+
#*.sln merge=binary
16+
#*.csproj merge=binary
17+
#*.vbproj merge=binary
18+
#*.vcxproj merge=binary
19+
#*.vcproj merge=binary
20+
#*.dbproj merge=binary
21+
#*.fsproj merge=binary
22+
#*.lsproj merge=binary
23+
#*.wixproj merge=binary
24+
#*.modelproj merge=binary
25+
#*.sqlproj merge=binary
26+
#*.wwaproj merge=binary
27+
28+
###############################################################################
29+
# behavior for image files
30+
#
31+
# image files are treated as binary by default.
32+
###############################################################################
33+
#*.jpg binary
34+
#*.png binary
35+
#*.gif binary
36+
37+
###############################################################################
38+
# diff behavior for common document formats
39+
#
40+
# Convert binary document formats to text before diffing them. This feature
41+
# is only available from the command line. Turn it on by uncommenting the
42+
# entries below.
43+
###############################################################################
44+
#*.doc diff=astextplain
45+
#*.DOC diff=astextplain
46+
#*.docx diff=astextplain
47+
#*.DOCX diff=astextplain
48+
#*.dot diff=astextplain
49+
#*.DOT diff=astextplain
50+
#*.pdf diff=astextplain
51+
#*.PDF diff=astextplain
52+
#*.rtf diff=astextplain
53+
#*.RTF diff=astextplain

.github/governance.bot.yml

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
# https://github.com/DeFiCh/oss-governance-bot
2+
# https://github.com/DeFiCh/app/blob/master/.github/governance.yml
3+
# todo: should be synced
4+
version: v1
5+
6+
issue:
7+
captures:
8+
- regex: '- Version: *(.+) *'
9+
github_release: true
10+
ignore_case: true
11+
label: 'version/$CAPTURED'
12+
13+
- regex: '- Operating System \(OS\): *(windows?|ms|wins?|microsoft).*'
14+
label: 'os/win'
15+
ignore_case: true
16+
17+
- regex: '- Operating System \(OS\): *(linux|linus|lin|unix|ubuntu|fedora|debian).*'
18+
label: 'os/linux'
19+
ignore_case: true
20+
21+
- regex: '- Operating System \(OS\): *(macos|mac|apple|macintosh|macbook).*'
22+
label: 'os/mac'
23+
ignore_case: true
24+
25+
labels:
26+
- prefix: triage
27+
list: ['accepted']
28+
multiple: true
29+
author_association:
30+
collaborator: true
31+
member: true
32+
owner: true
33+
first_timer: false
34+
needs:
35+
comment: |
36+
@$AUTHOR: Thanks for opening an issue, it is currently awaiting triage.
37+
The triage/accepted label can be added by foundation members by writing `/triage accepted` in a comment.
38+
- prefix: kind
39+
list: ['feature', 'bug', 'question']
40+
multiple: true
41+
needs: false
42+
author_association:
43+
author: true
44+
collaborator: true
45+
member: true
46+
owner: true
47+
48+
- prefix: area
49+
list: [ 'bug', 'github-action', "feature", "security", 'docs', 'question', 'release', 'dependencies' ]
50+
multiple: true
51+
author_association:
52+
collaborator: true
53+
member: true
54+
owner: true
55+
first_timer: true
56+
needs:
57+
comment: |
58+
@$AUTHOR: There are no area labels on this issue. You can add as many area as you see fit. **If you are unsure what to do you can ignore this!**
59+
Aread can be added by writing in a comment ⬇️
60+
* `/area kind/bug`
61+
* `/area kind/github-action`
62+
* `/area kind/feature`
63+
* `/area kind/docs`
64+
* `/area kind/question`
65+
* `/area kind/security`
66+
* `/area dependencies`
67+
- prefix: os
68+
list: ['mac', 'win', 'linux']
69+
multiple: true
70+
71+
- prefix: logs
72+
list: ['accepted', 'from-email']
73+
multiple: true
74+
author_association:
75+
collaborator: true
76+
member: true
77+
owner: true
78+
79+
- prefix: priority
80+
multiple: true
81+
list: ['urgent-now', 'important-soon']
82+
author_association:
83+
collaborator: true
84+
member: true
85+
owner: true
86+
87+
chat_ops:
88+
- cmd: /close
89+
type: close
90+
author_association:
91+
author: true
92+
collaborator: true
93+
member: true
94+
owner: true
95+
96+
- cmd: /duplicate
97+
type: close
98+
author_association:
99+
collaborator: true
100+
member: true
101+
owner: true
102+
103+
- cmd: /duplicate
104+
type: comment
105+
comment: |
106+
@$ISSUE_AUTHOR: This issue has been marked duplicate by @$AUTHOR, if you think this is a mistake, please reopen it!
107+
author_association:
108+
collaborator: true
109+
member: true
110+
owner: true
111+
112+
- cmd: /duplicate
113+
type: label
114+
label:
115+
add: duplicate
116+
author_association:
117+
collaborator: true
118+
member: true
119+
owner: true
120+
121+
- cmd: /cc
122+
type: none
123+
124+
- cmd: /assign
125+
type: assign
126+
author_association:
127+
collaborator: true
128+
member: true
129+
owner: true
130+
131+
- cmd: /comment issue
132+
type: comment
133+
comment: |
134+
@$ISSUE_AUTHOR: Hey this is comment issue example for issue/pr author.
135+
@$AUTHOR: Hey this is comment issue example for sender author.
136+
pull_request:
137+
labels:
138+
- prefix: kind
139+
multiple: true
140+
list: [feature, fix, chore, docs, refactor, security, github, question]
141+
needs:
142+
comment: |
143+
@$AUTHOR: There are no 'kind' label on this PR. You need a 'kind' label.
144+
Label can be added by writing in a comment ⬇️
145+
* `/kind feature`
146+
* `/kind fix`
147+
* `/kind chore`
148+
* `/kind docs`
149+
* `/kind refactor`
150+
* `/kind github`
151+
* `/kind security`
152+
* `/kind question`
153+
status:
154+
context: 'governance kind/* Label'
155+
description:
156+
success: Ready for review & merge.
157+
failure: Missing kind label for release generation.
158+
159+
author_association:
160+
author: true
161+
collaborator: true
162+
member: true
163+
owner: true
164+
first_timer: true
165+
166+
- prefix: priority
167+
multiple: false
168+
list: [ "urgent-now", "important-soon" ]
169+
author_association:
170+
collaborator: true
171+
member: true
172+
owner: true
173+
174+
chat_ops:
175+
- cmd: /close
176+
type: close
177+
author_association:
178+
author: true
179+
collaborator: true
180+
member: true
181+
owner: true
182+
183+
- cmd: /cc
184+
type: none
185+
186+
- cmd: /request
187+
type: review
188+
author_association:
189+
collaborator: true
190+
member: true
191+
owner: true
192+
193+
- cmd: /comment pr
194+
type: comment
195+
comment: |
196+
@$AUTHOR: Hey this is comment pr example.

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
_extends: .github

.github/settings.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
_extends: .github
3+
4+
repository:
5+
# See https://developer.github.com/v3/repos/#edit for all available settings.
6+
name: workshop-blueprint
7+
description: ':factory: Workshop blueprint'
8+
homepage: https://ivankatliarchuk.github.io
9+
topics: ivka, workshop, blueprint
10+
private: false
11+
has_issues: true
12+
has_projects: false
13+
has_wiki: false
14+
has_downloads: false
15+
has_pages: true
16+
is_template: true
17+
default_branch: main
18+
allow_squash_merge: true
19+
allow_merge_commit: true
20+
allow_rebase_merge: true
21+
delete_branch_on_merge: true
22+
enable_automated_security_fixes: true
23+
enable_vulnerability_alerts: false
24+
25+
branches:
26+
- name: main

.github/templates/issue.links.md

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# @todo: sync with other repositories
2+
3+
name: governance.bot
4+
5+
on:
6+
pull_request_target:
7+
branches: [master, main]
8+
types: [synchronize, opened, labeled, unlabeled]
9+
issues:
10+
types: [opened, labeled, unlabeled]
11+
issue_comment:
12+
types: [created]
13+
workflow_dispatch:
14+
15+
jobs:
16+
main:
17+
name: governance
18+
runs-on: ubuntu-latest
19+
if: >
20+
(github.actor != 'dependabot[bot]' || github.actor != 'dependabot-preview[bot]' ||
21+
github.actor != 'renovate[bot]' || github.actor != 'renovate-bot')
22+
steps:
23+
- uses: DeFiCh/[email protected]
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
config-path: .github/governance.bot.yml

0 commit comments

Comments
 (0)