@waron97/prbot 2.1.0 → 2.3.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.
@@ -1,5 +1,11 @@
1
1
  {
2
- "permissions": {
3
- "allow": ["Bash(node *)"]
4
- }
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(node *)",
5
+ "Bash(npm install *)",
6
+ "Bash(npx eslint *)",
7
+ "Bash(npx prettier *)",
8
+ "Bash(npm ls *)"
9
+ ]
10
+ }
5
11
  }
@@ -0,0 +1,11 @@
1
+ /** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
2
+ const config = {
3
+ tabWidth: 4,
4
+ printWidth: 100,
5
+ singleQuote: true,
6
+ trailingComma: 'es5',
7
+ plugins: ['@ianvs/prettier-plugin-sort-imports'],
8
+ importOrder: ['<BUILTIN_MODULES>', '<THIRD_PARTY_MODULES>', '^../.*$', '^./.*$'],
9
+ };
10
+
11
+ export default config;
package/README.md CHANGED
@@ -24,23 +24,23 @@ source ~/.bashrc
24
24
 
25
25
  ### Config keys
26
26
 
27
- | Key | Description |
28
- |-----|-------------|
29
- | `ADDONS_PATH` | Path to local Odoo addons repo |
30
- | `KC_URL` | Keycloak token endpoint URL |
31
- | `KC_USER` | Keycloak username |
32
- | `KC_PASSWORD` | Keycloak password |
33
- | `KC_ID` | Keycloak client ID |
34
- | `KC_SECRET` | Keycloak client secret |
35
- | `RIP_URL` | RIP API base URL |
36
- | `TRIDENT_URL` | Trident (Odoo) instance URL |
37
- | `TRIDENT_UID` | Trident user ID |
38
- | `TRIDENT_TOKEN` | Trident API token |
39
- | `TRIDENT_DB` | Trident database name |
40
- | `DEVOPS_TOKEN` | Azure DevOps personal access token |
41
- | `DEVOPS_ORG` | Azure DevOps organization |
42
- | `DEVOPS_PROJECT` | Azure DevOps project |
43
- | `DEVOPS_REPO` | Azure DevOps repository name |
27
+ | Key | Description |
28
+ | ---------------------- | -------------------------------------------------------- |
29
+ | `ADDONS_PATH` | Path to local Odoo addons repo |
30
+ | `KC_URL` | Keycloak token endpoint URL |
31
+ | `KC_USER` | Keycloak username |
32
+ | `KC_PASSWORD` | Keycloak password |
33
+ | `KC_ID` | Keycloak client ID |
34
+ | `KC_SECRET` | Keycloak client secret |
35
+ | `RIP_URL` | RIP API base URL |
36
+ | `TRIDENT_URL` | Trident (Odoo) instance URL |
37
+ | `TRIDENT_UID` | Trident user ID |
38
+ | `TRIDENT_TOKEN` | Trident API token |
39
+ | `TRIDENT_DB` | Trident database name |
40
+ | `DEVOPS_TOKEN` | Azure DevOps personal access token |
41
+ | `DEVOPS_ORG` | Azure DevOps organization |
42
+ | `DEVOPS_PROJECT` | Azure DevOps project |
43
+ | `DEVOPS_REPO` | Azure DevOps repository name |
44
44
  | `AUTOPR_TARGET_BRANCH` | Target branch for auto-created PRs (default: `15.0-dev`) |
45
45
 
46
46
  ## Commands
@@ -55,8 +55,8 @@ prbot pr config_wf_contestazione
55
55
 
56
56
  Options:
57
57
 
58
- | Flag | Description |
59
- |------|-------------|
58
+ | Flag | Description |
59
+ | -------------------- | ------------------------------------------------------------------------- |
60
60
  | `-b, --bump <level>` | Also bump manifest version after commit. Level: `major`, `minor`, `patch` |
61
61
 
62
62
  ```bash
@@ -81,11 +81,11 @@ prbot changelog 42 -m "Fix invoice state race condition" -t 1234 -t 5678 -j TEST
81
81
 
82
82
  Options:
83
83
 
84
- | Flag | Description |
85
- |------|-------------|
84
+ | Flag | Description |
85
+ | ---------------------- | --------------------------------------------- |
86
86
  | `-m, --message <text>` | Changelog entry message (prompted if omitted) |
87
- | `-t, --trident <code>` | Trident issue code (repeatable) |
88
- | `-j, --jira <code>` | JIRA issue code (repeatable) |
87
+ | `-t, --trident <code>` | Trident issue code (repeatable) |
88
+ | `-j, --jira <code>` | JIRA issue code (repeatable) |
89
89
 
90
90
  ### `prbot autopr`
91
91
 
@@ -107,13 +107,13 @@ prbot autopr -j JIRA-99 --branch my-branch
107
107
 
108
108
  Options:
109
109
 
110
- | Flag | Description |
111
- |------|-------------|
112
- | `-t, --trident <id>` | Trident task ID (repeatable) |
113
- | `-j, --jira <code>` | JIRA issue code (repeatable) |
114
- | `-m, --message <text>` | Changelog entry message (prompted if omitted) |
115
- | `-b, --branch <name>` | Branch name (default: `autopr_<first-task-id>` or `autopr_<first-jira>`) |
116
- | `-n, --name <text>` | PR title (default: Trident task name) |
110
+ | Flag | Description |
111
+ | ---------------------- | ------------------------------------------------------------------------ |
112
+ | `-t, --trident <id>` | Trident task ID (repeatable) |
113
+ | `-j, --jira <code>` | JIRA issue code (repeatable) |
114
+ | `-m, --message <text>` | Changelog entry message (prompted if omitted) |
115
+ | `-b, --branch <name>` | Branch name (default: `autopr_<first-task-id>` or `autopr_<first-jira>`) |
116
+ | `-n, --name <text>` | PR title (default: Trident task name) |
117
117
 
118
118
  ### `prbot init`
119
119
 
@@ -0,0 +1,16 @@
1
+ import js from '@eslint/js';
2
+ import { defineConfig } from 'eslint/config';
3
+ import globals from 'globals';
4
+
5
+ export default defineConfig(
6
+ js.configs.recommended,
7
+ { ignores: ['node_modules'] },
8
+ {
9
+ languageOptions: {
10
+ globals: globals.node,
11
+ },
12
+ rules: {
13
+ 'no-console': 'warn',
14
+ },
15
+ }
16
+ );