mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #204 from Lissy93/BUILD-CI/gh-actions-administration
[BUILD] GH-actions for repository administration
This commit is contained in:
commit
cd75aeba13
|
@ -0,0 +1,17 @@
|
|||
comment:
|
||||
on-update: recreate
|
||||
header: |
|
||||
Thank you for contributing to Dashy! ✨
|
||||
footer: |
|
||||
---
|
||||
> I'm a bot, and this is an automated comment 🤖
|
||||
snippets:
|
||||
- id: docs-changes
|
||||
files:
|
||||
- '*.md'
|
||||
- '**/*.md'
|
||||
body: |
|
||||
When making changes to the documentation, be sure to double check that:
|
||||
- Link and images URLs properly resolve
|
||||
- Your spelling and grammar is correct
|
||||
- Any markdown formatting is valid
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
- name: Yarn Lock Changes
|
||||
uses: Simek/yarn-lock-changes@main
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
collapsibleThreshold: '25'
|
||||
failOnDowngrade: 'false'
|
||||
path: 'yarn.lock'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Will add a comment and close new issues opened by users that may be spam, or have not starred
|
||||
# Is still a work in progress, will also detect if user has previous activity in repo and check when joined GH
|
||||
on:
|
||||
issues:
|
||||
types: [opened, reopened]
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# Replies with a random looks-good GIF, when a PR is reviewed with a LGTM comment
|
||||
name: Add Random LGTM GIF
|
||||
on:
|
||||
issue_comment: { types: [created] }
|
||||
pull_request_review: { types: [submitted] }
|
||||
jobs:
|
||||
post:
|
||||
runs-on: ubuntu-latest
|
||||
if: (!contains(github.actor, '[bot]')) # Exclude bot comment
|
||||
steps:
|
||||
- uses: ddradar/choose-random-action@v1
|
||||
id: act
|
||||
with:
|
||||
contents: |
|
||||
https://media4.giphy.com/media/11ISwbgCxEzMyY/giphy.gif
|
||||
https://media4.giphy.com/media/SgwPtMD47PV04/giphy.gif
|
||||
https://media1.giphy.com/media/3orifdxwbvVLfS3CrS/giphy.gif
|
||||
https://media4.giphy.com/media/RPwrO4b46mOdy/giphy.gif
|
||||
https://media2.giphy.com/media/3o7abGQa0aRJUurpII/giphy.gif
|
||||
https://media3.giphy.com/media/ZZrDTGSJXlHW9Y2khu/giphy.gif
|
||||
https://media3.giphy.com/media/5DQdk5oZzNgGc/giphy.gif
|
||||
https://media4.giphy.com/media/3o7abB06u9bNzA8lu8/giphy.gif
|
||||
https://media4.giphy.com/media/l2JJrEx9aRsjNruhi/giphy.gif
|
||||
- uses: ddradar/lgtm-action@v1
|
||||
with:
|
||||
image-url: ${{ steps.act.outputs.selected }}
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
@ -0,0 +1,26 @@
|
|||
# Detects offensive language in comments and takes reaction
|
||||
name: Mind your language
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
issue_comment:
|
||||
types:
|
||||
- created
|
||||
- edited
|
||||
pull_request_review_comment:
|
||||
types:
|
||||
- created
|
||||
- edited
|
||||
jobs:
|
||||
echo_issue_comment:
|
||||
runs-on: ubuntu-latest
|
||||
name: profanity check
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Profanity check step
|
||||
uses: tailaiw/mind-your-language-action@v1.0.3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
@ -0,0 +1,11 @@
|
|||
# Adds comments to PR, based on which files are modified
|
||||
name: PR Commenter
|
||||
on: [ pull_request_target ]
|
||||
jobs:
|
||||
pr-comment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: exercism/pr-commenter-action@v1.2.0
|
||||
with:
|
||||
github-token: ${{ github.BOT_GITHUB_TOKEN }}
|
||||
config-file: .github/pr-auto-comments.yml
|
Loading…
Reference in New Issue