generated from accelerator-blueprints/base-blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f8f1217
Showing
14 changed files
with
749 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# editorconfig.org | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
|
||
[*.js] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# 4 space indentation | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# 4 space indentation | ||
[*.toml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# YAML Files | ||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[*.sh] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{json,tpl}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
# https://github.com/DeFiCh/oss-governance-bot | ||
# https://github.com/DeFiCh/app/blob/master/.github/governance.yml | ||
# todo: should be synced | ||
version: v1 | ||
|
||
issue: | ||
captures: | ||
- regex: '- Version: *(.+) *' | ||
github_release: true | ||
ignore_case: true | ||
label: 'version/$CAPTURED' | ||
|
||
- regex: '- Operating System \(OS\): *(windows?|ms|wins?|microsoft).*' | ||
label: 'os/win' | ||
ignore_case: true | ||
|
||
- regex: '- Operating System \(OS\): *(linux|linus|lin|unix|ubuntu|fedora|debian).*' | ||
label: 'os/linux' | ||
ignore_case: true | ||
|
||
- regex: '- Operating System \(OS\): *(macos|mac|apple|macintosh|macbook).*' | ||
label: 'os/mac' | ||
ignore_case: true | ||
|
||
labels: | ||
- prefix: triage | ||
list: ['accepted'] | ||
multiple: true | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
first_timer: false | ||
needs: | ||
comment: | | ||
@$AUTHOR: Thanks for opening an issue, it is currently awaiting triage. | ||
The triage/accepted label can be added by foundation members by writing `/triage accepted` in a comment. | ||
- prefix: kind | ||
list: ['feature', 'bug', 'question'] | ||
multiple: true | ||
needs: false | ||
author_association: | ||
author: true | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- prefix: area | ||
list: [ 'bug', 'github-action', "feature", "security", 'docs', 'question', 'release', 'dependencies' ] | ||
multiple: true | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
first_timer: true | ||
needs: | ||
comment: | | ||
@$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!** | ||
Aread can be added by writing in a comment ⬇️ | ||
* `/area kind/bug` | ||
* `/area kind/github-action` | ||
* `/area kind/feature` | ||
* `/area kind/docs` | ||
* `/area kind/question` | ||
* `/area kind/security` | ||
* `/area dependencies` | ||
- prefix: os | ||
list: ['mac', 'win', 'linux'] | ||
multiple: true | ||
|
||
- prefix: logs | ||
list: ['accepted', 'from-email'] | ||
multiple: true | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- prefix: priority | ||
multiple: true | ||
list: ['urgent-now', 'important-soon'] | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
chat_ops: | ||
- cmd: /close | ||
type: close | ||
author_association: | ||
author: true | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /duplicate | ||
type: close | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /duplicate | ||
type: comment | ||
comment: | | ||
@$ISSUE_AUTHOR: This issue has been marked duplicate by @$AUTHOR, if you think this is a mistake, please reopen it! | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /duplicate | ||
type: label | ||
label: | ||
add: duplicate | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /cc | ||
type: none | ||
|
||
- cmd: /assign | ||
type: assign | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /comment issue | ||
type: comment | ||
comment: | | ||
@$ISSUE_AUTHOR: Hey this is comment issue example for issue/pr author. | ||
@$AUTHOR: Hey this is comment issue example for sender author. | ||
pull_request: | ||
labels: | ||
- prefix: kind | ||
multiple: true | ||
list: [feature, fix, chore, docs, refactor, security, github, question] | ||
needs: | ||
comment: | | ||
@$AUTHOR: There are no 'kind' label on this PR. You need a 'kind' label. | ||
Label can be added by writing in a comment ⬇️ | ||
* `/kind feature` | ||
* `/kind fix` | ||
* `/kind chore` | ||
* `/kind docs` | ||
* `/kind refactor` | ||
* `/kind github` | ||
* `/kind security` | ||
* `/kind question` | ||
status: | ||
context: 'governance kind/* Label' | ||
description: | ||
success: Ready for review & merge. | ||
failure: Missing kind label for release generation. | ||
|
||
author_association: | ||
author: true | ||
collaborator: true | ||
member: true | ||
owner: true | ||
first_timer: true | ||
|
||
- prefix: priority | ||
multiple: false | ||
list: [ "urgent-now", "important-soon" ] | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
chat_ops: | ||
- cmd: /close | ||
type: close | ||
author_association: | ||
author: true | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /cc | ||
type: none | ||
|
||
- cmd: /request | ||
type: review | ||
author_association: | ||
collaborator: true | ||
member: true | ||
owner: true | ||
|
||
- cmd: /comment pr | ||
type: comment | ||
comment: | | ||
@$AUTHOR: Hey this is comment pr example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Repository to extend settings from | ||
_extends: .github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# These settings are synced to GitHub by https://probot.github.io/apps/settings/ | ||
_extends: .github | ||
|
||
repository: | ||
description: ":art: My base blueprint." | ||
topics: "ivank, blueprint, accelerator, base" | ||
private: false | ||
has_issues: true | ||
has_projects: false | ||
has_wiki: false | ||
has_downloads: false | ||
default_branch: main | ||
allow_squash_merge: true | ||
allow_merge_commit: true | ||
allow_rebase_merge: true | ||
delete_branch_on_merge: true | ||
enable_automated_security_fixes: true | ||
enable_vulnerability_alerts: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# @todo: sync with other repositories | ||
|
||
name: governance.bot | ||
|
||
on: | ||
pull_request_target: | ||
branches: [master, main] | ||
types: [synchronize, opened, labeled, unlabeled] | ||
issues: | ||
types: [opened, labeled, unlabeled] | ||
issue_comment: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
main: | ||
name: governance | ||
runs-on: ubuntu-latest | ||
if: > | ||
(github.actor != 'dependabot[bot]' || github.actor != 'dependabot-preview[bot]' || | ||
github.actor != 'renovate[bot]' || github.actor != 'renovate-bot') | ||
steps: | ||
- uses: DeFiCh/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
config-path: .github/governance.bot.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# @todo: sync with other repositories | ||
--- | ||
name: governance.link-checker | ||
|
||
# Run action on pull request event | ||
on: | ||
push: | ||
branches: | ||
- $default-branch | ||
paths: | ||
- '*.md' | ||
pull_request: | ||
types: [opened, edited] | ||
paths: | ||
- '*.md' | ||
schedule: | ||
- cron: "0 9 * * 1" | ||
workflow_dispatch: | ||
|
||
env: | ||
TEMPLATE: .github/templates/issue.links.md | ||
LYCHEE_OUT: out.md | ||
USER_AGENT: "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0" | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout to latest commit | ||
- uses: actions/[email protected] | ||
# run markdown linter | ||
|
||
# todo https://github.com/peter-evans/link-checker | ||
- name: link checker | ||
id: lychee | ||
uses: lycheeverse/[email protected] | ||
# if: failure() | ||
with: | ||
args: > | ||
--exclude="^(javascript|chrome):.*" | ||
--exclude "^git" | ||
--exclude "^file://" | ||
--verbose | ||
--no-progress | ||
--accept=200,403,429 | ||
--timeout 20 | ||
"*.md" | ||
"**/*.md" | ||
"README.md" | ||
"*.toml" | ||
"**/*.toml" | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: read output | ||
id: readfile | ||
uses: juliangruber/read-file-action@v1 | ||
if: ${{ steps.lychee.outputs.exit_code > 0 }} | ||
with: | ||
path: ${{ env.LYCHEE_OUT }} | ||
|
||
- name: results | ||
id: read | ||
run: | | ||
echo "exit code: ${{ steps.lychee.outputs.exit_code }}" | ||
- name: update issue template | ||
uses: DamianReeves/write-file-action@master | ||
if: ${{ steps.lychee.outputs.exit_code > 0 }} | ||
with: | ||
path: .github/templates/issue.links.md | ||
contents: ${{ steps.readfile.outputs.content }} | ||
write-mode: append | ||
|
||
- name: create issue from file | ||
uses: JasonEtco/[email protected] | ||
id: issue | ||
if: ${{ steps.lychee.outputs.exit_code > 0 }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TITLE: 'Markdwon links checker' | ||
with: | ||
filename: ${{ env.TEMPLATE }} | ||
assignees: ${{ github.repository_owner }} | ||
update_existing: true | ||
|
||
- name: fail if there were link errors | ||
run: exit ${{ steps.lychee.outputs.exit_code }} |
Oops, something went wrong.