Skip to content

Commit dce83aa

Browse files
committed
Merge branch 'develop'
2 parents 2237d8f + 1118379 commit dce83aa

File tree

5 files changed

+71
-5
lines changed

5 files changed

+71
-5
lines changed

.github/dependabot.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Basic dependabot.yml file with
2+
# https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates#example-dependabotyml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "monthly"
10+
timezone: "Asia/Hong_Kong"
11+
target-branch: "develop"
12+
commit-message:
13+
prefix: "ci"
14+
rebase-strategy: "auto"

.github/workflows/codeql.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
tags-ignore:
9+
- '**' #prevent double build on release tag
10+
pull_request:
11+
branches:
12+
- '**'
13+
schedule:
14+
- cron: "14 14 * * 0"
15+
16+
jobs:
17+
analyze:
18+
name: Analyze
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
language: [python]
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
38+
queries: +security-and-quality
39+
40+
- name: Autobuild
41+
uses: github/codeql-action/autobuild@v2
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v2
45+
with:
46+
category: "/language:${{ matrix.language }}"

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repo
12-
uses: actions/checkout@main
12+
uses: actions/checkout@v4
1313
- name: Setup Node.js version
14-
uses: actions/setup-node@main
14+
uses: actions/setup-node@v3
1515
with:
16-
node-version: 14.x
16+
node-version-file: '.nvmrc'
1717
- name: Generate release body
1818
run: |
1919
npx rexreplace "(#+ \[\d+\.\d+\.\d+].*?)#+ \[?\d+\.\d+\.\d+]?" "_" -s -M -G -m -o "CHANGELOG.md" > RELEASE_BODY.md

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Leetcode Daily Question Telegram Bot
22

3+
> **Warning**
4+
> End of Maintenance Notice (2023-10-29):
5+
> Visit [https://t.me/LeetcodeQustionOfToday/720](https://t.me/LeetcodeQustionOfToday/720) for more information.
6+
37
Fetch question of today from Leetcode's GraphQL API and send it to Telegram channel.
48

59
![Mockup](./docs/mockup.png)
@@ -31,14 +35,14 @@ Fetch question of today from Leetcode's GraphQL API and send it to Telegram chan
3135
##### NPM
3236

3337
```bash
34-
npm install serverless@2.63.0 --global
38+
npm install serverless@3 --global
3539
npm install
3640
```
3741

3842
##### Yarn
3943

4044
```bash
41-
yarn global add serverless@2.63.0
45+
yarn global add serverless@3
4246
yarn
4347
```
4448

serverless.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ package:
2727
- '!.github/**'
2828
- '!.editorconfig'
2929
- '!.nvmrc'
30+
- '!*.md'
31+
- '!Makefile'
3032

3133
# Handling python packages: https://www.serverless.com/blog/serverless-python-packaging
3234
plugins:

0 commit comments

Comments
 (0)