Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit f3416d0

Browse files
committed
initial commit
1 parent cdd348e commit f3416d0

26 files changed

+6096
-1
lines changed

.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
3+
"ignorePatterns": ["/*.config.ts", "/*.config.js"],
4+
"parserOptions": {
5+
"project": "./tsconfig.json"
6+
}
7+
}
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Bug report
3+
about: Report a bug encountered with this project
4+
labels: kind/bug
5+
---
6+
7+
<!--
8+
Please use this template while reporting a bug and provide as much info as possible.
9+
10+
If the matter is security related, please disclose it privately via [email protected]
11+
-->
12+
13+
#### What happened:
14+
15+
#### What you expected to happen:
16+
17+
#### How to reproduce it (as minimally and precisely as possible):
18+
19+
#### Anything else we need to know?:
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Enhancement request
3+
about: Suggest an enhancement
4+
labels: kind/feature
5+
---
6+
7+
<!-- Please only use this template for submitting enhancement/feature requests -->
8+
9+
#### What would you like to be added:
10+
11+
#### Why is this needed:

.github/ISSUE_TEMPLATE/3-general.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: General question
3+
about: General question about this project
4+
labels: kind/question
5+
---
6+
7+
<!--
8+
If the matter is security related, please disclose it privately via [email protected]
9+
-->

.github/PULL_REQUEST_TEMPLATE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- Thanks for sending a pull request! -->
2+
3+
#### What this PR does / why we need it:
4+
5+
#### Which issue(s) does this PR fixes?:
6+
7+
<!--
8+
(Optional) Automatically closes linked issue when PR is merged.
9+
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
10+
-->
11+
12+
Fixes #
13+
14+
#### Additional comments?:

.github/dependabot.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels:
8+
- "kind/dependencies"
9+
versioning-strategy: "increase"
10+
commit-message:
11+
include: scope
12+
prefix: bump
13+
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
labels:
19+
- "kind/dependencies"
20+
commit-message:
21+
include: scope
22+
prefix: bump

.github/governance.yml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
version: v1
2+
3+
issue:
4+
labels:
5+
- prefix: triage
6+
list: ["accepted"]
7+
multiple: false
8+
author_association:
9+
collaborator: true
10+
member: true
11+
owner: true
12+
needs:
13+
comment: |
14+
@$AUTHOR: Thanks for opening an issue, it is currently awaiting triage.
15+
16+
The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.
17+
18+
- prefix: kind
19+
list:
20+
- feature
21+
- bug
22+
- question
23+
- fix
24+
- chore
25+
- docs
26+
- refactor
27+
- dependencies
28+
multiple: false
29+
needs: true
30+
author_association:
31+
author: true
32+
collaborator: true
33+
member: true
34+
owner: true
35+
36+
- prefix: area
37+
list:
38+
- workflow
39+
multiple: true
40+
needs:
41+
comment: |
42+
@$AUTHOR: There are no 'area' labels on this issue. Adding an appropriate label will greatly expedite the process for us. You can add as many area as you see fit. **If you are unsure what to do you can ignore this!**
43+
44+
You can add area labels by leaving a `/area` comment.
45+
author_association:
46+
author: true
47+
collaborator: true
48+
member: true
49+
owner: true
50+
51+
- prefix: priority
52+
multiple: false
53+
list: ["urgent-now", "important-soon"]
54+
author_association:
55+
collaborator: true
56+
member: true
57+
owner: true
58+
59+
chat_ops:
60+
- cmd: /close
61+
type: close
62+
author_association:
63+
author: true
64+
collaborator: true
65+
member: true
66+
owner: true
67+
68+
- cmd: /duplicate
69+
type: close
70+
author_association:
71+
collaborator: true
72+
member: true
73+
owner: true
74+
75+
- cmd: /duplicate
76+
type: comment
77+
comment: |
78+
@$ISSUE_AUTHOR: This issue has been marked duplicate by @$AUTHOR, if you think this is a mistake, please reopen it!
79+
author_association:
80+
collaborator: true
81+
member: true
82+
owner: true
83+
84+
- cmd: /duplicate
85+
type: label
86+
label:
87+
add: duplicate
88+
author_association:
89+
collaborator: true
90+
member: true
91+
owner: true
92+
93+
- cmd: /cc
94+
type: none
95+
96+
- cmd: /assign
97+
type: assign
98+
author_association:
99+
collaborator: true
100+
member: true
101+
owner: true

