Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
fd011044
Commit
fd011044
authored
Mar 06, 2021
by
Lysandre
Browse files
Temporarily disable stale bot
parent
88a951e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
scripts/stale.py
scripts/stale.py
+10
-10
No files found.
scripts/stale.py
View file @
fd011044
...
@@ -42,13 +42,13 @@ def main():
...
@@ -42,13 +42,13 @@ def main():
and
not
any
(
label
.
name
.
lower
()
in
LABELS_TO_EXEMPT
for
label
in
issue
.
get_labels
())
and
not
any
(
label
.
name
.
lower
()
in
LABELS_TO_EXEMPT
for
label
in
issue
.
get_labels
())
):
):
print
(
"Closing"
,
issue
)
print
(
"Closing"
,
issue
)
issue
.
create_comment
(
#
issue.create_comment(
"This issue has been automatically marked as stale and been closed because it has not had "
#
"This issue has been automatically marked as stale and been closed because it has not had "
"recent activity. Thank you for your contributions.
\n\n
If you think this still needs to be addressed"
#
"recent activity. Thank you for your contributions.\n\nIf you think this still needs to be addressed"
" please comment on this thread."
#
" please comment on this thread."
)
#
)
issue
.
add_to_labels
(
"wontfix"
)
#
issue.add_to_labels("wontfix")
issue
.
edit
(
state
=
"closed"
)
#
issue.edit(state="closed")
elif
(
elif
(
len
(
issue
.
assignees
)
>
0
len
(
issue
.
assignees
)
>
0
and
(
dt
.
utcnow
()
-
issue
.
updated_at
).
days
>
21
and
(
dt
.
utcnow
()
-
issue
.
updated_at
).
days
>
21
...
@@ -58,9 +58,9 @@ def main():
...
@@ -58,9 +58,9 @@ def main():
print
(
f
"Issue
{
issue
.
number
}
. Pinging
{
assignee
.
name
}
with message"
)
print
(
f
"Issue
{
issue
.
number
}
. Pinging
{
assignee
.
name
}
with message"
)
print
(
f
"Hey @
{
assignee
.
login
}
, could you take a second look at this issue?"
)
print
(
f
"Hey @
{
assignee
.
login
}
, could you take a second look at this issue?"
)
issue
.
create_comment
(
#
issue.create_comment(
f
"Hey @
{
assignee
.
login
}
, could you take a second look at this issue?"
#
f"Hey @{assignee.login}, could you take a second look at this issue?"
)
#
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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