Skip to content

Commit

Permalink
Update workflows for label related
Browse files Browse the repository at this point in the history
  • Loading branch information
M-ichae-l committed Feb 7, 2024
1 parent e49910b commit c46f3e9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: Report any bugs or issues
labels: ["Status: Awaiting triage"]
labels: ["pending"]
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Feature Request
description: Suggest an feature for this SDK
labels: ["Type: Feature request"]
labels: ["pending", "enhancement"]
body:
- type: markdown
attributes:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/label_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: pending
12 changes: 7 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Close inactive issues
name: 'Close stale issues and PRs'

on:
schedule:
Expand All @@ -17,16 +17,18 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v5
- uses: actions/stale@v9
with:
days-before-issue-stale: 14
days-before-issue-close: 7
# days-before-issue-close: 7
days-before-issue-close: -1
days-before-pr-stale: 14
days-before-pr-close: -1
stale-issue-label: 'no-issue-activity'
exempt-issue-labels: 'no-issue-activity,wontfix'
stale-pr-label: 'no-pr-activity'
exempt-pr-labels: 'no-pr-activity,wontfix'
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
# close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
stale-pr-message: 'This pull request is stale because there is no activity for 14 days'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c46f3e9

Please sign in to comment.