Skip to content

Commit

Permalink
Merge branch 'master' into feature/client_certs
Browse files Browse the repository at this point in the history
  • Loading branch information
krasi-georgiev authored Sep 30, 2020
2 parents 9154509 + de4d3e7 commit 543004f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Prometheus Community Code of Conduct

Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
11 changes: 11 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ else
$(GO) get $(GOOPTS) -t ./...
endif

.PHONY: update-go-deps
update-go-deps:
@echo ">> updating Go dependencies"
@for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
$(GO) get $$m; \
done
GO111MODULE=$(GO111MODULE) $(GO) mod tidy
ifneq (,$(wildcard vendor))
GO111MODULE=$(GO111MODULE) $(GO) mod vendor
endif

.PHONY: common-test-short
common-test-short: $(GOTEST_DIR)
@echo ">> running short tests"
Expand Down
7 changes: 4 additions & 3 deletions examples/jiralert.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Global defaults, applied to all receivers where not explicitly overridden. Optional.
defaults:
# API access fields.
Expand Down Expand Up @@ -38,17 +39,17 @@ receivers:
# Overrides default.
issue_type: Task
# JIRA components. Optional.
components: [ 'Operations' ]
components: ['Operations']
# Standard or custom field values to set on created issue. Optional.
#
# See https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#setting-custom-field-data-for-other-field-types for further examples.
fields:
# TextField
customfield_10001: "Random text"
# SelectList
customfield_10002: { "value": "red" }
customfield_10002: {"value": "red"}
# MultiSelect
customfield_10003: [{"value": "red" }, {"value": "blue" }, {"value": "green" }]
customfield_10003: [{"value": "red"}, {"value": "blue"}, {"value": "green"}]

# File containing template definitions. Required.
template: jiralert.tmpl

0 comments on commit 543004f

Please sign in to comment.