mirror of https://github.com/Lissy93/dashy.git
🕋 Adds actions for managing PRs, issues and comments
This commit is contained in:
parent
f14d1ce978
commit
bb25389a71
|
@ -0,0 +1,27 @@
|
||||||
|
# Based on a label applied to an issue, the bot will add a comment with some additional info
|
||||||
|
name: Post Status from Label
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Label Commenter
|
||||||
|
uses: peaceiris/actions-label-commenter@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
config_file: ./path_to/your_config.yml
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Creates a new tag, whenever the app version (in package.json) is updated in master
|
||||||
|
name: Create Tag
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: butlerlogic/action-autotag@stable
|
||||||
|
with:
|
||||||
|
tag_prefix: v
|
||||||
|
strategy: package
|
||||||
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
commit_message_template: "🔖 {{number}} {{message}} (by {{author}})\nSHA: {{sha}}\n."
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Finds any TODO notes within the code, and opens up an issue for it to be fixed
|
||||||
|
name: Open issue for Todos
|
||||||
|
on: ["push"]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@master"
|
||||||
|
- name: "TODO to Issue"
|
||||||
|
uses: "alstr/todo-to-issue-action@v4.2"
|
||||||
|
id: "todo"
|
||||||
|
with:
|
||||||
|
TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
@ -0,0 +1,11 @@
|
||||||
|
# After a PR is merged, the linked issue will be updated with a comment, based on commit message
|
||||||
|
name: Update Issue After PR
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
checkCommit:
|
||||||
|
name: Comment From Commit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: adamzolyak/commit-issue-commenter-action@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
Loading…
Reference in New Issue