mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Add automation to create openAPI issue
This commit is contained in:
parent
fc1c3f4a29
commit
8394be9484
21
.github/workflows/milestone-workflow.yml
vendored
21
.github/workflows/milestone-workflow.yml
vendored
@ -112,7 +112,7 @@ jobs:
|
|||||||
|
|
||||||
create-update-version-issue:
|
create-update-version-issue:
|
||||||
needs: get-release-version
|
needs: get-release-version
|
||||||
# Create the changelog issue if the release is not only a patch release
|
# Create the update-version issue even if the release is a patch release
|
||||||
if: github.event.action == 'created'
|
if: github.event.action == 'created'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@ -129,6 +129,25 @@ jobs:
|
|||||||
--body-file $ISSUE_TEMPLATE \
|
--body-file $ISSUE_TEMPLATE \
|
||||||
--milestone $MILESTONE_VERSION
|
--milestone $MILESTONE_VERSION
|
||||||
|
|
||||||
|
create-update-openapi-issue:
|
||||||
|
needs: get-release-version
|
||||||
|
# Create the openAPI issue if the release is not only a patch release
|
||||||
|
if: github.event.action == 'created' && needs.get-release-version.outputs.is-patch == 'false'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ISSUE_TEMPLATE: issue-template.md
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Download the issue template
|
||||||
|
run: curl -s https://raw.githubusercontent.com/meilisearch/engine-team/main/issue-templates/update-openapi-issue.md > $ISSUE_TEMPLATE
|
||||||
|
- name: Create the issue
|
||||||
|
run: |
|
||||||
|
gh issue create \
|
||||||
|
--title "Update Open API file for $MILESTONE_VERSION" \
|
||||||
|
--label 'maintenance' \
|
||||||
|
--body-file $ISSUE_TEMPLATE \
|
||||||
|
--milestone $MILESTONE_VERSION
|
||||||
|
|
||||||
# ----------------
|
# ----------------
|
||||||
# MILESTONE CLOSED
|
# MILESTONE CLOSED
|
||||||
# ----------------
|
# ----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user