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

chore(infra): cleanup triage workflows #2222

Merged
merged 8 commits into from
Sep 19, 2023
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
41 changes: 41 additions & 0 deletions .github/workflows/triage-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Triage Issues

on:
issues:
types:
- opened
- reopened

jobs:
triage:
if: github.repository == 'kanisterio/kanister'
name: Triage
permissions:
issues: write
runs-on: ubuntu-latest
steps:
-
name: Add label
uses: actions-ecosystem/[email protected]
with:
labels: "triage"
github_token: ${{ secrets.GITHUB_TOKEN }}
-
name: Add comment
uses: actions-ecosystem/[email protected]
if: github.event.action == 'opened'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Thanks for opening this issue :+1:. The team will review it shortly.

If this is a bug report, make sure to include clear instructions how on to reproduce the problem with [minimal reproducible examples](https://stackoverflow.com/help/minimal-reproducible-example), where possible. If this is a security report, please review our security policy as outlined in [SECURITY.md](https://github.com/kanisterio/kanister/blob/master/SECURITY.md).

If you haven't already, please take a moment to review our project's [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document.
-
name: Update project
uses: alex-page/[email protected]
with:
repo-token: ${{ secrets.GH_TOKEN }} # must use a PAT here
project: Kanister
column: To Be Triaged
40 changes: 40 additions & 0 deletions .github/workflows/triage-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Triage

on:
pull_request:
types:
- opened
- reopened

permissions:
contents: read

jobs:
pull-requests-comment:
name: Comment and Triage
if: github.repository == 'kanisterio/kanister' && github.actor != 'dependabot'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
-
name: Comment
uses: actions-ecosystem/[email protected]
# Avoid adding a comment when the PR is on the same repo.
if: github.event.action == 'opened' && github.event.pull_request.head.repo.fork
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Thanks for submitting this pull request :tada:. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project [contributing guideline](https://github.com/kanisterio/kanister/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document.
-
name: Update status in project
uses: alex-page/[email protected]
# This only works for PRs opened in the same repo and not by dependabot.
# Other PRs don't get the necessary credentials.
if: github.repository == 'kanisterio/kanister' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot'
with:
repo-token: ${{ secrets.GH_TOKEN }}
project: Kanister
column: In Progress
54 changes: 0 additions & 54 deletions .github/workflows/triage.yaml

This file was deleted.