ci: Align pull_request_template with the main repo + upgrade CI (#155)

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison
2024-04-28 10:30:32 +08:00
committed by GitHub
parent 2c14c6e22d
commit 95cd1ab1c0
12 changed files with 31 additions and 39 deletions
-10
View File
@@ -1,10 +0,0 @@
{
"LABEL": {
"name": "Invalid PR Title",
"color": "B60205"
},
"CHECKS": {
"regexp": "^(feat|fix|test|refactor|chore|style|docs|perf|build|ci|revert)(\\(.*\\))?:.*",
"ignoreLabels" : ["ignore-title"]
}
}
+4 -4
View File
@@ -1,8 +1,10 @@
I hereby agree to the terms of the [GreptimeDB CLA](https://gist.github.com/xtang/6378857777706e568c1949c7578592cc) I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention? ## What's changed and what's your intention?
_PLEASE DO NOT LEAVE THIS EMPTY !!!_ __!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what the changes are in this PR and why they are needed: Please explain IN DETAIL what the changes are in this PR and why they are needed:
@@ -15,5 +17,3 @@ Please explain IN DETAIL what the changes are in this PR and why they are needed
- [ ] I have written the necessary comments. - [ ] I have written the necessary comments.
- [ ] I have added the necessary unit tests and integration tests. - [ ] I have added the necessary unit tests and integration tests.
## Refer to a related PR or issue link (optional)
+2 -2
View File
@@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
name: license-header-check name: license-header-check
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Check License Header - name: Check License Header
uses: korandoru/hawkeye@v3 uses: korandoru/hawkeye@v5
+9 -11
View File
@@ -16,8 +16,8 @@ jobs:
name: Spell Check with Typos name: Spell Check with Typos
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: crate-ci/typos@v1.0.4 - uses: crate-ci/typos@master
check: check:
name: Check name: Check
@@ -25,12 +25,12 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v3 uses: actions/setup-go@v5
with: with:
go-version: "1.18.4" go-version: "1.18.4"
- uses: arduino/setup-protoc@v1 - uses: arduino/setup-protoc@v3
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
@@ -45,16 +45,14 @@ jobs:
make go make go
test $(git status --porcelain=v1 | wc -l) -eq 0 || (echo "Fail: generated go protobuf in github action is different from pushed ones" ; exit 1) test $(git status --porcelain=v1 | wc -l) -eq 0 || (echo "Fail: generated go protobuf in github action is different from pushed ones" ; exit 1)
fmt: fmt:
name: Rustfmt name: Rustfmt
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v1 - uses: arduino/setup-protoc@v3
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
@@ -72,8 +70,8 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v1 - uses: arduino/setup-protoc@v3
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
+3 -2
View File
@@ -10,12 +10,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Git Repo - name: Checkout Git Repo
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Set up JDK 1.8 - name: Set up JDK 1.8
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 1.8 java-version: 1.8
distribution: 'zulu'
server-id: ossrh server-id: ossrh
server-username: MAVEN_USERNAME server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD server-password: MAVEN_PASSWORD
+2 -4
View File
@@ -1,4 +1,4 @@
name: "PR Title Checker" name: "Semantic Pull Request"
on: on:
pull_request_target: pull_request_target:
types: types:
@@ -13,8 +13,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: thehanimo/pr-title-checker@v1.3.4 - uses: amannn/action-semantic-pull-request@v5
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr-title-checker-config.json"
+5
View File
@@ -0,0 +1,5 @@
[files]
extend-exclude = [
# Exclude all generated files
"**/greptime/v1/**",
]
+1 -1
View File
@@ -498,7 +498,7 @@ func (x *KeyValue) GetValue() []byte {
return nil return nil
} }
// Procedure identifer // Procedure identifier
type ProcedureId struct { type ProcedureId struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -5085,7 +5085,7 @@ java.lang.String defaultValue);
} }
/** /**
* <pre> * <pre>
* Procedure identifer * Procedure identifier
* </pre> * </pre>
* *
* Protobuf type {@code greptime.v1.meta.ProcedureId} * Protobuf type {@code greptime.v1.meta.ProcedureId}
@@ -5340,7 +5340,7 @@ java.lang.String defaultValue);
} }
/** /**
* <pre> * <pre>
* Procedure identifer * Procedure identifier
* </pre> * </pre>
* *
* Protobuf type {@code greptime.v1.meta.ProcedureId} * Protobuf type {@code greptime.v1.meta.ProcedureId}
+1 -1
View File
@@ -68,5 +68,5 @@ message KeyValue {
bytes value = 2; bytes value = 2;
} }
// Procedure identifer // Procedure identifier
message ProcedureId { bytes key = 1; } message ProcedureId { bytes key = 1; }
+1 -1
View File
@@ -14,7 +14,7 @@
syntax = "proto3"; syntax = "proto3";
package prometheus; package prometheus;
// GreptimeTeam modify the original go_package definition to make it constistent with the go package name. // GreptimeTeam modify the original go_package definition to make it consistent with the go package name.
// And we also remove the gogoproto dependency which is now deprecated. // And we also remove the gogoproto dependency which is now deprecated.
option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote"; option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote";
+1 -1
View File
@@ -14,7 +14,7 @@
syntax = "proto3"; syntax = "proto3";
package prometheus; package prometheus;
// GreptimeTeam modify the original go_package definition to make it constistent with the go package name. // GreptimeTeam modify the original go_package definition to make it consistent with the go package name.
// And we also remove the gogoproto dependency which is now deprecated. // And we also remove the gogoproto dependency which is now deprecated.
option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote"; option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote";