Skip to content

Commit

Permalink
added makefile task to create release labels to all the avni product …
Browse files Browse the repository at this point in the history
…repos
  • Loading branch information
vindeolal committed Feb 1, 2022
1 parent accdb88 commit bd9481e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
labelName:=
githubAPI:= https://api.github.com/repos/avniproject
color:= $(if $(color),$(color),1d76db)

label = \
curl -X POST $(githubAPI)/$(1)/labels \
-H "Authorization: token $(token)" \
-d '{"name":"$(labelName)","color":"$(color)"}' \

create_release_label:
ifndef labelName
@echo "Please provide label name"
exit 1
else
make create_label token=$(GITHUB_TOKEN) labelName=$(labelName) color=$(color)
endif

create_label:
$(call label,avni-product)
$(call label,avni-client)
$(call label,avni-server)
$(call label,avni-webapp)
$(call label,rules-config)
$(call label,avni-models)
$(call label,rules-server)
$(call label,avni-canned-reports)

0 comments on commit bd9481e

Please sign in to comment.