You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all please bear with me I'm a beginner when it comes to github (actions).
What I want:
Pretty much everything which its doing by default, EXCEPT that the bot put any issue into stale by itself. I want to manually add a stale label myself to an issue. Then a bot should immediately place a comment, that the issue is marked for stale etc. And the bot should close the issue after 7 days. If someone replies the bot should automatically remove the stale label. The desired behavior is (almost?) identical to https://github.com/dotnet/runtime repo.
My problem:
When added the label nothing happend. (I know this makes sense because my workflow is set to run every 30 minutes. But I dont know how to change it to react on labeled an issue AND to run every 30 minutes which I expect is necessary to auto close stale issues). But even after its first run it did not add the comment to the issue I've marked as stale.
Workflow Log (of this particular issue):
[#477] Found this issue last updated at: 2024-01-14T09:10:07Z
[#477] The option only-labels ([https://github.com/actions/stale#only-labels)](https://github.com/actions/stale#only-labels%E2%80%8B)) was not specified
[#477] └── Continuing the process for this issue
[#477] Days before issue stale: -1
[#477] The issue is not closed nor locked. Trying to remove the close label...
[#477] ├── The close-issue-label ([https://github.com/actions/stale#close-issue-label)](https://github.com/actions/stale#close-issue-label%E2%80%8B)) option was not set
[#477] └── Skipping the removal of the close label
[#477] This issue has a stale label
[#477] The option any-of-labels ([https://github.com/actions/stale#any-of-labels)](https://github.com/actions/stale#any-of-labels%E2%80%8B)) was not specified
[#477] └── Continuing the process for this issue
[#477] This issue has no milestone
[#477] └── Skip the milestones checks
[#477] This issue has no assignee
[#477] └── Skip the assignees checks
[#477] This issue is already stale
[#4[77](https://github.com/0x90d/videoduplicatefinder/actions/runs/7518364735/job/20465617659#step:2:80)] Checking for label on this issue
[#477] Issue marked stale on: 2024-01-14T09:10:07Z
[#477] Checking for comments on issue since: 2024-01-14T09:10:07Z
[#477] Comments that are not the stale comment or another bot: 0
[#477] Issue has been commented on: false
[#477] Days before issue close: 7
[#477] The option remove-stale-when-updated (https://github.com/actions/stale#remove-stale-when-updated) is: true
[#477] The stale label should not be removed
[#477] Issue has been updated since it was marked stale: false
[#477] Issue has been updated in the last 7 days: true
[#477] Stale issue is not old enough to close yet (hasComments? false, hasUpdate? true)
[#477] 2 operations consumed for this issue
My assumption is that the bot is able to do what I want and I'm just making mistakes here in which I was using the discussion in first place. Can anyone please tell me what I'm doing wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First of all please bear with me I'm a beginner when it comes to github (actions).
What I want:
Pretty much everything which its doing by default, EXCEPT that the bot put any issue into
stale
by itself. I want to manually add astale
label myself to an issue. Then a bot should immediately place a comment, that the issue is marked for stale etc. And the bot should close the issue after 7 days. If someone replies the bot should automatically remove thestale
label. The desired behavior is (almost?) identical to https://github.com/dotnet/runtime repo.What I did:
I created a workflow file: https://github.com/0x90d/videoduplicatefinder/blob/master/.github/workflows/stale.yml
I've created a label
stale
and added it to an issue: 0x90d/videoduplicatefinder#477My problem:
When added the label nothing happend. (I know this makes sense because my workflow is set to run every 30 minutes. But I dont know how to change it to react on
labeled an issue
AND to run every 30 minutes which I expect is necessary to auto close stale issues). But even after its first run it did not add the comment to the issue I've marked asstale
.Workflow Log (of this particular issue):
My assumption is that the bot is able to do what I want and I'm just making mistakes here in which I was using the discussion in first place. Can anyone please tell me what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions