Skip to content

Commit 17b5f39

Browse files
authored
Merge pull request #317 from chrheg/small-changes
2 parents d80819e + 5dc1169 commit 17b5f39

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ jobs:
9494
issues: write
9595

9696
steps:
97-
- uses: actions/checkout@v3
97+
- uses: actions/checkout@v4
9898

9999
- name: Run stale_repos tool
100-
uses: github/stale-repos@v1
100+
uses: github/stale-repos@v2
101101
env:
102102
GH_TOKEN: ${{ secrets.GH_TOKEN }}
103103
ORGANIZATION: ${{ secrets.ORGANIZATION }}
@@ -109,7 +109,7 @@ jobs:
109109
# This next step updates an existing issue. If you want a new issue every time, remove this step and remove the `issue-number: ${{ env.issue_number }}` line below.
110110
- name: Check for the stale report issue
111111
run: |
112-
ISSUE_NUMBER=$(gh search issues "Stale repository report" --match title --json number --jq ".[0].number")
112+
ISSUE_NUMBER=$(gh search issues "Stale-repository-report" --match title --json number --jq ".[0].number")
113113
echo "issue_number=$ISSUE_NUMBER" >> "$GITHUB_ENV"
114114
env:
115115
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -118,7 +118,7 @@ jobs:
118118
uses: peter-evans/create-issue-from-file@v5
119119
with:
120120
issue-number: ${{ env.issue_number }}
121-
title: Stale repository report
121+
title: Stale-repository-report
122122
content-filepath: ./stale_repos.md
123123
assignees: <YOUR_GITHUB_HANDLE_HERE>
124124
token: ${{ secrets.GITHUB_TOKEN }}
@@ -161,7 +161,7 @@ jobs:
161161
steps:
162162
- name: Run stale_repos tool
163163
id: stale-repos
164-
uses: github/stale-repos@v1
164+
uses: github/stale-repos@v2
165165
env:
166166
GH_TOKEN: ${{ secrets.GH_TOKEN }}
167167
ORGANIZATION: ${{ secrets.ORGANIZATION }}
@@ -210,7 +210,7 @@ jobs:
210210
org: [org1, org2]
211211
steps:
212212
- name: "run stale-repos"
213-
uses: github/stale-repos@v1
213+
uses: github/stale-repos@v2
214214
env:
215215
GH_TOKEN: ${{ secrets.GH_TOKEN }}
216216
ORGANIZATION: ${{ matrix.org }}
@@ -237,10 +237,10 @@ jobs:
237237
runs-on: ubuntu-latest
238238
239239
steps:
240-
- uses: actions/checkout@v3
240+
- uses: actions/checkout@v4
241241
242242
- name: Run stale_repos tool
243-
uses: github/stale-repos@v1
243+
uses: github/stale-repos@v2
244244
env:
245245
GH_APP_ID: ${{ secrets.GH_APP_ID }}
246246
GH_APP_INSTALLATION_ID: ${{ secrets.GH_APP_INSTALLATION_ID }}

stale_repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def set_repo_data(
386386
Potentially caused by ghost user."
387387
)
388388

389-
print(f"{repo.html_url}: {days_inactive} days inactive") # type: ignore
389+
print(f"{repo.html_url} {days_inactive} days inactive") # type: ignore
390390
return repo_data
391391

392392

test_stale_repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_get_inactive_repos_with_exempt_topics(self):
209209
expected_output = (
210210
f"Exempt topics: ['topic1', 'topic2']\n"
211211
f"https://github.com/example/repo is exempt from stale repo check\n"
212-
f"https://github.com/example/repo2: 30 days inactive\n"
212+
f"https://github.com/example/repo2 30 days inactive\n"
213213
f"Found 1 stale repos in {organization}\n"
214214
)
215215
self.assertEqual(expected_output, output)

0 commit comments

Comments
 (0)