Skip to content

Commit

Permalink
add documentation bot
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 2, 2020
1 parent d8645f5 commit bdf292e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr_to_doc_issue.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,24 @@

on:
pull_request:
types:
- labeled
jobs:
docbot:
runs-on: ubuntu-latest
name: Create issue on doc repo for labeled issue
if: github.event.label.name == 'Documentation'
steps:
- name: Create Documentation issue
id: doc_issue
uses: maxkomarychev/oction-create-issue@v0.7.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: qgis
repo: QGIS-Documentation
title: ${{ format('Request in QGIS ({1})', github.event.pull_request.number, github.event.pull_request.title) }}
body: ${{ format('Request for documentation in QGIS/qgis#{0} {1})', github.event.pull_request.number, github.event.pull_request.title) }}
- name: Print outputs
run: |
echo ${{ steps.doc_issue.outputs.id }}
echo ${{ steps.doc_issue.outputs.number }}

0 comments on commit bdf292e

Please sign in to comment.