| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,8 @@ name: Close issue/PR on adding invalid label | |||
| 5 | 5 | on: | |
| 6 | 6 | issues: | |
| 7 | 7 | types: [labeled] | |
| 8 | + pull_request_target: | ||
| 9 | + types: [labeled] | ||
| 8 | 10 | ||
| 9 | 11 | permissions: | |
| 10 | 12 | contents: read | |
@@ -23,10 +25,12 @@ jobs: | |||
| 23 | 25 | if: ${{ github.event_name == 'issues' }} | |
| 24 | 26 | env: | |
| 25 | 27 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 26 | - run: gh issue close ${{ github.event.issue.html_url }} | ||
| 28 | + URL: ${{ github.event.issue.html_url }} | ||
| 29 | + run: gh issue close $URL | ||
| 27 | 30 | ||
| 28 | 31 | - name: Close PR | |
| 29 | 32 | if: ${{ github.event_name == 'pull_request_target' }} | |
| 30 | 33 | env: | |
| 31 | 34 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 32 | - run: gh pr close ${{ github.event.pull_request.html_url }} | ||
| 35 | + URL: ${{ github.event.pull_request.html_url }} | ||
| 36 | + run: gh pr close $URL | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,7 @@ | |||
| 1 | 1 | name: No Response | |
| 2 | 2 | ||
| 3 | - # Both `issue_comment` and `scheduled` event types are required for this Action | ||
| 4 | - # to work properly. | ||
| 3 | + # Automatically close issues labeled 'more-info-needed' after 7 days of inactivity | ||
| 5 | 4 | on: | |
| 6 | - issue_comment: | ||
| 7 | - types: [created] | ||
| 8 | 5 | schedule: | |
| 9 | 6 | # Schedule for five minutes after the hour, every hour | |
| 10 | 7 | - cron: '5 * * * *' | |
@@ -16,17 +13,22 @@ jobs: | |||
| 16 | 13 | noResponse: | |
| 17 | 14 | runs-on: ubuntu-latest | |
| 18 | 15 | steps: | |
| 19 | - - uses: lee-dohm/no-response@v0.5.0 | ||
| 16 | + - uses: actions/stale@v9 | ||
| 20 | 17 | with: | |
| 21 | - token: ${{ secrets.GITHUB_TOKEN }} | ||
| 22 | - closeComment: > | ||
| 18 | + repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| 19 | + only-issue-labels: 'more-info-needed' | ||
| 20 | + days-before-issue-stale: -1 # Skip stale state, go directly to close | ||
| 21 | + days-before-issue-close: 7 # Close after 7 days of inactivity | ||
| 22 | + days-before-pr-stale: -1 # Don't process PRs | ||
| 23 | + days-before-pr-close: -1 # Don't process PRs | ||
| 24 | + remove-stale-when-updated: true | ||
| 25 | + close-issue-message: > | ||
| 23 | 26 | Thank you for your issue! | |
| 24 | 27 | ||
| 25 | - We haven’t gotten a response to our questions above. With only the | ||
| 26 | - information that is currently in the issue, we don’t have enough | ||
| 27 | - information to take action. We’re going to close this but don’t | ||
| 28 | + We haven't gotten a response to our questions above. With only the | ||
| 29 | + information that is currently in the issue, we don't have enough | ||
| 30 | + information to take action. We're going to close this but don't | ||
| 28 | 31 | hesitate to reach out if you have or find the answers we need. If | |
| 29 | 32 | you answer our questions above, this issue will automatically | |
| 30 | 33 | reopen. | |
| 31 | - daysUntilClose: 7 | ||
| 32 | - responseRequiredLabel: more-info-needed | ||
| 34 | + close-issue-reason: 'not_planned' | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,34 +11,36 @@ jobs: | |||
| 11 | 11 | add-comment-to-unable-to-reproduce-issues: | |
| 12 | 12 | if: github.event.label.name == 'unable-to-reproduce' | |
| 13 | 13 | runs-on: ubuntu-latest | |
| 14 | - env: | ||
| 15 | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| 16 | - GH_REPO: ${{ github.repository }} | ||
| 17 | - NUMBER: ${{ github.event.issue.number }} | ||
| 18 | - LABELS: more-info-needed | ||
| 19 | - BODY: > | ||
| 20 | - Thank you for your issue! Unfortunately, we are unable to reproduce the | ||
| 21 | - issue you are experiencing. Please provide more information so we can | ||
| 22 | - help you. | ||
| 14 | + steps: | ||
| 15 | + - name: Update issue | ||
| 16 | + env: | ||
| 17 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| 18 | + GH_REPO: ${{ github.repository }} | ||
| 19 | + NUMBER: ${{ github.event.issue.number }} | ||
| 20 | + LABELS: more-info-needed | ||
| 21 | + BODY: > | ||
| 22 | + Thank you for your issue! Unfortunately, we are unable to reproduce the | ||
| 23 | + issue you are experiencing. Please provide more information so we can | ||
| 24 | + help you. | ||
| 23 | 25 | ||
| 24 | 26 | ||
| 25 | - Here are some tips for writing reproduction steps: | ||
| 26 | - - Step by step instructions accompanied by screenshots or screencasts | ||
| 27 | - are the best. | ||
| 28 | - - Be as specific as possible; include as much detail as you can. | ||
| 29 | - - If not already provided, include: | ||
| 30 | - - the version of Copilot CLI you are using. | ||
| 31 | - - the operating system you are using | ||
| 32 | - - any environment factors you can think of. | ||
| 33 | - - any custom configuration you are using. | ||
| 34 | - - a log file from the day you experienced the issue (find log | ||
| 35 | - files via `~/.copilot/logs`. | ||
| 36 | - - If relevant and can be shared, provide the repository or code you | ||
| 37 | - are using. | ||
| 38 | - - If relevant and can be shared, provide the session files (find session files via `~/.copilot/history-session-state`). | ||
| 39 | - | ||
| 40 | - Note: This is a public repository. Please do not include any sensitive or | ||
| 41 | - private information in your issue. | ||
| 42 | - steps: | ||
| 43 | - - run: gh issue edit "$NUMBER" --add-label "$LABELS" | ||
| 44 | - - run: gh issue comment "$NUMBER" --body "$BODY" | ||
| 27 | + Here are some tips for writing reproduction steps: | ||
| 28 | + - Step by step instructions accompanied by screenshots or screencasts | ||
| 29 | + are the best. | ||
| 30 | + - Be as specific as possible; include as much detail as you can. | ||
| 31 | + - If not already provided, include: | ||
| 32 | + - the version of Copilot CLI you are using. | ||
| 33 | + - the operating system you are using | ||
| 34 | + - any environment factors you can think of. | ||
| 35 | + - any custom configuration you are using. | ||
| 36 | + - a log file from the day you experienced the issue (find log | ||
| 37 | + files via `~/.copilot/logs`. | ||
| 38 | + - If relevant and can be shared, provide the repository or code you | ||
| 39 | + are using. | ||
| 40 | + - If relevant and can be shared, provide the session files (find session files via `~/.copilot/history-session-state`). | ||
| 41 | + | ||
| 42 | + Note: This is a public repository. Please do not include any sensitive or | ||
| 43 | + private information in your issue. | ||
| 44 | + run: | | ||
| 45 | + gh issue edit "$NUMBER" --add-label "$LABELS" | ||
| 46 | + gh issue comment "$NUMBER" --body "$BODY" | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments