Skip to content

Commit 1a70400

Browse files
コード追加 (#1)
* コード追加 * 鳩は唐揚げ!(自動で直してあげたよ!) (#2) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2592e90 commit 1a70400

21 files changed

+23374
-1
lines changed

.github/workflows/close-pr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: close-pr
3+
4+
on:
5+
pull_request:
6+
types:
7+
- closed
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
# PR close時にCIが出したPRをcloseする
15+
close-pr:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/[email protected]
20+
- uses: actions/[email protected]
21+
with:
22+
cache: npm
23+
- run: npm ci --prefer-offline
24+
- uses: dev-hato/[email protected]
25+
with:
26+
github-token: ${{secrets.GITHUB_TOKEN}}
27+
repo-name: ${{ github.event.pull_request.head.repo.full_name }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: create-release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- .github/workflows/create-release.yml
10+
- action.yml
11+
12+
jobs:
13+
create-release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: dev-hato/[email protected]
17+
with:
18+
github-token: ${{secrets.GITHUB_TOKEN}}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: format-json-yml
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
format-json-yml:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/[email protected]
19+
with:
20+
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
- uses: ./
23+
with:
24+
github-token: ${{secrets.GITHUB_TOKEN}}
25+
repo-name: ${{ github.event.pull_request.head.repo.full_name }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: renovate-config-validator
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
renovate-config-validator:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/[email protected]
16+
- uses: actions/[email protected]
17+
with:
18+
cache: npm
19+
- run: npm ci --prefer-offline
20+
- run: npx renovate-config-validator

.github/workflows/super-linter.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
branches:
20+
- main
21+
pull_request:
22+
23+
###############
24+
# Set the Job #
25+
###############
26+
jobs:
27+
build:
28+
# Name the Job
29+
name: Lint Code Base
30+
# Set the agent to run on
31+
runs-on: ubuntu-latest
32+
33+
##################
34+
# Load all steps #
35+
##################
36+
steps:
37+
##########################
38+
# Checkout the code base #
39+
##########################
40+
- name: Checkout Code
41+
uses: actions/[email protected]
42+
with:
43+
# Full git history is needed to get a proper list
44+
# of changed files within `super-linter`
45+
fetch-depth: 0
46+
47+
- uses: actions/[email protected]
48+
with:
49+
cache: npm
50+
- run: npm ci --prefer-offline
51+
52+
################################
53+
# Run Linter against code base #
54+
################################
55+
- name: Lint Code Base
56+
uses: github/super-linter/[email protected]
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
LINTER_RULES_PATH: .
60+
PATH: /github/workspace/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/node_modules/.bin:/venvs/ansible-lint/bin:/venvs/black/bin:/venvs/cfn-lint/bin:/venvs/cpplint/bin:/venvs/flake8/bin:/venvs/isort/bin:/venvs/mypy/bin:/venvs/pylint/bin:/venvs/snakefmt/bin:/venvs/snakemake/bin:/venvs/sqlfluff/bin:/venvs/yamllint/bin:/venvs/yq/bin:/var/cache/dotnet/tools:/usr/share/dotnet
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: update-gitleaks
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
update-gitleaks:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/[email protected]
19+
with:
20+
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
- uses: actions/[email protected]
23+
with:
24+
cache: npm
25+
- name: Install packages
26+
run: npm ci --prefer-offline
27+
- uses: dev-hato/[email protected]
28+
with:
29+
github-token: ${{secrets.GITHUB_TOKEN}}
30+
super-linter-yml-file: .github/workflows/super-linter.yml
31+
repo-name: ${{ github.event.pull_request.head.repo.full_name }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: update-package
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
12+
update-package:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- uses: actions/[email protected]
19+
with:
20+
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
- uses: actions/[email protected]
23+
with:
24+
cache: npm
25+
- run: npm install
26+
- uses: dev-hato/[email protected]
27+
with:
28+
github-token: ${{secrets.GITHUB_TOKEN}}
29+
branch-name-prefix: fix-package
30+
pr-title-prefix: package.jsonやpackage-lock.jsonを直してあげたよ!
31+
repo-name: ${{ github.event.pull_request.head.repo.full_name }}

.gitignore

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
### VisualStudioCode template
2+
.vscode/*
3+
!.vscode/settings.json
4+
!.vscode/tasks.json
5+
!.vscode/launch.json
6+
!.vscode/extensions.json
7+
*.code-workspace
8+
9+
# Local History for Visual Studio Code
10+
.history/
11+
12+
### JetBrains template
13+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
14+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
15+
16+
# User-specific stuff
17+
.idea/**/workspace.xml
18+
.idea/**/tasks.xml
19+
.idea/**/usage.statistics.xml
20+
.idea/**/dictionaries
21+
.idea/**/shelf
22+
23+
# Generated files
24+
.idea/**/contentModel.xml
25+
26+
# Sensitive or high-churn files
27+
.idea/**/dataSources/
28+
.idea/**/dataSources.ids
29+
.idea/**/dataSources.local.xml
30+
.idea/**/sqlDataSources.xml
31+
.idea/**/dynamic.xml
32+
.idea/**/uiDesigner.xml
33+
.idea/**/dbnavigator.xml
34+
35+
# Gradle
36+
.idea/**/gradle.xml
37+
.idea/**/libraries
38+
39+
# Gradle and Maven with auto-import
40+
# When using Gradle or Maven with auto-import, you should exclude module files,
41+
# since they will be recreated, and may cause churn. Uncomment if using
42+
# auto-import.
43+
# .idea/artifacts
44+
# .idea/compiler.xml
45+
# .idea/jarRepositories.xml
46+
# .idea/modules.xml
47+
# .idea/*.iml
48+
# .idea/modules
49+
# *.iml
50+
# *.ipr
51+
52+
# CMake
53+
cmake-build-*/
54+
55+
# Mongo Explorer plugin
56+
.idea/**/mongoSettings.xml
57+
58+
# File-based project format
59+
*.iws
60+
61+
# IntelliJ
62+
out/
63+
64+
# mpeltonen/sbt-idea plugin
65+
.idea_modules/
66+
67+
# JIRA plugin
68+
atlassian-ide-plugin.xml
69+
70+
# Cursive Clojure plugin
71+
.idea/replstate.xml
72+
73+
# Crashlytics plugin (for Android Studio and IntelliJ)
74+
com_crashlytics_export_strings.xml
75+
crashlytics.properties
76+
crashlytics-build.properties
77+
fabric.properties
78+
79+
# Editor-based Rest Client
80+
.idea/httpRequests
81+
82+
# Android studio 3.1+ serialized cache file
83+
.idea/caches/build_file_checksums.ser
84+
85+
### Linux template
86+
*~
87+
88+
# temporary files which can be created if a process still has a handle open of a deleted file
89+
.fuse_hidden*
90+
91+
# KDE directory preferences
92+
.directory
93+
94+
# Linux trash folder which might appear on any partition or disk
95+
.Trash-*
96+
97+
# .nfs files are created when an open file is removed but is still being accessed
98+
.nfs*
99+
100+
### Vim template
101+
# Swap
102+
[._]*.s[a-v][a-z]
103+
!*.svg # comment out if you don't need vector files
104+
[._]*.sw[a-p]
105+
[._]s[a-rt-v][a-z]
106+
[._]ss[a-gi-z]
107+
[._]sw[a-p]
108+
109+
# Session
110+
Session.vim
111+
Sessionx.vim
112+
113+
# Temporary
114+
.netrwhist
115+
# Auto-generated tag files
116+
tags
117+
# Persistent undo
118+
[._]*.un~
119+
120+
### Windows template
121+
# Windows thumbnail cache files
122+
Thumbs.db
123+
Thumbs.db:encryptable
124+
ehthumbs.db
125+
ehthumbs_vista.db
126+
127+
# Dump file
128+
*.stackdump
129+
130+
# Folder config file
131+
[Dd]esktop.ini
132+
133+
# Recycle Bin used on file shares
134+
$RECYCLE.BIN/
135+
136+
# Windows Installer files
137+
*.cab
138+
*.msi
139+
*.msix
140+
*.msm
141+
*.msp
142+
143+
# Windows shortcuts
144+
*.lnk
145+
146+
### macOS template
147+
# General
148+
.DS_Store
149+
.AppleDouble
150+
.LSOverride
151+
152+
# Icon must end with two \r
153+
Icon
154+
155+
# Thumbnails
156+
._*
157+
158+
# Files that might appear in the root of a volume
159+
.DocumentRevisions-V100
160+
.fseventsd
161+
.Spotlight-V100
162+
.TemporaryItems
163+
.Trashes
164+
.VolumeIcon.icns
165+
.com.apple.timemachine.donotpresent
166+
167+
# Directories potentially created on remote AFP share
168+
.AppleDB
169+
.AppleDesktop
170+
Network Trash Folder
171+
Temporary Items
172+
.apdisk
173+

0 commit comments

Comments
 (0)