Skip to content

Commit

Permalink
Update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandeberg committed Feb 27, 2023
1 parent f84460f commit 14a1676
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/add_issue_to_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Assign issue to project

on:
issues:
types: [opened]

jobs:
assign_to_project:
runs-on: ubuntu-latest
name: Assign issue to project
steps:

- name: Assign issue with `bug` or `enhancement` label to project
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/koinos/projects/6
github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
labeled: bug, enhancement
label-operator: OR
17 changes: 17 additions & 0 deletions .github/workflows/add_pr_to_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Assign pull request to project

on:
pull_request:
types: [opened]

jobs:
assign_to_project:
runs-on: ubuntu-latest
name: Assign pull request to project
steps:

- name: Assign pull request to project
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/koinos/projects/6
github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
20 changes: 17 additions & 3 deletions .github/workflows/close_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ on:

jobs:
close-issues:
uses: koinos/koinos-github-workflows/.github/workflows/close_issues.yml@master
secrets:
github-token: ${{ secrets.ISSUE_MANAGEMENT_TOKEN }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v7
with:
exempt-issue-labels: "story,task,research"
days-before-stale: 30
days-before-close: 14
stale-issue-label: "stale"
stale-pr-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity."
close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale."
repo-token: ${{ secrets.ISSUE_MANAGEMENT_TOKEN }}

0 comments on commit 14a1676

Please sign in to comment.