Skip to content

Commit 26f6801

Browse files
fix: add a comment when pr documentation is removed (#1064)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent f1e4d07 commit 26f6801

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc-deploy-dev/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ runs:
388388
shell: bash
389389
env:
390390
GITHUB_TOKEN: ${{ inputs.token }} # For gh CLI authentication
391+
CNAME: ${{ inputs.cname }}
391392
run: |
392393
if [[ -d "pull/" ]]; then
393394
for pr_number in $(ls pull/); do
@@ -403,6 +404,8 @@ runs:
403404
404405
# Remove pr directory if it is closed
405406
if [[ ${closed} == "true" ]]; then
407+
message="This PR has been closed. Documentation for this pull request will shortly be removed from its [former deployment address](https://${CNAME}/pull/${pr_number})."
408+
gh pr comment "${pr_number}" --body "${message}"
406409
echo "Removing directory ${pr_number}..."
407410
rm -rf "pull/${pr_number}"
408411
fi

doc/source/changelog/1064.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a comment when pr documentation is removed

0 commit comments

Comments
 (0)