Skip to content
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

JIRAv2 initial PR #36

Merged
merged 70 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
99bff04
Refactored the JIRA plugin to support more events
Feb 13, 2019
81572b7
Removed Enabled config setting
Feb 14, 2019
7332066
PR feedback
Feb 14, 2019
1a857ba
PR feedback from @hanzei
Feb 16, 2019
7948be0
Added back webhook tests, updated for MD
Feb 16, 2019
486716c
coverage
Feb 16, 2019
eb2c567
Added back formatting as Slack attachments
Feb 24, 2019
9715479
Add atlassian connect functionality
jwilander Aug 16, 2018
3f73e3d
Updated plugin.json
Feb 24, 2019
7858db3
merged the minimal webapp from hackathon
Feb 24, 2019
d993ad0
Updated .gitignore
Feb 24, 2019
1f8074c
wip Merged plugin.go from hackathon
Feb 25, 2019
f3f1924
wip oauth failures
Mar 3, 2019
ab6b48f
wip oauth2 with a static clientid seems to work
Mar 4, 2019
878601c
wip /jira connect seems to work
Mar 4, 2019
a545cae
wip trying JWT webhook setup
Mar 6, 2019
1c6e7fa
wiop
Mar 7, 2019
ad8f404
wip
Mar 11, 2019
45c7b8c
wip connect auth and the beginning of issue
Mar 14, 2019
283f784
Added webapp from hackathon
Mar 14, 2019
711c70b
Create JIRA Issue is showing up
Mar 14, 2019
46a9740
wip create issue with semi-fakeuser mapping
Mar 15, 2019
4a9ba88
JWT verification in user-config page
Mar 16, 2019
9939c9a
moved JWT verification into auth.go
Mar 16, 2019
b812816
WIP WIP WIP in the middle of something
Mar 25, 2019
ffbea0c
wip flow works, need to add encryption
Mar 31, 2019
d416bd7
User mapping works
Mar 31, 2019
f7afc19
added /jira-disconnect
Mar 31, 2019
b1a5308
Fix websocket event handling for connect and add disconnect
Mar 31, 2019
a813c39
WIP fixed websocket initialization
Mar 31, 2019
2b5f7e1
WIP - TODO encrypt Atl account ID in config
Apr 1, 2019
61cf5b3
Secured the auth flow, passing mm_token and jwt to the final endpoint
Apr 2, 2019
f35a774
Restored legacy webhook support
Apr 3, 2019
f0307a2
Process mentions in Webhooks, rearrange files
Apr 3, 2019
f10c267
Point Gopkg.toml at mattermost-server/master for now
Apr 3, 2019
f1a2756
Adding comments for posts mentioning JIRA issues
Apr 4, 2019
f8dc22e
Some error logging
Apr 4, 2019
07d015f
Cleanup
Apr 4, 2019
633d68b
5.8 compatibility: replace GetBundlePath with old-style config hacking
Apr 5, 2019
d778a9f
go test cleanup
Apr 8, 2019
19d849a
Merge branch 'jira-connect' of https://github.com/levb/mattermost-plu…
Apr 8, 2019
ae77f9f
Removed unused files
Apr 8, 2019
18aeb0b
Fixed MM-15004, no lnger requires admin to connect user
Apr 9, 2019
dea4d6b
wip prefixing and instances - appears to work with connect
Apr 10, 2019
612c863
MM-15003 Prefix KV keys with the JIRA instance ID
Apr 10, 2019
0d54fbd
Added JIRA Server and OAuth1
Apr 12, 2019
6bad155
wip style/naming
Apr 12, 2019
bf71f6b
JIRA Server auth appears to work
Apr 16, 2019
d1e96e9
Cosmetic PR feedback, fixed atlassian-connect.json
Apr 16, 2019
9da6d74
Fixed a crash if no current JIRAInsttance exists
Apr 16, 2019
5a4532b
GetJIRAClient refactor
Apr 18, 2019
46e4dbc
GetJIRACLient appears to work
Apr 18, 2019
1ab9cfd
CreateIssue works in server and cloud
Apr 19, 2019
4172120
PR feedback: ephf -> responsef
Apr 19, 2019
8793b2f
Cleanup, /jira command improvements
Apr 19, 2019
b894d35
Fixed 2 typos in 1 URL
Apr 19, 2019
c123bb7
WIP prep to having a revoke button on the confirm page
Apr 19, 2019
a6a5c54
PR feedback (style), expire OTS
Apr 23, 2019
7d18f56
PR feedback: Do not change original posts
Apr 23, 2019
c483bff
Fixed "Connect to JIRA" URL in post menu item
Apr 23, 2019
ed2463c
PR feedback: added explicit Gopkg.toml deps
Apr 24, 2019
edd3b8e
PR feedback: style and error handling
Apr 24, 2019
82f462b
PR feedback: more style
Apr 24, 2019
af9fa04
Fix tests.
crspeller Apr 24, 2019
1b0aa65
Merge branch 'levb-jira-connect' of github.com:levb/mattermost-plugin…
crspeller Apr 24, 2019
b504d64
Fix linting.
crspeller Apr 24, 2019
bbbcb50
Removed notify() from webhooks for now, to pass the tests
Apr 24, 2019
a423e75
Uncommented the tests @cristopher took out
Apr 24, 2019
ee248f3
Uncommented the test I missed
Apr 24, 2019
323192c
Minor fixes
Apr 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/coverage.txt
/plugin.exe
/mattermost-jira-plugin.tar.gz
/dist
/vendor

