Skip to content

Commit

Permalink
support github label backport
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Dec 3, 2024
1 parent 03b45ff commit 03d23a9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ endef
#
.PHONY: minor-release
minor-release:
@echo "INFO: Create GitHub label backport for the version $(RELEASE_VERSION)"
$(MAKE) create-github-label NAME=backport-$(RELEASE_BRANCH)

@echo "INFO: Create release branch and update new version $(RELEASE_VERSION)"
$(MAKE) create-branch NAME=$(RELEASE_BRANCH) BASE=$(BASE_BRANCH)
$(MAKE) update-version VERSION=$(RELEASE_VERSION)
Expand Down Expand Up @@ -297,6 +300,19 @@ create-commit:
fi
@echo "::endgroup::"


## Create a github label
.PHONY: create-github-label
create-github-label: NAME=$${NAME}
create-github-label:
@echo "::group::create-github-label $(NAME)"
gh label create $(NAME) \
--description "Automated backport with mergify" \
--color 0052cc
--repo $(PROJECT_OWNER)/apm-server \
--force
@echo "::endgroup::"

## @help:create-pull-request:Create pull request
.PHONY: create-pull-request
create-pull-request: BRANCH=$${BRANCH} TITLE=$${TITLE} TARGET_BRANCH=$${TARGET_BRANCH} BODY=$${BODY} BACKPORT_LABEL=$${BACKPORT_LABEL}
Expand Down

0 comments on commit 03d23a9

Please sign in to comment.