Skip to content

Commit

Permalink
auto-add issues triggered from main repo
Browse files Browse the repository at this point in the history
This is a sibling commit for bookwyrm-social/bookwyrm#3363

These add a pair of GitHub Actions to create a new issue in the documentation repository when a PR with a `needs-docs` label is merged in the main repository.

1. In order to work, the related PR in the main repository will also need to be merged, as it triggers the job here, and the Bot set up as described in the PR in the main repository.
  • Loading branch information
hughrun committed Apr 28, 2024
1 parent 376728a commit 6d125e8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/ACTION_ISSUE_TEMPLATE.md
@@ -0,0 +1,11 @@
---
title: Document PR {{ payload.client_payload.number }} - {{ payload.client_payload.title }}
---

Documentation is needed for changes made in https://github.com/bookwyrm-social/bookwyrm/pull/{{ payload.client_payload.number }}

Pull Request notes are below.

---

{{ payload.client_payload.body }}
16 changes: 16 additions & 0 deletions .github/workflows/receive_docs_issues.yml
@@ -0,0 +1,16 @@
name: Repository Dispatch
on:
repository_dispatch:
types: [docs-needed]
jobs:
create-issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v4
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/ACTION_ISSUE_TEMPLATE.md

0 comments on commit 6d125e8

Please sign in to comment.