Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Change lint build status url to bitbucket pr
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 16, 2017
1 parent 720e696 commit 67d1746
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions badwolf/lint/processor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
import time
import logging

from flask import url_for
from unidiff import UnidiffParseError

from badwolf.extensions import bitbucket, sentry
Expand Down Expand Up @@ -56,7 +54,7 @@ def __init__(self, context, spec, working_dir=None):
context.source['repository']['full_name'],
commit_hash,
'badwolf/lint',
url_for('log.lint_log', sha=commit_hash, ts=int(time.time()), _external=True)
'https://bitbucket.org/{}/pull-requests/{}'.format(context.repository, context.pr_id)
)

def load_changes(self):
Expand Down

0 comments on commit 67d1746

Please sign in to comment.