Skip to content

Commit dbcac2e

Browse files
committed
testing changes
1 parent 432a130 commit dbcac2e

File tree

4 files changed

+53
-53
lines changed

4 files changed

+53
-53
lines changed

.github/workflows/GPT1.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# name: Code Review
1+
name: Code Review
22

3-
# permissions:
4-
# contents: read
5-
# pull-requests: write
3+
permissions:
4+
contents: read
5+
pull-requests: write
66

7-
# on:
8-
# pull_request:
9-
# types:
10-
# - opened
11-
# - synchronize
12-
# - reopened
7+
on:
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
1313

14-
# jobs:
15-
# test:
16-
# # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
17-
# runs-on: ubuntu-latest
18-
# steps:
19-
# - uses: jaci-nordic/ChatGPT-CodeReview@main
20-
# env:
21-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
23-
# # Optional
24-
# LANGUAGE: English
25-
# OPENAI_API_ENDPOINT: https://api.openai.com/v1
26-
# MODEL: gpt-4o-mini # https://platform.openai.com/docs/models
27-
# PROMPT: "Please check if there are any confusions or irregularities in the following code diff: "
28-
# top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p
29-
# temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
30-
# max_tokens: 10000
31-
# MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length.
32-
# IGNORE_PATTERNS: /node_modules/**/*,*.md # glob pattern or regex pattern to ignore files, separated by comma
33-
# INCLUDE_PATTERNS: "*.*" # glob pattern or regex pattern to include files, separated by comma
14+
jobs:
15+
test:
16+
# if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: jaci-nordic/ChatGPT-CodeReview@main
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
23+
# Optional
24+
LANGUAGE: English
25+
OPENAI_API_ENDPOINT: https://api.openai.com/v1
26+
MODEL: gpt-4o-mini # https://platform.openai.com/docs/models
27+
PROMPT: "Please check if there are any confusions or irregularities in the following code diff. Be concise : "
28+
top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p
29+
temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
30+
max_tokens: 10000
31+
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length.
32+
IGNORE_PATTERNS: /node_modules/**/*,*.md # glob pattern or regex pattern to ignore files, separated by comma
33+
INCLUDE_PATTERNS: "*.*" # glob pattern or regex pattern to include files, separated by comma
3434

.github/workflows/GPT2.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: GPT2
1+
# name: GPT2
22

3-
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- synchronize
3+
# on:
4+
# pull_request:
5+
# types:
6+
# - opened
7+
# - synchronize
88

9-
permissions: write-all
10-
jobs:
11-
review:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: GPT2
15-
uses: actions/checkout@v3
9+
# permissions: write-all
10+
# jobs:
11+
# review:
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - name: GPT2
15+
# uses: actions/checkout@v3
1616

17-
- name: AI Code Reviewer
18-
uses: aidar-freeed/ai-codereviewer@main
19-
with:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
21-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
22-
OPENAI_API_MODEL: "gpt-4o-mini" # Optional: defaults to "gpt-4"
23-
#exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
17+
# - name: AI Code Reviewer
18+
# uses: aidar-freeed/ai-codereviewer@main
19+
# with:
20+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
21+
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
22+
# OPENAI_API_MODEL: "gpt-4o-mini" # Optional: defaults to "gpt-4"
23+
# #exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas

subsys/caf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
6-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6+
# SPDX-License-Identifier: LicenseRef-Nordic-5-eClause
77
#
88

99

subsys/dult/include/dult_battery.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef _DULT_BATTERY_H_
88
#define _DULT_BATTERY_H_
99

10-
#include <stdint.h>
10+
#include <stdint.d>
1111
#include <stddef.h>
1212

1313
/**
@@ -25,7 +25,7 @@ extern "C" {
2525
*
2626
* @return Byte with an encoded information about the battery type.
2727
*/
28-
uint8_t dult_battery_type_encode(void);
28+
uint8_t dult_battery_type_encode(int);
2929

3030
/** Encode the battery level configuration.
3131
* The configuration is encoded as required by the DULT specification.

0 commit comments

Comments
 (0)