Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a3c1b2

Browse files
authored
Devops (#4328)
* fix; update workflows and dependencies* feat: formatted all js,ts,md,json files using prettier* feat: Update JavaScript and TypeScript solutions
1 parentde02d98 commit5a3c1b2

File tree

1,132 files changed

+31263
-27625
lines changed

Some content is hidden

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

1,132 files changed

+31263
-27625
lines changed

‎.github/pull_request_template.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
[//]:#"Pull Request Template"
2-
[//]:#"Replace the placeholder values in the template below"
1+
[//]:#'Pull Request Template'
2+
[//]:#'Replace the placeholder values in the template below'
33

44
-**File(s) Modified**:_0001-two-sum.py, 0002-add-two-numbers.py, etc..._
55
-**Language(s) Used**:_python, javascript, etc..._
66
-**Submission URL**:_https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/_
77

8-
[//]:#"Getting the Submission URL"
9-
[//]:#"Go to the leetcode [`Submissions tab`](https://user-images.githubusercontent.com/71089234/180188604-b1ecaf90-bf27-4fd6-a559-5567aebf8930.png)"
10-
[//]:#"and [click on the `Accepted` status of your submission.](https://user-images.githubusercontent.com/71089234/180189321-1a48c33f-aa65-4b29-8aaa-685f4f5f8c9e.png)]"
11-
[//]:#"Finally copy the URL from the nav bar, it should look like https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/"
12-
8+
[//]:#'Getting the Submission URL'
9+
[//]:#'Go to the leetcode [`Submissions tab`](https://user-images.githubusercontent.com/71089234/180188604-b1ecaf90-bf27-4fd6-a559-5567aebf8930.png)'
10+
[//]:#'and [click on the `Accepted` status of your submission.](https://user-images.githubusercontent.com/71089234/180189321-1a48c33f-aa65-4b29-8aaa-685f4f5f8c9e.png)]'
11+
[//]:#'Finally copy the URL from the nav bar, it should look like https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/'
1312

1413
###Important
14+
1515
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

‎.github/workflows/build-readme.yml‎

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
11
name:Build readme file
22

33
on:
4-
#push:
5-
workflow_dispatch:
6-
schedule:
7-
-cron:'0 * * * *'
4+
workflow_dispatch:
5+
schedule:
6+
-cron:'0 * * * *'# Every hour
87

98
jobs:
10-
Build:
11-
runs-on:ubuntu-latest
12-
13-
steps:
14-
-uses:actions/checkout@v3
15-
with:
16-
ref:${{ github.head_ref }}
17-
fetch-depth:1
18-
19-
-name:Use Node.js (dependency)
20-
uses:actions/setup-node@v3
21-
with:
22-
node-version:16
23-
24-
-name:Completion Table
25-
run:node updateCompletionTable.js;
26-
27-
-name:Check for modified files
28-
id:git-check
29-
run:echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
30-
31-
-name:Push
32-
if:steps.git-check.outputs.modified == 'true'
33-
run:|
34-
git config --global user.email "71089234+Ahmad-A0@users.noreply.github.com"
35-
git config --global user.name "Bot-A0"
36-
git add .
37-
git commit -am "📜 Update README table (🛠️ from Github Actions)" ||true
38-
git push || git pull --rebase && git push
39-
40-
9+
Build:
10+
runs-on:ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version:[20.x]
15+
16+
steps:
17+
-name:Checkout Repository
18+
uses:actions/checkout@v4
19+
with:
20+
ref:${{ github.head_ref }}
21+
fetch-depth:1
22+
23+
-name:Use Node.js (dependency)
24+
uses:actions/setup-node@v4
25+
with:
26+
node-version:${{ matrix.node-version }}
27+
28+
-name:Completion Table
29+
run:node updateCompletionTable.js;
30+
31+
-name:Check for modified files
32+
id:git-check
33+
run:echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
34+
35+
-name:Push
36+
if:steps.git-check.outputs.modified == 'true'
37+
run:|
38+
git config --global user.email "71089234+Ahmad-A0@users.noreply.github.com"
39+
git config --global user.name "Bot-A0"
40+
git add .
41+
git commit -am "📜 Update README table (🛠️ from Github Actions)" ||true
42+
git push || git pull --rebase && git push

‎.github/workflows/format.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,27 @@ name: Format Files
1010
# typescript - prettier
1111

1212
on:
13-
# pull_request_target:
14-
# types: [opened, synchronize]
1513
workflow_dispatch:
14+
pull_request_target:
15+
types:[opened, synchronize, reopened]
1616

1717
jobs:
1818
Format:
1919
runs-on:ubuntu-latest
2020

2121
strategy:
2222
matrix:
23-
node-version:[16.x]
23+
node-version:[20.x]
2424

2525
steps:
26-
-uses:actions/checkout@v3
26+
-name:Checkout Repository
27+
uses:actions/checkout@v4
2728
with:
2829
ref:${{ github.head_ref }}
2930
fetch-depth:1
3031

3132
-name:Use Node.js (dependency)
32-
uses:actions/setup-node@v1
33+
uses:actions/setup-node@v4
3334
with:
3435
node-version:${{ matrix.node-version }}
3536

@@ -62,4 +63,4 @@ jobs:
6263
git config --global user.name "Bot-A0"
6364
git add .
6465
git commit -m "🎨 Format files (🛠️ from Github Actions)" ||true
65-
git push ||true
66+
git push ||true

‎.gitignore‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
.metals
3-
.vscode
3+
.vscode
4+
.idea
5+
node_modules

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp