From d22c3074b745a07474a7dc1e06dd58908994bf37 Mon Sep 17 00:00:00 2001 From: Dan Finn Date: Tue, 27 Jan 2026 11:31:37 -0500 Subject: [PATCH 1/3] clean up merge reaction --- .github/workflows/slack-merge-reaction.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/slack-merge-reaction.yml diff --git a/.github/workflows/slack-merge-reaction.yml b/.github/workflows/slack-merge-reaction.yml new file mode 100644 index 0000000..8c71d8b --- /dev/null +++ b/.github/workflows/slack-merge-reaction.yml @@ -0,0 +1,18 @@ +name: Add Slack Merge Reaction + +on: + pull_request: + types: [closed] + +jobs: + add-merge-reaction: + if: github.event.pull_request.merged == true + uses: digitalocean/docs-automation/.github/workflows/slack-merge-reaction.yml@main + with: + pr_url: ${{ github.event.pull_request.html_url }} + pr_number: ${{ github.event.pull_request.number }} + merged_by: ${{ github.event.pull_request.merged_by.login }} + merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.PDOCS_SLACK_BOT_TOKEN }} + SLACK_CHANNEL_ID: ${{ secrets.PDOCS_SLACK_CHANNEL_ID }} From fab4ec70ff808ac801a59ea6981cff9c1f8675e5 Mon Sep 17 00:00:00 2001 From: Dan Finn Date: Wed, 28 Jan 2026 13:20:04 -0500 Subject: [PATCH 2/3] Remove invalid if condition from reusable workflow call --- .github/workflows/slack-merge-reaction.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/slack-merge-reaction.yml b/.github/workflows/slack-merge-reaction.yml index cfebbe0..24f4d1f 100644 --- a/.github/workflows/slack-merge-reaction.yml +++ b/.github/workflows/slack-merge-reaction.yml @@ -17,7 +17,6 @@ on: jobs: add-merge-reaction: - if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' uses: digitalocean/docs-automation/.github/workflows/slack-merge-reaction.yml@main with: pr_url: ${{ inputs.pr_url || github.event.pull_request.html_url }} From f1fd285d6aeb1e7f1c1f18d62471280a69b17729 Mon Sep 17 00:00:00 2001 From: Dan Finn Date: Wed, 28 Jan 2026 13:48:43 -0500 Subject: [PATCH 3/3] Add workflow access debug --- .../debug-docs-automation-access.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/debug-docs-automation-access.yml diff --git a/.github/workflows/debug-docs-automation-access.yml b/.github/workflows/debug-docs-automation-access.yml new file mode 100644 index 0000000..4e6b833 --- /dev/null +++ b/.github/workflows/debug-docs-automation-access.yml @@ -0,0 +1,23 @@ +name: Debug Docs-Automation Access + +on: + workflow_dispatch: + +jobs: + access-check: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Check access to docs-automation workflow file + env: + TARGET_URL: https://api.github.com/repos/digitalocean/docs-automation/contents/.github/workflows/slack-merge-reaction.yml?ref=main + run: | + echo "Requesting: $TARGET_URL" + STATUS=$(curl -s -o /tmp/resp.json -w "%{http_code}" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github+json" \ + "$TARGET_URL") + echo "HTTP status: $STATUS" + echo "Response:" + cat /tmp/resp.json