From fd325dc18241628293c7d6a2756c3b44023a2493 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Mon, 10 Nov 2025 15:50:33 -0500 Subject: [PATCH 01/13] Add issue templates for bug reports and feature requests --- .github/ISSUE_TEMPLATE/bug_report.yml | 12 ++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..e40a28ea5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,12 @@ +name: 🐛 Bug report +description: Report a problem or unexpected behavior +labels: [bug] +body: + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Tell us what went wrong. + placeholder: Describe the bug here. + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000..3513c082d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,12 @@ +name: 💡 Feature request +description: Suggest an idea for improvement +labels: [enhancement] +body: + - type: textarea + id: idea + attributes: + label: Describe your idea + description: What would make the project better? + placeholder: Describe your feature request here. + validations: + required: true \ No newline at end of file From c9c73f2c418f88e9c1219a2cc91b923491ef3fa3 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Mon, 10 Nov 2025 20:53:11 -0500 Subject: [PATCH 02/13] Disable blank issues in issue templates --- .github/ISSUE_TEMPLATE/config.yml | 1 + c2pa-rs | 1 + 2 files changed, 2 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 160000 c2pa-rs diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..100012a72 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +.github/ISSUE_TEMPLATE/config.yml \ No newline at end of file diff --git a/c2pa-rs b/c2pa-rs new file mode 160000 index 000000000..5775d4fbc --- /dev/null +++ b/c2pa-rs @@ -0,0 +1 @@ +Subproject commit 5775d4fbc81a3d40bf07ba1b7c806e8224e7554f From 8450855fa5c448b9c009c63c086cdc144ea00488 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Mon, 10 Nov 2025 20:55:15 -0500 Subject: [PATCH 03/13] Disable blank issues in issue templates --- .github/ISSUE_TEMPLATE/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 100012a72..ec4bb386b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1 @@ -.github/ISSUE_TEMPLATE/config.yml \ No newline at end of file +blank_issues_enabled: false \ No newline at end of file From 1046eff672a235a11f6cedfc54c1c011ae61422d Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Mon, 10 Nov 2025 21:06:42 -0500 Subject: [PATCH 04/13] Updates --- .github/ISSUE_TEMPLATE/bug_report.yml | 3 ++- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e40a28ea5..60027d5dd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -9,4 +9,5 @@ body: description: Tell us what went wrong. placeholder: Describe the bug here. validations: - required: true \ No newline at end of file + required: true + \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ec4bb386b..3ba13e0ce 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1 @@ -blank_issues_enabled: false \ No newline at end of file +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 3513c082d..d271e1bf4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -9,4 +9,4 @@ body: description: What would make the project better? placeholder: Describe your feature request here. validations: - required: true \ No newline at end of file + required: true From 07a782ea7332d791795651bd63f8667dcdbaad61 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Mon, 10 Nov 2025 21:09:37 -0500 Subject: [PATCH 05/13] Updates --- .github/ISSUE_TEMPLATE/bug_report.yml | 3 +-- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- c2pa-rs | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) delete mode 160000 c2pa-rs diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 60027d5dd..e40a28ea5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -9,5 +9,4 @@ body: description: Tell us what went wrong. placeholder: Describe the bug here. validations: - required: true - \ No newline at end of file + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 3ba13e0ce..ec4bb386b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1 @@ -blank_issues_enabled: false +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index d271e1bf4..3513c082d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -9,4 +9,4 @@ body: description: What would make the project better? placeholder: Describe your feature request here. validations: - required: true + required: true \ No newline at end of file diff --git a/c2pa-rs b/c2pa-rs deleted file mode 160000 index 5775d4fbc..000000000 --- a/c2pa-rs +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5775d4fbc81a3d40bf07ba1b7c806e8224e7554f From 7b6a41254e52bac664a01a0759ba0f340550b153 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 10:44:23 -0500 Subject: [PATCH 06/13] Updates Others --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/ISSUE_TEMPLATE/others.yml | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/others.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e40a28ea5..abbf3cfe1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -9,4 +9,4 @@ body: description: Tell us what went wrong. placeholder: Describe the bug here. validations: - required: true \ No newline at end of file + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ec4bb386b..3ba13e0ce 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1 @@ -blank_issues_enabled: false \ No newline at end of file +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 3513c082d..d271e1bf4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -9,4 +9,4 @@ body: description: What would make the project better? placeholder: Describe your feature request here. validations: - required: true \ No newline at end of file + required: true diff --git a/.github/ISSUE_TEMPLATE/others.yml b/.github/ISSUE_TEMPLATE/others.yml new file mode 100644 index 000000000..5503510a0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/others.yml @@ -0,0 +1,14 @@ +name: 💬 Other +description: General inquiries, questions, or discussions +labels: [question] +body: + - type: textarea + id: details + attributes: + label: Details + description: Tell us what's on your mind. + placeholder: Describe your inquiry, question, or feedback here. + validations: + required: true + + From 4b61eb818c6f70ae25cb5a80e95caaba37392cfa Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 10:48:49 -0500 Subject: [PATCH 07/13] Added more info --- .github/ISSUE_TEMPLATE/bug_report.yml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index abbf3cfe1..354e4aefb 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -2,6 +2,40 @@ name: 🐛 Bug report description: Report a problem or unexpected behavior labels: [bug] body: + - type: dropdown + id: component + attributes: + label: Component + description: Which tool or component are you having problems with? + options: + - c2pa-rs (Rust SDK) + - c2patool (CLI tool) + - c2pa-c (C bindings) + - Other + validations: + required: true + - type: input + id: version + attributes: + label: Version + description: Which version are you using? + placeholder: e.g., v0.71.0 + validations: + required: true + - type: dropdown + id: platform + attributes: + label: Platform + description: Which platform are you using? + options: + - Linux + - macOS + - Windows + - iOS + - Android + - Other + validations: + required: true - type: textarea id: what-happened attributes: From 07c83eb7de8b81eb1c803f583c8ac8dcd740931f Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 10:53:36 -0500 Subject: [PATCH 08/13] Added Other text box --- .github/ISSUE_TEMPLATE/bug_report.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 354e4aefb..b1531c095 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -8,12 +8,18 @@ body: label: Component description: Which tool or component are you having problems with? options: - - c2pa-rs (Rust SDK) - - c2patool (CLI tool) - - c2pa-c (C bindings) + - c2pa-rs + - c2patool + - c2pa-c - Other validations: required: true + - type: input + id: component-other + attributes: + label: If Other, please specify + description: Which component are you using? + placeholder: e.g., Python bindings, Java SDK, etc. - type: input id: version attributes: From b8d2bcb99225a1b77323a993323dea154e4c1b8c Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 10:56:41 -0500 Subject: [PATCH 09/13] Line --- .github/ISSUE_TEMPLATE/others.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/others.yml b/.github/ISSUE_TEMPLATE/others.yml index 5503510a0..d85436014 100644 --- a/.github/ISSUE_TEMPLATE/others.yml +++ b/.github/ISSUE_TEMPLATE/others.yml @@ -11,4 +11,3 @@ body: validations: required: true - From 246d3f6e8c95c866e927e29622e3a62ff778f393 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 10:59:28 -0500 Subject: [PATCH 10/13] Line --- .github/ISSUE_TEMPLATE/others.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/others.yml b/.github/ISSUE_TEMPLATE/others.yml index d85436014..31bbd2c16 100644 --- a/.github/ISSUE_TEMPLATE/others.yml +++ b/.github/ISSUE_TEMPLATE/others.yml @@ -10,4 +10,3 @@ body: placeholder: Describe your inquiry, question, or feedback here. validations: required: true - From 32e079976a16f4df5a00303a6704f36fc34456e2 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 11:25:46 -0500 Subject: [PATCH 11/13] More info --- .github/ISSUE_TEMPLATE/bug_report.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b1531c095..51184b911 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -46,7 +46,15 @@ body: id: what-happened attributes: label: What happened? - description: Tell us what went wrong. - placeholder: Describe the bug here. + description: Describe what went wrong. + placeholder: Describe the actual behavior you observed. + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: What did you expect to happen? + description: Describe what you expected to happen instead. + placeholder: Describe the expected behavior. validations: required: true From 2429542227c9e99012c1dcc69d1b772d07999f6d Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 13:20:02 -0500 Subject: [PATCH 12/13] automation --- .github/workflows/auto-label-component.yml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/auto-label-component.yml diff --git a/.github/workflows/auto-label-component.yml b/.github/workflows/auto-label-component.yml new file mode 100644 index 000000000..f1e8ec3e5 --- /dev/null +++ b/.github/workflows/auto-label-component.yml @@ -0,0 +1,50 @@ +name: Auto-label by Component + +on: + issues: + types: [opened] + +jobs: + label-component: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Label issue based on component + uses: actions/github-script@v7 + with: + script: | + const issue = context.payload.issue; + const body = issue.body || ''; + + // Map component names to labels + const componentLabels = { + 'c2pa-rs': 'c2pa-rs', + 'c2patool': 'c2patool', + 'c2pa-c': 'c2pa-c' + }; + + // Extract component from issue body + const componentMatch = body.match(/### Component\s*\n\s*(.+)/); + + if (componentMatch) { + const component = componentMatch[1].trim(); + console.log(`Found component: ${component}`); + + // Check if component matches any of our known components + for (const [key, label] of Object.entries(componentLabels)) { + if (component.includes(key)) { + console.log(`Adding label: ${label}`); + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + labels: [label] + }); + break; + } + } + } else { + console.log('Component not found in issue body'); + } + From da555bbdea121de76ae7ac5b531c3080bef4fc29 Mon Sep 17 00:00:00 2001 From: Ribhav Hora Date: Tue, 11 Nov 2025 13:35:03 -0500 Subject: [PATCH 13/13] last change --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/auto-label-component.yml | 50 ---------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 .github/workflows/auto-label-component.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 51184b911..a8cfc9f4f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -46,7 +46,7 @@ body: id: what-happened attributes: label: What happened? - description: Describe what went wrong. + description: Describe what went wrong. Please attach example files if possible. placeholder: Describe the actual behavior you observed. validations: required: true diff --git a/.github/workflows/auto-label-component.yml b/.github/workflows/auto-label-component.yml deleted file mode 100644 index f1e8ec3e5..000000000 --- a/.github/workflows/auto-label-component.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Auto-label by Component - -on: - issues: - types: [opened] - -jobs: - label-component: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Label issue based on component - uses: actions/github-script@v7 - with: - script: | - const issue = context.payload.issue; - const body = issue.body || ''; - - // Map component names to labels - const componentLabels = { - 'c2pa-rs': 'c2pa-rs', - 'c2patool': 'c2patool', - 'c2pa-c': 'c2pa-c' - }; - - // Extract component from issue body - const componentMatch = body.match(/### Component\s*\n\s*(.+)/); - - if (componentMatch) { - const component = componentMatch[1].trim(); - console.log(`Found component: ${component}`); - - // Check if component matches any of our known components - for (const [key, label] of Object.entries(componentLabels)) { - if (component.includes(key)) { - console.log(`Adding label: ${label}`); - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - labels: [label] - }); - break; - } - } - } else { - console.log('Component not found in issue body'); - } -