.github/labeler.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: v1
2+
3+
labels:
4+
- label: kind/feature
5+
sync: true
6+
matcher:
7+
title: "^feat\\(.+\\): .+"
8+
9+
- label: kind/fix
10+
sync: true
11+
matcher:
12+
title: "^fix\\(.+\\): .+"
13+
14+
- label: kind/chore
15+
sync: true
16+
matcher:
17+
title: "^chore\\(.+\\): .+"
18+
19+
- label: kind/refactor
20+
sync: true
21+
matcher:
22+
title: "^refactor\\(.+\\): .+"
23+
24+
- label: kind/docs
25+
sync: true
26+
matcher:
27+
title: "^docs\\(.+\\): .+"
28+
29+
- label: kind/dependencies
30+
sync: true
31+
matcher:
32+
title: "^bump(\\(.+\\))?: .+"
33+
34+
- label: area/workflow
35+
sync: true
36+
matcher:
37+
files: ".github/**"
38+
39+
checks:
40+
- context: "Semantic Pull Request"
41+
description:
42+
success: Ready for review & merge.
43+
failure: "Missing semantic title or label for merge [kind(directory): title]"
44+
labels:
45+
any:
46+
- kind/feature
47+
- kind/fix
48+
- kind/chore
49+
- kind/refactor
50+
- kind/docs
51+
- kind/dependencies

.github/labels.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# GitHub generic useful labels
2+
- color: c4d471
3+
name: duplicate
4+
description: This issue or pull request already exists
5+
- color: 7057ff
6+
name: good first issue
7+
description: Good for newcomers
8+
- color: ffffff
9+
name: wontfix
10+
description: This will not be worked on
11+
12+
# Needs
13+
- color: cc40d8
14+
name: needs/kind
15+
description: Needs kind label
16+
- color: cc40d8
17+
name: needs/area
18+
description: Needs area label(s)
19+
- color: cc40d8
20+
name: needs/priority
21+
description: Needs a priority label
22+
- color: cc40d8
23+
name: needs/triage
24+
description: Waiting for triage to be accepted
25+
26+
# Kind
27+
- color: e7e9eb
28+
name: kind/bug
29+
description: Something isn't working
30+
- color: e7e9eb
31+
name: kind/feature
32+
description: New feature request
33+
- color: e7e9eb
34+
name: kind/question
35+
description: Generic question
36+
- color: e7e9eb
37+
name: kind/chore
38+
description: Non feature change
39+
- color: e7e9eb
40+
name: kind/fix
41+
description: Fix a bug
42+
- color: e7e9eb
43+
name: kind/docs
44+
description: Non feature documentation change
45+
- color: e7e9eb
46+
name: kind/refactor
47+
description: Non feature refactor change
48+
- color: e7e9eb
49+
name: kind/dependencies
50+
description: Pull requests that update a dependency file
51+
52+
# Area
53+
- color: fbca04
54+
name: area/workflow
55+
56+
# Priority
57+
- color: d93f0b
58+
name: priority/urgent-now
59+
description: Urgent fix, as fast as possible
60+
- color: d93f0b
61+
name: priority/important-soon
62+
description: Will be important soon
63+
64+
# Triage
65+
- color: b1f488
66+
name: triage/accepted
67+
description: Triage has been accepted

.github/release-drafter.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "Features"
5+
labels:
6+
- "kind/feature"
7+
- title: "Fixes"
8+
labels:
9+
- "kind/fix"
10+
- title: "Chore & Maintenance"
11+
labels:
12+
- "kind/refactor"
13+
- "kind/chore"
14+
- "kind/docs"
15+
- title: "Dependencies"
16+
labels:
17+
- "kind/dependencies"
18+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
19+
change-title-escapes: '\<*_&'
20+
version-resolver:
21+
minor:
22+
labels:
23+
- "kind/feature"
24+
default: patch
25+
prerelease: false
26+
template: |
27+
$CHANGES
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: OSS Governance
2+
3+
on:
4+
pull_request_target:
5+
types: [synchronize, opened, labeled, unlabeled]
6+
issues:
7+
types: [opened, labeled, unlabeled]
8+
issue_comment:
9+
types: [created]
10+
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
15+
statuses: write
16+
checks: write
17+
18+
jobs:
19+
Bot:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: BirthdayResearch/oss-governance-bot@52367df5cdbc6ede6126a1db7a663f22cffe739c
23+
with:
24+
github-token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: OSS Governance
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, synchronize]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
statuses: write
12+
checks: write
13+
14+
jobs:
15+
Labeler:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: fuxingloh/multi-labeler@67208f475e36fc4f95e3d5a2d4e450433f288be8
19+
with:
20+
github-token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
21+
config-path: .github/labeler.yml

0 commit comments

Comments
 (0)