-
Notifications
You must be signed in to change notification settings - Fork 154
replace inline checks with decorator #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
samridhsharma
wants to merge
25
commits into
Netflix:master
Choose a base branch
from
samridhsharma:develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
fd92366
Initial commit - add_team_to_repo command
ee31539
fix typo and reference team by name instead of id
320a362
Change to more accurate function name
f9a9e26
Apply changes and add team_must_exist decorator
6253c8b
replace inline checks with decorator
079e74a
fix decorator and remove redundant calls to find_team_by_name
1eebda1
Merge pull request #78 from yaron-idan/issue28
mikegrima ac4241f
Implemented #57. This allows batch outside collaborator repo adding.
c3516ae
Merge pull request #79 from mikegrima/issue57
mikegrima 9aa5804
Added multiple-domain DUO support.
c53e42b
Merge pull request #80 from mikegrima/issue77
mikegrima be4bb47
Fixed bug #81.
d43ce54
Merge pull request #82 from mikegrima/issue81
mikegrima a2ad149
Build app entirely frmo Dockerfile
4880ea5
fix rm of tar file
775c21c
change deprecated MAINTAINER to label
82d1cbf
Merge pull request #85 from yaron-idan/issue84
mikegrima 85da716
Added more threads to duo error messages
47377c5
Merge pull request #86 from mikegrima/duo_thread
mikegrima 25849f4
Update for exit status
sbalagopal d56f2fc
Merge pull request #89 from sbalagopal/patch-1
mikegrima ce8e0fe
Addresses #83
b3eba1c
Merge pull request #91 from mikegrima/docupdate
mikegrima f79da51
Properly removes all macOS "Smart Quotes".
bfed674
Merge pull request #92 from mikegrima/issue87
mikegrima File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ sudo: required | |
language: python | ||
|
||
python: | ||
- "3.5" | ||
- "3.6" | ||
|
||
install: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM ubuntu:xenial | ||
|
||
# Mostly Mike Grima: [email protected] | ||
MAINTAINER NetflixOSS <[email protected]> | ||
|
||
# Install the Python RTM bot itself: | ||
ARG RTM_VERSION | ||
ADD python-rtmbot-${RTM_VERSION}.tar.gz / | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN \ | ||
# Install Python: | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install python3 python3-venv nano -y | ||
apt-get install python3 python3-venv nano curl -y | ||
|
||
# Install the Python RTM bot itself: | ||
ARG RTM_VERSION="0.4.0" | ||
ARG RTM_PATH="python-rtmbot-${RTM_VERSION}" | ||
RUN curl -L https://github.com/slackhq/python-rtmbot/archive/${RTM_VERSION}.tar.gz > /${RTM_PATH}.tar.gz && tar xvzf python-rtmbot-0.4.0.tar.gz | ||
|
||
|
||
# Add all the other stuff to the plugins: | ||
COPY / /python-rtmbot-${RTM_VERSION}/hubcommander | ||
|
@@ -20,19 +22,16 @@ COPY / /python-rtmbot-${RTM_VERSION}/hubcommander | |
RUN \ | ||
# Rename the rtmbot: | ||
mv /python-rtmbot-${RTM_VERSION} /rtmbot && \ | ||
|
||
# Set up the VENV: | ||
pyvenv /venv && \ | ||
|
||
# Install all the deps: | ||
/bin/bash -c "source /venv/bin/activate && pip install --upgrade pip" && \ | ||
/bin/bash -c "source /venv/bin/activate && pip install --upgrade setuptools" && \ | ||
/bin/bash -c "source /venv/bin/activate && pip install wheel" && \ | ||
/bin/bash -c "source /venv/bin/activate && pip install /rtmbot/hubcommander" && \ | ||
|
||
# The launcher script: | ||
mv /rtmbot/hubcommander/launch_in_docker.sh / && chmod +x /launch_in_docker.sh && \ | ||
rm /rtmbot/hubcommander/python-rtmbot-${RTM_VERSION}.tar.gz | ||
rm /python-rtmbot-${RTM_VERSION}.tar.gz | ||
|
||
# DEFINE YOUR ENV VARS FOR SECRETS HERE: | ||
ENV SLACK_TOKEN="REPLACEMEINCMDLINE" \ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems incorrect. All 3 of the variables must be provided for DUO to work.
I would suggest keeping the old code here.