dist
bin
vendor

# Mac
.DS_Store
.DS_Store
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ ifneq ($(HAS_SERVER),)
cd server && env GOOS=linux GOARCH=amd64 $(GO) build -o dist/plugin-linux-amd64;
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build -o dist/plugin-darwin-amd64;
cd server && env GOOS=windows GOARCH=amd64 $(GO) build -o dist/plugin-windows-amd64.exe;
cd server && cp -r templates dist/templates
endif

# webapp/.npminstall ensures NPM dependencies are installed without having to run this all the time
Expand Down
21 changes: 14 additions & 7 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{
"id": "jira",
"name": "Jira",
"description": "Receives webhook events from JIRA and makes Mattermost posts for them.",
"version": "1.1.1",
"name": "JIRA",
"description": "Atlassian JIRA plugin for Mattermost.",
"version": "2.0.0",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
"darwin-amd64": "server/dist/plugin-darwin-amd64",
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
},
"executable": ""
}
},
"webapp": {
"bundle_path": "webapp/dist/main.js"
},
"settings_schema": {
"header": "",
"footer": "Use this webhook URL to set up the JIRA integration. See [documentation](https://about.mattermost.com/default-jira-plugin) to learn more.\n\n`https://SITEURL/plugins/jira/webhook?secret=WEBHOOKSECRET&team=TEAMURL&channel=CHANNELURL`",
"settings": [{
"key": "UserName",
"display_name": "User",
"type": "username",
"help_text": "Select the username that this integration is attached to."
}, {
"key": "JiraServerURL",
"display_name": "JIRA Server URL",
"type": "text",
"help_text": "URL of the JIRA Server to connect to, e.g. \"https://jira.internal.my-company-name.com\""
}, {
"key": "Secret",
"display_name": "Secret",
"type": "generated",
"help_text": "This secret is used to authenticate to Mattermost.",
"regenerate_help_text": "Regenerates the secret for the webhook URL endpoint. Regenerating the secret invalidates your existing JIRA integrations."
}]
}],
"footer": "Use this webhook URL to set up the JIRA integration. See [documentation](https://about.mattermost.com/default-jira-plugin) to learn more.\n\n`https://SITEURL/plugins/jira/webhook?secret=WEBHOOKSECRET&team=TEAMURL&channel=CHANNELURL`"
}
}
3 changes: 2 additions & 1 deletion server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage.txt
vendor
.depensure
dist
dist
.*.swp
Loading