Skip to content

Commit

Permalink
Merge pull request #342 from nightscout/workflow-updates
Browse files Browse the repository at this point in the history
fix(projectmanagment): only run in nightscout repo, use of general token, rename
  • Loading branch information
Sjoerd-Bo3 authored Jul 4, 2024
2 parents a364b62 + 41d76cf commit 0049949
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/add_to_project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add bugs to bugs project
name: 8. DONT RUN Add bugs to bugs project

on:
issues:
Expand All @@ -9,6 +9,7 @@ jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
if: github.repository_owner == 'nightscout'
steps:
- uses: actions/[email protected]
with:
Expand All @@ -18,3 +19,4 @@ jobs:
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bug, needs-triage
label-operator: OR

11 changes: 8 additions & 3 deletions .github/workflows/stale_issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: close inactive issues
name: 8. DONT RUN close inactive issues
on:
schedule:
- cron: "30 1 * * *"
Expand All @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: github.repository_owner == 'nightscout'
steps:
- uses: actions/[email protected]
with:
Expand All @@ -20,12 +22,15 @@ jobs:
exempt-issue-labels: "needs-triage, long-term, in-progress"
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.STALE_ISSUES_PAT }}
repo-token: ${{ secrets.GITHUB_TOKEN }}


close-issues-triage:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: github.repository_owner == 'nightscout'
steps:
- uses: actions/[email protected]
with:
Expand All @@ -39,5 +44,5 @@ jobs:
any-of-labels: "needs-triage"
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.STALE_ISSUES_PAT }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0049949

Please sign in to comment.