Skip to content

Commit e2208f8

Browse files
committed
feat: files
0 parents  commit e2208f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1005
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 85
10+
trim_trailing_whitespace = true

.editorconfig-checker.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"exclude": [
3+
"CHANGELOG.md",
4+
"config.yml",
5+
"README.md",
6+
"semantic-pull-request-title.yaml"
7+
]
8+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @nikkeyl

.github/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
newIssueWelcomeComment: >
2+
Thanks for opening your first **Issue** here!
3+
Be sure to follow the **Issue template**!
4+
5+
newPRWelcomeComment: >
6+
Thanks for opening this **Pull Request**!
7+
Please check out our [Contributing Guidelines](https://github.com/archoleat/.github/blob/main/CONTRIBUTING.md).
8+
9+
firstPRMergeComment: >
10+
Congrats on merging your first **Pull Request**!

.github/dependabot.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: semiannually
8+
9+
- package-ecosystem: npm
10+
directory: /
11+
schedule:
12+
interval: semiannually
13+
versioning-strategy: increase
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto Merge Dependabot Pull Request
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
auto-merge-dependabot-pull-request:
14+
name: Auto Merge Dependabot Pull Request
15+
16+
if: ${{ github.actor == 'dependabot[bot]' }}
17+
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
env:
22+
PR_URL: ${{ github.event.pull_request.html_url }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
25+
steps:
26+
- name: Merge
27+
run: gh pr merge $PR_URL --auto --squash

.github/workflows/commitlint.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Commit Lint
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
commit-lint:
11+
name: Commit Lint
12+
13+
if: ${{ github.actor != 'dependabot[bot]' }}
14+
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
21+
22+
- name: Set Up Bun
23+
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
24+
25+
- name: Install Dependencies
26+
run: bun i
27+
28+
- name: Extract Commit Message (Push)
29+
if: ${{ github.event_name }} == 'push'
30+
run: |
31+
git log -1 --pretty=%B > commit_message.txt
32+
33+
- name: Extract Commit Message (Pull Request)
34+
if: ${{ github.event_name }} == 'pull_request'
35+
run: |
36+
git show -s --format=%B > commit_message.txt
37+
38+
- name: Lint
39+
run: |
40+
COMMIT_MESSAGE=$(cat commit_message.txt)
41+
echo "$COMMIT_MESSAGE" | bun commitlint
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Pull Request
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
pull-requests: write
8+
9+
jobs:
10+
create-pull-request:
11+
name: Create Pull Request
12+
13+
if: ${{ github.actor != 'dependabot[bot]' }}
14+
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- name: Create Pull Request
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
PULL_REQUEST_BRANCH: main
23+
PULL_REQUEST_TITLE: ${{ github.event.head_commit.message }}
24+
uses: vsoch/pull-request-action@882391869b75196e039a732df05085312c456995
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Editorconfig
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
editorconfig:
16+
name: Editorconfig
17+
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
steps:
22+
- name: Checkout Repository
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
24+
25+
- name: Set Up Bun
26+
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
27+
28+
- name: Install Dependencies
29+
run: bun i
30+
31+
- name: Lint
32+
run: bun editorconfig-checker

0 commit comments

Comments
 (0)