Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(projectmanagment): only run in nightscout repo, use of general token, rename #342

Merged
merged 4 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/add-to-project@v1.0.2
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/stale@v9.0.0
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/stale@v9.0.0
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 }}