Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: addressed issues

Sheen Capadnganee23de2a19ce
diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.yml b/.github/ISSUE_TEMPLATE/1.bug_report.yml
index 5a31fc6270..7c0ec14822 100644
--- a/.github/ISSUE_TEMPLATE/1.bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/1.bug_report.yml
@@ -8,7 +8,7 @@ body:
label: Product
description: Which Infisical product is this bug related to?
options:
- - Platform (General/Multiple Products)
+ - Platform/Access controls/Other
- Secret Manager
- Certificate Manager (PKI)
- KMS
@@ -56,10 +56,10 @@ body:
required: false
- type: dropdown
- id: platform
+ id: deployment-type
attributes:
- label: Platform
- description: What platform are you experiencing the issue on?
+ label: Deployment Type
+ description: What deployment type are you experiencing the issue on?
options:
- Infisical Cloud
- Self-hosted
diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml
index 1fe8acbfaf..c95b43e417 100644
--- a/.github/workflows/issue-labeler.yml
+++ b/.github/workflows/issue-labeler.yml
@@ -15,35 +15,37 @@ jobs:
with:
script: |
const body = context.payload.issue.body || '';
-
+
const productLabels = {
- 'Platform (General/Multiple Products)': 'product:platform',
+ 'Platform/Access controls/Other': 'product:platform',
'Secret Manager': 'product:secret-manager',
'Certificate Manager (PKI)': 'product:pki',
'KMS': 'product:kms',
'Secret Scanning': 'product:secret-scanning',
'Privileged Access Manager (PAM)': 'product:pam'
};
-
- const platformLabels = {
- 'Infisical Cloud': 'platform:cloud',
- 'Self-hosted': 'platform:self-hosted'
+
+ const deploymentLabels = {
+ 'Infisical Cloud': 'deployment:cloud',
+ 'Self-hosted': 'deployment:self-hosted'
};
-
+
+ // Parse the Product field specifically (between "### Product" and next "###")
+ const productMatch = body.match(/### Product\s*\n\s*(.+?)(?=\n\s*###|\n\s*$)/s);
+ const productValue = productMatch ? productMatch[1].trim() : '';
+
+ // Parse the Deployment Type field specifically
+ const deploymentMatch = body.match(/### Deployment Type\s*\n\s*(.+?)(?=\n\s*###|\n\s*$)/s);
+ const deploymentValue = deploymentMatch ? deploymentMatch[1].trim() : '';
+
const labelsToAdd = [];
-
- for (const [product, label] of Object.entries(productLabels)) {
- if (body.includes(product)) {
- labelsToAdd.push(label);
- break;
- }
+
+ if (productValue && productLabels[productValue]) {
+ labelsToAdd.push(productLabels[productValue]);
}
-
- for (const [platform, label] of Object.entries(platformLabels)) {
- if (body.includes(platform)) {
- labelsToAdd.push(label);
- break;
- }
+
+ if (deploymentValue && deploymentLabels[deploymentValue]) {
+ labelsToAdd.push(deploymentLabels[deploymentValue]);
}
if (labelsToAdd.length > 0) {