-
Notifications
You must be signed in to change notification settings - Fork 25
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
Trello in project #381
Open
krshubham
wants to merge
21
commits into
Grasia:master
Choose a base branch
from
krshubham:trello-in-project
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
Trello in project #381
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift click to select a range
06fd84c
Merge pull request #1 from Grasia/master
22bec23
gulpfile error handlers for pipes added
21a3017
Merge branch 'master' of https://github.com/krshubham/teem
87894a9
Added basic popover
aa7fcce
Merge remote-tracking branch 'upstream/master'
9dd4e63
Some changes in the popover
a5e7980
Added some stable changes to popover
46b44a9
separating bug fixes
83da6ea
Popover added gulpfile fix
16881d7
Removed jshint warnings
997258f
Added automatic pull of teemlp docker image
bf7aacb
ui button added asking for trello integration
b6d6c5a
added some more changes
96c4c90
Added workspace file changes
422cdb8
Added idea folder
d61125d
Added add card functionality to teem
f80c576
Added functionality for changing status of card
bcba2c7
fixed some jscs rules
158e6e8
removed package-lock.json
e2316b0
Added code for making comments as well as archiving
9b730ed
Corrected a bug in need-widget
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 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 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 |
---|---|---|
|
@@ -60,6 60,15 @@ | |
return deferred.promise; | ||
} | ||
|
||
function archiveCard(trelloObj, need){ | ||
let deferred = $q.defer(); | ||
const archiveCardURL = `https://api.trello.com/1/cards/${need.trelloId}?closed="true"&key=09e4aced60041e389dbb27b9accadd65&token=${trelloObj.token}`; | ||
$http.put(archiveCardURL). | ||
then(result => deferred.resolve(result.data)) | ||
.catch(err => deferred.reject(result.data)); | ||
return deferred.promise; | ||
} | ||
|
||
function registerWebhook(trelloObj){ | ||
const webhookURL = `https://api.trello.com/1/webhooks/?idModel=${trelloObj.boardId}&key=09e4aced60041e389dbb27b9accadd65&token=${trelloObj.token}&callbackURL=http://13.126.145.126:9500/`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, key to config file. |
||
$http.post(webhookURL) | ||
|
@@ -82,7 91,8 @@ | |
createTrelloBoard: createTrelloBoard, | ||
createNewList: createNewList, | ||
addNewCard: addNewCard, | ||
registerWebhook: registerWebhook | ||
registerWebhook: registerWebhook, | ||
archiveCard: archiveCard | ||
}; | ||
} | ||
})(); |
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.
key should go to the configuration file, and now be changed probably. Please let me know the new key so I can add it to the secrets file to be used by travis.