1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 04:38:28 +01:00

Add github actions (#508)

* Add add_to_project.yml action

* add close_inactive action
This commit is contained in:
SyntaxJoker 2023-02-20 23:50:13 +01:00 committed by GitHub
parent a96c47ce4b
commit df1cde5a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

19
.github/workflows/add_to_project.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Add new issues and pr to project
on:
pull_request:
types:
- opened
issues:
types:
- opened
jobs:
add-to-project:
name: Add new issue and pr to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/tabler/projects/9/views/1
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

26
.github/workflows/close_inactive.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Close inactive issues and pr
on:
schedule:
- cron: "00 11 * * *"
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 360
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 360 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
days-before-pr-stale: 360
days-before-pr-close: 14
stale-pr-label: "stale"
stale-pr-message: "This pr is stale because it has been open for 360 days with no activity."
close-pr-message: "This pr was closed because it has been inactive for 14 days since being marked as stale."