Skip to content

Commit 9f59fc2

Browse files
committed
Merge remote-tracking branch 'upstream/test-redirect-gh-action' into regex
2 parents 45e4afc + 0776702 commit 9f59fc2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ JIRA - <https://jira.mongodb.org/browse/DOCSP-NNNNN>
1515
- [ ] Did you run a grammar-check?
1616
- [ ] Are all the links working?
1717
- [ ] Are the [facets and meta keywords](https://wiki.corp.mongodb.com/display/DE/Docs+Taxonomy) accurate?
18-
- [ ] Are the page titles greater than 20 characters long and [SEO relevant](https://docs.google.com/spreadsheets/d/1Wkt0-5z04KmcMNscN5bjUKnzwWAtMq9VESp-Lz6r2o8/edit?usp=sharing)?
19-
- [ ] Did you add redirects?
18+
- [ ] Are the page titles greater than 20 characters long and [SEO relevant](https://docs.google.com/spreadsheets/d/1Wkt0-5z04KmcMNscN5bjUKnzwWAtMq9VESp-Lz6r2o8/edit?usp=sharing)?

.github/workflows/add-redirects.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
done
5555
echo "redirects=${deleted_redirects}" >> "$GITHUB_OUTPUT"
5656
- name: Update the PR Description
57+
if: steps.changed-files.outputs.renamed_files_count > 0 || steps.changed-files.outputs.deleted_files_count > 0
5758
uses: MongoCaleb/pr-description-action@master
5859
with:
5960
regex: "- \\[ \\] Did you add redirects\\?.*"
60-
appendContentOnMatchOnly: true
6161
regexFlags: is
6262
content: "- [ ] Did you add redirects?\n *Suggested redirects for moved/deleted files (replace &lt;v&gt; with earliest backport target version):*\n${{ steps.renamed-files.outputs.redirects }}${{ steps.deleted-files.outputs.redirects }}\n"
6363
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)