Skip to content

Commit

Permalink
[script] update github workflow, add pr template (#819)
Browse files Browse the repository at this point in the history
  [script]update github workflow, add pr template

  [script]update github workflow

  [script]update github workflow

  update

  update
  • Loading branch information
tomsun28 authored Mar 31, 2023
1 parent 6781ae6 commit c8d4f49
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## What's changed?

<!-- Describe Your PR Here -->


## Checklist

- [ ] I have read the [Contributing Guide](https://hertzbeat.com/docs/others/contributing/)
- [ ] I have written the necessary doc or comment.
- [ ] I have added the necessary unit tests and all cases have passed.
11 changes: 7 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@
name: "CodeQL"

on:
schedule:
- cron: '21 13 * * 4'
pull_request:
branches: [ master, dev ]
paths:
- '**/*.java'
- '**/*.ts'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
fail-fast: true
matrix:
language: [ 'java' ]
language: [ 'java', 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public AlertSummary getAlertsSummary() {
}
}
long total = alertDao.count();
alertSummary.setTotal(total);
long dealNum = total - alertSummary.getPriorityCriticalNum()
- alertSummary.getPriorityEmergencyNum() - alertSummary.getPriorityWarningNum();
alertSummary.setDealNum(dealNum);
Expand Down

0 comments on commit c8d4f49

Please sign in to comment.