Skip to content

Commit a0ec667

Browse files
authored
DOC-755 Add link to commit that triggered the Cloud API spec update (#861)
1 parent d92fa0a commit a0ec667

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/get-cloud-api-spec.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
path: redpanda-docs
3535
token: ${{ env.ACTIONS_BOT_TOKEN }}
3636

37+
- name: Get commit SHA and build URL
38+
id: commit-info
39+
run: |
40+
COMMIT_SHA="${{ github.event.client_payload.commit_sha }}"
41+
COMMIT_URL="https://github.com/${{ github.event.repository.full_name }}/commit/${COMMIT_SHA}"
42+
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV
43+
echo "COMMIT_URL=${COMMIT_URL}" >> $GITHUB_ENV
44+
3745
- name: Install dependencies
3846
run: |
3947
cd ./redpanda-docs/scripts/fetch-from-github
@@ -53,6 +61,8 @@ jobs:
5361
path: redpanda-docs
5462
branch: update-branch-api
5563
title: "auto-docs: Update Cloud API spec"
56-
body: "This PR updates the OpenAPI spec file for the Cloud API."
64+
body: |
65+
This PR updates the OpenAPI spec file for the Cloud API.
66+
Triggered by commit: [${{ env.COMMIT_SHA }}](${{ env.COMMIT_URL }})
5767
labels: auto-docs
5868
reviewers: JakeSCahill, kbatuigas

0 commit comments

Comments
 (0)