https://github.com/codeinwp/action-pr-merged-announcer
GitHub action which creates an issue on a destination repo when a PR has been merged and the linked issue of the PR has a label that it is are following.
https://github.com/codeinwp/action-pr-merged-announcer
Last synced: about 1 month ago
JSON representation
GitHub action which creates an issue on a destination repo when a PR has been merged and the linked issue of the PR has a label that it is are following.
- Host: GitHub
- URL: https://github.com/codeinwp/action-pr-merged-announcer
- Owner: Codeinwp
- License: gpl-3.0
- Created: 2021-04-24T13:25:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T08:00:13.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T08:39:25.873Z (over 1 year ago)
- Language: JavaScript
- Size: 182 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-pr-merged-announcer
GitHub action which creates an issue on a destination repo when a PR has been merged and the linked issue of the PR has a label that it is following.
## Inputs
### `subscribe_label`
**Required** The name of the issue label which we should watch. Default `"doc-needed"`.
### `destination_repo`
**Required** The name of the repo where we will create the issue as `/`. Default ``.
### `issue_labels`
**Optional** Labels of the new issue. Default ``.
### `issue_template_content`
**Optional** Content of the new issue. Default `There is a new documentation request for {issue_link}. More details about it [here]({issue_link})`.
### `issue_template_title`
**Optional** Title of the new issue. Default `Documentation for {issue_title}`.
## Example usage
```yaml
on:
pull_request:
types: [closed]
branches:
- development
jobs:
pr_announcer:
runs-on: ubuntu-latest
name: Sample job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checking merged commit
uses: Codeinwp/action-pr-merged-announcer@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
destination_repo: "Codeinwp/docs"
issue_labels: "neve"
```