-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add missing types workflow * use the closed events to avoid opening issue for unmerged PR
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Missing Types | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
create_issue: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.pull_request.merged && | ||
contains(github.event.pull_request.labels.*.name, 'missing-types') | ||
steps: | ||
- name: Create an issue | ||
uses: octokit/request-action@v2.x | ||
with: | ||
route: POST /repos/{owner}/{repo}/issues | ||
owner: ${{ github.repository_owner }} | ||
repo: ${{ github.event.repository.name }} | ||
title: add missing types to [${{ github.event.pull_request.title }}] | ||
body: | | ||
PR [${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }}) has introduced a new feature that requires updating Fastify's typings and tests. | ||
Learn how to [contribute](https://github.com/fastify/fastify/blob/main/CONTRIBUTING.md) | ||
Get inspired by [this example PR](https://github.com/fastify/fastify/pull/3231) | ||
labels: | | ||
["good-first-issue", "typescript"] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |