diff --git a/.github/workflows/add_issue_to_project.yml b/.github/workflows/add_issue_to_project.yml new file mode 100644 index 0000000..e8f4b83 --- /dev/null +++ b/.github/workflows/add_issue_to_project.yml @@ -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 diff --git a/.github/workflows/add_pr_to_project.yml b/.github/workflows/add_pr_to_project.yml new file mode 100644 index 0000000..31c6c97 --- /dev/null +++ b/.github/workflows/add_pr_to_project.yml @@ -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 }} diff --git a/.github/workflows/close_issues.yml b/.github/workflows/close_issues.yml index 902a052..78ff5a3 100644 --- a/.github/workflows/close_issues.yml +++ b/.github/workflows/close_issues.yml @@ -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 }}