mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
name: Issue Auto Comment
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
- closed
|
|
- assigned
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- closed
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run:
|
|
permissions:
|
|
issues: write # for actions-cool/issues-helper to update issues
|
|
pull-requests: write # for actions-cool/issues-helper to update PRs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Auto Comment on Issues Closed
|
|
uses: wow-actions/auto-comment@v1
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
|
|
issuesClosed: |
|
|
✅ @{{ author }}
|
|
|
|
This issue is closed, If you have any questions, you can comment and reply.
|
|
- name: Auto Comment on Pull Request Merged
|
|
uses: actions-cool/pr-welcome@main
|
|
if: github.event.pull_request.merged == true
|
|
with:
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
comment: |
|
|
❤️ Great PR @${{ github.event.pull_request.user.login }} ❤️
|
|
|
|
The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our [discord](https://discord.com/invite/AYFPHvv2jT) and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
|
|
emoji: 'hooray'
|
|
pr-emoji: '+1, heart'
|
|
- name: Remove inactive
|
|
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
|
|
uses: actions-cool/issues-helper@v3
|
|
with:
|
|
actions: 'remove-labels'
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
issue-number: ${{ github.event.issue.number }}
|
|
labels: 'Inactive'
|