From 55e109f059de0ac3bf4fdaea12f50ca35ad4fc51 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Mon, 26 May 2025 10:10:05 +0100 Subject: [PATCH 1/3] Document :ticket_slug parameter on the create check-ins endpoint. --- data/checkins.json | 7 +++++++ source/includes/checkin_api/_checkins.md.erb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data/checkins.json b/data/checkins.json index de2af229a54..ca38189a48d 100644 --- a/data/checkins.json +++ b/data/checkins.json @@ -42,6 +42,13 @@ "required": false, "parameter": true }, + "ticket_slug": { + "description": "The `slug` of the ticket that was checked-in.", + "type": "string", + "read_only": false, + "required": false, + "parameter": true + }, "deleted_at": { "description": "The date the checkin was deleted.", "type": "datetime", diff --git a/source/includes/checkin_api/_checkins.md.erb b/source/includes/checkin_api/_checkins.md.erb index 52a374b148b..7909ca21026 100644 --- a/source/includes/checkin_api/_checkins.md.erb +++ b/source/includes/checkin_api/_checkins.md.erb @@ -47,7 +47,7 @@ Create a new `Checkin` belonging to the given `CheckinList`. ### Parameters -You must pass in one of either `ticket_id` or `ticket_reference`. +You must pass in one of either `ticket_id`, `ticket_reference` or `ticket_slug`. <%= partial "includes/shared/parameters", locals: { parameters: data.checkins.attributes.select { |name,attribute| attribute["parameter"] } } %> From 1eb1c9ea5a0a55c1dadc33fd5c63ff1e1ad2db55 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Mon, 26 May 2025 10:27:19 +0100 Subject: [PATCH 2/3] Upgrade to actions/cache@v4, v2 is deprecated. --- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/dev_deploy.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8dad2aefdb3..d097e236fca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 767f3c5e523..3bc6f6b9fe1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: with: ruby-version: ${{ env.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index 198640a174b..a9d2a742c89 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -35,7 +35,7 @@ jobs: with: ruby-version: ${{ env.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} From e1349584dbf46391acf7238efeca3139e5dd5965 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Mon, 26 May 2025 10:42:44 +0100 Subject: [PATCH 3/3] Use Ruby 3.2 --- .github/workflows/dev_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index a9d2a742c89..24252aba1c3 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest env: - ruby-version: 2.5 + ruby-version: 3.2 steps: - uses: actions/checkout@v2