Skip to content

Commit

Permalink
ci: create a doc issue when a user-facing issue is done (#12991)
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje authored Oct 25, 2023
1 parent a4b37a3 commit 272eff4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto-create-doc-issue-by-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Issue Documentation Checker

on:
issues:
types:
- closed
- labeled

jobs:
create-issue:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Log the event payload
run: echo "${{ toJSON(github.event) }}"
- name: Check if issue is done and labeled 'user-facing-changes'
uses: dacbd/create-issue-action@main
if: ${{ github.event.action == 'closed' && contains(github.event.issue.labels.*.name, 'user-facing-changes') }}
with:
token: ${{ secrets.ACCESS_TOKEN }}
owner: risingwavelabs
repo: risingwave-docs
title: |
Document: ${{ github.event.issue.title }}
body: |
## Context
Source Issue URL: ${{ github.event.issue.html_url }}
Created At: ${{ github.event.issue.created_at }}
Created By: ${{ github.event.issue.user.login }}
Closed At: ${{ github.event.issue.closed_at }}
File renamed without changes.

0 comments on commit 272eff4

Please sign in to comment.