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

Merge Develop onto Main #701

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 0 additions & 16 deletions .github/workflows/community-first-pr-comment.yml

This file was deleted.

54 changes: 33 additions & 21 deletions .github/workflows/community-issue-comment.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,62 @@
# This workflow handles issue comments.
# See for more info: https://github.com/actions/github-script
# -----------------------------------------------------------------------------
# GitHub Actions Workflow: Issue Comments
# Description: Post issue comments
# Jobs:
# - Assigned comment
# - Stale label comment
# -----------------------------------------------------------------------------

name: Issue Comments
name: Issue Comment Workflows

on:
workflow_run:
workflows: ["Label Stale Contributions"]
types:
- completed
issues:
types:
- assigned
- labeled

jobs:
# When issues are assigned, a comment is posted
# Tags the assignee with links to helpful resources
# Job: Assigned issue comment
# Trigger: Issues are assigned
# Returns: Posts comment tagging assignee and helpful message
assigned-comment:
if: github.event.action == 'assigned'
runs-on: ubuntu-latest
steps:
- name: Post assignee issue comment
id: assigned-comment
uses: actions/github-script@v7
uses: actions/github-script@v7 # https://github.com/actions/github-script
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
body: `Thank you @${context.payload.issue.assignee.login} you have been assigned this issue!
**Please follow the directions in our [Contributing Guide](https://github.com/chaynHQ/.github/blob/main/docs/CONTRIBUTING.md). We look forward to reviewing your pull request shortly ✨**
---
Support Chayn's mission? ⭐ Please star this repo to help us find more contributors like you!
Learn more about Chayn [here](https://linktr.ee/chayn) and [explore our projects](https://org.chayn.co/projects). 🌸`
})
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
body: `Thank you @${context.payload.issue.assignee.login} you have been assigned this issue!
**Please follow the directions in our [Contributing Guide](https://github.com/chaynHQ/.github/blob/main/docs/CONTRIBUTING.md). We look forward to reviewing your pull request. ✨**

---

Support Chayn's mission? ⭐ Please star this repo to help us find more contributors like you!
Learn more about our [impact](https://github.com/chaynHQ/.github/blob/main/profile/README.md) and [sign-up for our volunteer programs](https://www.chayn.co/get-involved)to join our mission!. 🌸`
})

# When issues are labeled as stale, a comment is posted.
# Tags the assignee with warning.
# Enables manual issue management in addition to community-stale-management.yml
# Job: Stale label comment
# Triggers:
# Labeled as stale by maintainer
# 'Label Stale Contributions' workflow runs
# Returns: Posts warning comment tagging assignee
stale-label-comment:
if: github.event.action == 'labeled' && github.event.label.name == 'stale'
runs-on: ubuntu-latest
steps:
- name: Post stale issue comment
id: stale-label-comment
uses: actions/github-script@v7
uses: actions/github-script@v7 # https://github.com/actions/github-script
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/community-stale-management.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# This workflow labels stale issues and PRs after 30 days of inactivity.
# Stale PRs are closed after 1 week of inactivity after labeled stale.
# See for more info: https://github.com/actions/stale
# -----------------------------------------------------------------------------
# GitHub Actions Workflow: Label Stale Contributions
# Description: Labels stale contributions
# Job: actions/stale
# -----------------------------------------------------------------------------

name: Mark Stale Contributions
name: Label Stale Contributions

on:
# Enable manual run from the Actions tab so workflow can be run at any time
workflow_dispatch:
workflow_dispatch: # enables manual trigger
# Scheduled to run at 12:00 on every Monday
schedule:
- cron: "0 0 * * MON"

jobs:
# Trigger: Scheduled weekly
# Returns: labels issues and PRs with 'stale' after 30 days inactivity
# PRs: automated closing after 1 more week of inactivity
# Issues: requires manual closing by maintainers
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v9
- uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: "stale"
stale-pr-label: "stale"
days-before-stale: 30
# disables closing issues
days-before-issue-close: -1
# close pr after 1 week no updates after stale warning
days-before-pr-close: 7
# only scan assigned issues
include-only-assigned: true
Expand All @@ -39,5 +43,5 @@ jobs:
exempt-pr-labels: dependencies
# disable counting irrelevant activity (branch updates) towards day counter on prs.
ignore-pr-updates: true
stale-pr-message: "As per Chayn policy, after 30 days of inactivity, we will close this PR."
close-pr-message: "This PR has been closed due to inactivity."
# actions/stale does not enable tagging authors / assignees, so comments are handled by Issue Comments Workflows.
stale-pr-message: "As per Chayn policy, after 30 days of inactivity, we will close this PR in 7 days. Please comment or update to keep open."
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@mailchimp/mailchimp_marketing": "^3.0.80",
"@nestjs/axios": "^3.0.3",
"@nestjs/common": "^10.4.6",
"@nestjs/config": "^3.2.3",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.4",
"@nestjs/platform-express": "^10.4.6",
"@nestjs/swagger": "^7.4.0",
Expand Down Expand Up @@ -61,15 +61,15 @@
"@eslint/js": "^9.11.1",
"@golevelup/ts-jest": "^0.5.0",
"@nestjs/cli": "^10.3.2",
"@nestjs/schematics": "^10.1.4",
"@nestjs/testing": "^10.4.1",
"@nestjs/testing": "^10.4.6",
"@nestjs/schematics": "^10.2.3",
"@types/date-fns": "^2.6.0",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.7",
"@types/node": "^22.8.1",
"@types/supertest": "^6.0.2",
"eslint": "^9.9.1",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
Expand Down
Loading
Loading