mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
ci: github workflow automation
This commit is contained in:
parent
ce9f397d04
commit
b730cd8eba
2 changed files with 43 additions and 0 deletions
16
.github/workflows/automation_remove_question_label_on_comment.yml
vendored
Normal file
16
.github/workflows/automation_remove_question_label_on_comment.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Remove Question Label on Issue Comment
|
||||||
|
|
||||||
|
on: [issue_comment]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Remove the "question" label when a new comment is added.
|
||||||
|
# This lets me ask a question, tag the issue with "question", and filter out all "question"-tagged
|
||||||
|
# issues in my "needs triage" filter.
|
||||||
|
remove_question:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.sender.login != 'stevearc'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-ecosystem/action-remove-labels@v1
|
||||||
|
with:
|
||||||
|
labels: question
|
27
.github/workflows/automation_request_review.yml
vendored
Normal file
27
.github/workflows/automation_request_review.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: Request Review
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, reopened, ready_for_review, synchronize]
|
||||||
|
branches-ignore:
|
||||||
|
- "release-please--**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Request review automatically when PRs are opened
|
||||||
|
request_review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Request Review
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
if: github.actor != 'stevearc'
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
const pr = context.payload.pull_request;
|
||||||
|
github.rest.pulls.requestReviewers({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: pr.number,
|
||||||
|
reviewers: ['stevearc']
|
||||||
|
});
|
Loading…
Reference in a new issue