Skip to content

Commit

Permalink
Merge branch 'main' into feature-play-zoomlogin
Browse files Browse the repository at this point in the history
  • Loading branch information
priyankarpal authored Oct 6, 2024
2 parents 251444d + ff2277c commit 39a2034
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/issue-unassign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Unassign inactive issues and add comment

on:
schedule:
- cron: '0 0 * * *' # Runs once daily
- cron: '0 * * * *' # Runs once daily
workflow_dispatch:

jobs:
Expand All @@ -17,7 +17,7 @@ jobs:
uses: dessant/issue-activity@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 7 # Set to 7 days of inactivity
days-before-stale: 0.04 # Set to 7 days of inactivity
stale-issue-message: 'This issue has been marked as inactive due to lack of activity.'
stale-pr-message: ''
exempt-issue-labels: ''
Expand All @@ -29,9 +29,10 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const issueNumber = 1526;
const issues = ${{ steps.find_inactive.outputs.stale-issues }};
const issueNumbers = issues.split(',');
for (const issueNumber of issueNumbers) {
if (issueNumbers.includes(String(issueNumber))) {
const issue = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -43,7 +44,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
body: `This issue has been inactive for 7 days and has been unassigned.`
body: `This issue has been inactive for 1 hour and will be unassigned.`
});
}
}
Expand Down

0 comments on commit 39a2034

Please sign in to comment.