Skip to content

Commit a4b7767

Browse files
felicitymayheiskr
andauthored
Aim to fix output for stale action (#56747)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
1 parent 1b5cdf9 commit a4b7767

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/needs-sme-stale-check.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
stale-pr-message: 'This is a gentle reminder for the docs team that this PR is waiting for technical review by a subject matter expert.'
3030
stale-pr-label: 'Waiting on SME review'
3131
days-before-pr-close: -1 # never close
32-
staled-issues-prs: true # report issues and PRs that were commented on as stale in the output
33-
closed-issues-prs: true # report issues and PRs that were closed in the output - should always be `0` for this workflow
32+
33+
- name: Print outputs
34+
run: echo "Staled issues/PRs:${{ steps.stale.outputs.staled-issues-prs || '0' }}, Closed issues/PRs:${{ steps.stale.outputs.closed-issues-prs || '0' }}"
3435

3536
- name: Check out repo
3637
if: ${{ failure() }}

.github/workflows/no-response.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
if you have the information we requested, or open an [issue](https://github.com/github/docs/issues/new/choose)
5353
to describe your changes. Then we can reopen this PR and begin the review process.
5454
55-
staled-issues-prs: true # report issues and PRs that were commented on as stale in the output
56-
closed-issues-prs: true # report issues and PRs that were closed in the output
55+
- name: Print outputs
56+
run: echo "Staled issues/PRs:${{ steps.stale.outputs.staled-issues-prs || '0' }}, Closed issues/PRs:${{ steps.stale.outputs.closed-issues-prs || '0' }}"
5757

5858
- name: Check out repo
5959
if: ${{ failure() }}

.github/workflows/stale.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ name: Stale check for stalled pull requests in the docs-internal repository
77
on:
88
schedule:
99
- cron: '20 16 * * 1' # Run each Monday at 16:20 UTC / 8:20 PST
10+
push:
11+
paths:
12+
- .github/workflows/stale.yml
1013

1114
permissions:
1215
contents: read
1316
pull-requests: write
17+
issues: write
1418

1519
jobs:
1620
stale:
@@ -28,8 +32,9 @@ jobs:
2832
close-pr-label: 'Closed as inactive'
2933

3034
operations-per-run: 150
31-
staled-issues-prs: true # report PRs that were commented on as stale in the output
32-
closed-issues-prs: true # report PRs that were closed in the output
35+
36+
- name: Print outputs
37+
run: echo "Staled PRs:${{ steps.stale.outputs.staled-issues-prs || '0' }}, Closed PRs:${{ steps.stale.outputs.closed-issues-prs || '0' }}"
3338

3439
- name: Check out repo
3540
if: ${{ failure() }}

.github/workflows/triage-stale-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ jobs:
6767
stale-pr-message: 'This is a gentle reminder for the docs team that this pull request is waiting for review.'
6868
stale-pr-label: 'Waiting on Docs team review'
6969

70-
staled-issues-prs: true # report issues and PRs that were commented on as stale in the output
71-
closed-issues-prs: true # report issues and PRs that were closed in the output
70+
- name: Print outputs
71+
run: echo "Staled issues/PRs:${{ steps.stale.outputs.staled-issues-prs || '0' }}, Closed issues/PRs:${{ steps.stale.outputs.closed-issues-prs || '0' }}"
7272

7373
- name: Check out repo
7474
if: ${{ failure() }}

0 commit comments

Comments
 (0)