Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitya-Pasrija authored Dec 27, 2023
1 parent 6354b01 commit cb48df4
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 16 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Assign Issue to Creator

on:
issues:
types:
- opened

jobs:
assign-to-creator:
runs-on: ubuntu-latest

steps:
- name: Assign Issue to Creator
uses: peter-evans/create-or-update-issue@v2
with:
issue: ${{ github.event.issue.number }}
assignees: ${{ github.event.issue.user.login }}
env:
GITHUB_TOKEN: ${{ secrets.SNOW }}
29 changes: 29 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Assign Contribution Label

on:
issues:
types:
- opened

jobs:
assign-contribution-label:
runs-on: ubuntu-latest

steps:
- name: Assign Contribution Label
uses: actions/github-script@v7
with:
script: |
const issueNumber = context.payload.issue.number;
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
labels: ['contribution'],
});
env:
GITHUB_TOKEN: ${{ secrets.SNOW }}


29 changes: 29 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '23 20 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.SNOW }}
stale-issue-message: 'We noticed that this Issue has been inactive for quite some time. 🥺'
stale-pr-message: 'This PR has no activity, Maintainers and Reviewers we need help here 💖'
stale-issue-label: 'inactive-issue'
stale-pr-label: 'pr-review-asap'
days-before-issue-stale: 5
days-before-pr-stale: 3
16 changes: 0 additions & 16 deletions workflows/greeting.yml

This file was deleted.

0 comments on commit cb48df4

Please sign in to comment.