Skip to content

Commit

Permalink
Introducing release-drafter. From now on, changes only through PRs
Browse files Browse the repository at this point in the history
Fixing small non compiled code.
  • Loading branch information
asafm committed Apr 8, 2021
1 parent 9163ddf commit 013d231
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 16 deletions.
25 changes: 25 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name-template: $RESOLVED_VERSION
tag-template: $RESOLVED_VERSION
categories:
- title: 'Features'
label: 'feature'
- title: 'Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
24 changes: 24 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 14 additions & 16 deletions src/main/java/io/logz/jmx2graphite/GraphiteClient.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
package io.logz.jmx2graphite;

import static io.logz.jmx2graphite.GraphiteProtocol.TCP;
import static io.logz.jmx2graphite.GraphiteProtocol.UDP;
import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteSender;
import com.codahale.metrics.graphite.GraphiteUDP;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import net.jodah.failsafe.Failsafe;
import net.jodah.failsafe.RetryPolicy;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.net.SocketFactory;
import java.io.Closeable;
import java.io.IOException;
import java.net.InetAddress;
Expand All @@ -12,21 +22,9 @@
import java.net.UnknownHostException;
import java.util.List;

import javax.net.SocketFactory;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteSender;
import com.codahale.metrics.graphite.GraphiteUDP;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import static io.logz.jmx2graphite.GraphiteProtocol.TCP;
import static io.logz.jmx2graphite.GraphiteProtocol.UDP;

import net.jodah.failsafe.Failsafe;
import net.jodah.failsafe.RetryPolicy;

public class GraphiteClient implements Closeable {
private static final Logger logger = LoggerFactory.getLogger(GraphiteClient.class);
Expand Down

0 comments on commit 013d231

Please sign in to comment.