Loading...
Loading...
Compare original and translation side by side
feat: add user authentication## Summary
Brief description of changes and motivation.
## Changes
- Bullet points of specific changes made
## Testing
- How the changes were tested
- Steps to reproduce/verify
## Related Issues
Closes #123
## Screenshots (if applicable)Closes #123Fixes #123#123feat: add user authentication## 摘要
变更内容及动机的简要说明。
## 变更详情
- 具体变更内容的要点列表
## 测试情况
- 变更的测试方式
- 复现/验证步骤
## 关联问题
Closes #123
## 截图(如适用)Closes #123Fixes #123#123blocking:suggestion:question:nit:praise:blocking:suggestion:question:nit:praise:blocking: This SQL query is vulnerable to injection.
Please use parameterized queries.
suggestion: Consider extracting this logic into a separate
function for better testability.
nit: Prefer `const` over `let` here since this value
is never reassigned.blocking: 该SQL查询存在注入风险。
请使用参数化查询。
suggestion: 考虑将此逻辑提取到单独的
函数中,提升可测试性。
nit: 此处建议使用`const`而非`let`,因为该值
不会被重新赋值。name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}jobs:
call-workflow:
uses: ./.github/workflows/reusable.yml
with:
environment: production
secrets: inheritjobs:
build:
timeout-minutes: 10name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}jobs:
call-workflow:
uses: ./.github/workflows/reusable.yml
with:
environment: production
secrets: inheritjobs:
build:
timeout-minutes: 10secretsuses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29GITHUB_TOKENpermissions:
contents: read
pull-requests: writesecretsuses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29GITHUB_TOKENpermissions:
contents: read
pull-requests: write.github/ISSUE_TEMPLATE/---
name: Bug Report
about: Report a bug
labels: bug
---.github/ISSUE_TEMPLATE/---
name: Bug Report
about: 提交Bug报告
labels: bug
---
**Feature Request:**
```markdown
---
name: Feature Request
about: Suggest a new feature
labels: enhancement
---
**功能请求:**
```markdown
---
name: Feature Request
about: 建议新功能
labels: enhancement
---undefinedundefinedbugenhancementdocumentationgood first issuehelp wantedpriority: highpriority: mediumpriority: lowstatus: in progressstatus: blockedbugenhancementdocumentationgood first issuehelp wantedpriority: highpriority: mediumpriority: lowstatus: in progressstatus: blockedundefinedundefinedundefinedundefinedname: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Auto-merge minor updates
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Auto-merge minor updates
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}