@sonar-autofix/github-action 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action.yml +12 -0
- package/index.js +3 -0
- package/package.json +6 -3
package/action.yml
CHANGED
|
@@ -31,6 +31,18 @@ inputs:
|
|
|
31
31
|
description: 'Branch name for autofix commits'
|
|
32
32
|
required: false
|
|
33
33
|
default: 'sonar-autofix'
|
|
34
|
+
git-base-branch:
|
|
35
|
+
description: 'Base branch for the pull request (default: main)'
|
|
36
|
+
required: false
|
|
37
|
+
default: ''
|
|
38
|
+
github-token:
|
|
39
|
+
description: 'GitHub token used to authenticate git push and PR creation. Falls back to the GITHUB_TOKEN environment variable provided by GitHub Actions.'
|
|
40
|
+
required: false
|
|
41
|
+
default: ''
|
|
42
|
+
git-username:
|
|
43
|
+
description: 'Git username for token-based authentication'
|
|
44
|
+
required: false
|
|
45
|
+
default: ''
|
|
34
46
|
max-iterations:
|
|
35
47
|
description: 'Maximum number of fix iterations'
|
|
36
48
|
required: false
|
package/index.js
CHANGED
|
@@ -49,6 +49,9 @@ async function run() {
|
|
|
49
49
|
},
|
|
50
50
|
git: {
|
|
51
51
|
branch: getInput('git-branch') || 'sonar-autofix',
|
|
52
|
+
baseBranch: getInput('git-base-branch') || undefined,
|
|
53
|
+
token: getInput('github-token') || undefined,
|
|
54
|
+
username: getInput('git-username') || undefined,
|
|
52
55
|
},
|
|
53
56
|
retry: {
|
|
54
57
|
maxIterations: parseInt(getInput('max-iterations') || '5', 10),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonar-autofix/github-action",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "GitHub Action wrapper for the Sonar Autofix tool",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,5 +13,8 @@
|
|
|
13
13
|
"action"
|
|
14
14
|
],
|
|
15
15
|
"author": "Sonar Autofix Team",
|
|
16
|
-
"license": "MIT"
|
|
17
|
-
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@sonar-autofix/core": "^0.2.0"
|
|
19
|
+
}
|
|
20
|
+
}
|