From aeac37948d842e5f6029f9855a521890ead83326 Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Tue, 20 Jan 2026 15:37:30 -0800 Subject: [PATCH 1/2] chore: Common workflows for GitHub -> Jira integration, copied from c2pa-rs --- .github/workflows/closing_ticket.yml | 18 ++++++++++++++++++ .github/workflows/labeling_ticket_done.yml | 19 +++++++++++++++++++ .github/workflows/labeling_ticket_todo.yml | 19 +++++++++++++++++++ .github/workflows/reopening_ticket.yml | 18 ++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 .github/workflows/closing_ticket.yml create mode 100644 .github/workflows/labeling_ticket_done.yml create mode 100644 .github/workflows/labeling_ticket_todo.yml create mode 100644 .github/workflows/reopening_ticket.yml diff --git a/.github/workflows/closing_ticket.yml b/.github/workflows/closing_ticket.yml new file mode 100644 index 00000000..f1fb6bdf --- /dev/null +++ b/.github/workflows/closing_ticket.yml @@ -0,0 +1,18 @@ +# This ensures that when a user manually closes a ticket in Jira, +# it will update the workflow labels appropriately. + +name: Closing ticket +on: + issues: + types: [closed] +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: 'gh issue edit "$NUMBER" --add-label "status: done" --remove-label "status: wip,status: todo,status: in progress,status: in test,status: not prioritized,status: blocked,status: api review,status: code review,status: design review,status: code complete,status: ready"' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} diff --git a/.github/workflows/labeling_ticket_done.yml b/.github/workflows/labeling_ticket_done.yml new file mode 100644 index 00000000..76278c5c --- /dev/null +++ b/.github/workflows/labeling_ticket_done.yml @@ -0,0 +1,19 @@ +# This ensures that when a ticket is labeled as Done in Jira, it will close the ticket on GitHub. + +name: Labeling ticket "Done" +on: + issues: + types: [labeled] +jobs: + label_issues: + runs-on: ubuntu-latest + if: | + contains(github.event.issue.labels.*.name, 'status: done') + permissions: + issues: write + steps: + - run: 'gh issue close "$NUMBER"' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} diff --git a/.github/workflows/labeling_ticket_todo.yml b/.github/workflows/labeling_ticket_todo.yml new file mode 100644 index 00000000..06e552c9 --- /dev/null +++ b/.github/workflows/labeling_ticket_todo.yml @@ -0,0 +1,19 @@ +# This ensures that when a ticket is not labeled as Done in Jira, it will re-open the ticket on GitHub. + +name: Labeling ticket "To Do" +on: + issues: + types: [labeled] +jobs: + label_issues: + runs-on: ubuntu-latest + if: | + !contains(github.event.issue.labels.*.name, 'status: done') + permissions: + issues: write + steps: + - run: 'gh issue reopen "$NUMBER"' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} diff --git a/.github/workflows/reopening_ticket.yml b/.github/workflows/reopening_ticket.yml new file mode 100644 index 00000000..8f984ccb --- /dev/null +++ b/.github/workflows/reopening_ticket.yml @@ -0,0 +1,18 @@ +# This ensures that when a ticket is reopened in Jira, it will update the +# workflow labels in GitHub appropriately. + +name: Reopening ticket +on: + issues: + types: [reopened] +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: 'gh issue edit "$NUMBER" --add-label "status: todo" --remove-label "status: wip,status: done,status: in progress,status: in test,status: not prioritized,status: blocked,status: api review,status: code review,status: design review,status: code complete,status: ready"' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} From 2ab1dd1121e3e81bbecc172834345eefe687e494 Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Thu, 19 Feb 2026 12:46:00 -0800 Subject: [PATCH 2/2] fix: Improper include syntax (CAI-11058) --- include/c2pa.hpp | 2 +- tests/test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c2pa.hpp b/include/c2pa.hpp index d270c8a3..9ccd1c4b 100644 --- a/include/c2pa.hpp +++ b/include/c2pa.hpp @@ -38,7 +38,7 @@ #include #include -#include +#include "c2pa.h" // NOOP for now, can use later to define static library #define C2PA_CPP_API diff --git a/tests/test.c b/tests/test.c index d5f65415..1ce98626 100644 --- a/tests/test.c +++ b/tests/test.c @@ -14,7 +14,7 @@ #include #include -#include +#include "c2pa.h" #include "file_stream.h" #include "unit_test.h"