Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
omf-packages-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
omf-packages-main
Commits
0accc725
Commit
0accc725
authored
Jul 03, 2022
by
Pablo Santiago Blum de Aguiar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check-dead-repos.py: Check for documentation_url at the end
parent
5cbcd49d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
.github/workflows/check-dead-repos.py
.github/workflows/check-dead-repos.py
+3
-2
No files found.
.github/workflows/check-dead-repos.py
View file @
0accc725
...
...
@@ -27,8 +27,6 @@ except:
repo
=
None
if
not
repo
:
logging
.
error
(
"
%
s could not be read ❌"
,
sys
.
argv
[
1
])
elif
"documentation_url"
in
repo
:
logging
.
critical
(
"rate limit exceeded when reading
%
s"
,
sys
.
argv
[
1
])
elif
repo
.
get
(
"message"
,
""
)
==
"Moved Permanently"
:
logging
.
error
(
"
%
s has moved permanently ❌"
,
sys
.
argv
[
1
])
elif
repo
.
get
(
"message"
,
""
)
==
"Not Found"
:
...
...
@@ -37,6 +35,9 @@ elif repo.get("archived", False):
logging
.
error
(
"
%
s has been archived ❌"
,
sys
.
argv
[
1
])
elif
repo
.
get
(
"has_issues"
)
is
False
:
logging
.
error
(
"
%
s has issues disabled ❌"
,
sys
.
argv
[
1
])
elif
"documentation_url"
in
repo
:
message
=
repo
.
get
(
"message"
,
"🤷🏻♂️"
)
logging
.
critical
(
"'
%
s' when reading
%
s"
,
message
,
sys
.
argv
[
1
])
else
:
logging
.
info
(
"
%
s is okay ✅"
,
sys
.
argv
[
1
])
sys
.
exit
(
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment