-
Notifications
You must be signed in to change notification settings - Fork 83
Support for slackUserIdFromEmail slackUserIdsFromCommitters commands #175
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
c9ea4ea
adding slack file send
senthilhns e613989
added all file send params
senthilhns 1e8144d
adding slack file upload
senthilhns e9e524d
adding test files
senthilhns 577015f
modifed plugin tests to check for request body similar to previous cases
senthilhns 56308a2
adding output env vars
senthilhns 794e5d8
updating slack file upload instructions
senthilhns 8ed5a42
handling filename arg is empty case
senthilhns 65e5b61
Update plugin.go
senthilhns 1d2a653
not creating any tmp files if DRONE_OUTPUT not set
senthilhns ed9085e
removing DRONE_OUTPUT usage
senthilhns 93cfc24
Update README.md
Ompragash f2a5e48
Update README.md
Ompragash 26a9085
Update plugin.go
Ompragash 0b3ad75
Update README.md
Ompragash 834d356
Merge branch 'master' into master
Ompragash e4b93e3
Merge branch 'drone-plugins:master' into master
senthilhns 3ff0afc
adding get slack id from email functionality
senthilhns f47fed0
getting all slack ids of commiters from git
senthilhns 3570edf
updating arm64 docker file
senthilhns 2582430
added windows git command for getting commiters
senthilhns 54c92c0
Updating usage for get slack id support in README.MD
senthilhns edcaa08
test update for commiter log
mindzaurus 56736d3
adding git commit id ranges for getting commiter ids
mindzaurus d00b486
adding HEAD and sha commit ranges, HEAD and number sha commit ranges
senthilhns 0fb94d7
Updating usage from Get the Slack IDs of all committers
senthilhns b3f6356
getting old and new commit ids from HEAD^ and HEAD
senthilhns 4658812
making slack id of commiters to json string
senthilhns 1b29358
adding email len == 0 check and returning error
senthilhns 9817613
taking csv list for getSlackid from emails
mindzaurus 7313a6a
testing message sending to user
senthilhns 2ebebdf
sending dm same as channel msg
senthilhns ccdb731
added fmt prints
senthilhns ad7014b
changing fmt.Print to log.Print
senthilhns 1783391
removing bash git command with go git package
senthilhns 995a22d
removing git bash install from linux docker files
senthilhns d75a643
adding test functions
senthilhns ada0510
removing debug print
senthilhns 270c150
adding test cases for no commiters, slack lookup failure, rate limit …
senthilhns 2516b21
Update plugin.go
senthilhns 583f55e
Update plugin.go
senthilhns cb99f84
Update plugin.go
senthilhns 7e81e26
Update plugin.go
senthilhns 1836dc6
adding time package
senthilhns 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 |
|---|---|---|
|
|
@@ -88,6 +88,26 @@ Make sure to replace `your_access_token` with your actual Slack access token and | |
| If you provide an access token, it will use the Slack API to send the message. | ||
|
|
||
|
|
||
| ### Get Slack Id of a user from a Email ID | ||
| ```bash | ||
| docker run --network host --rm \ | ||
| -e PLUGIN_ACCESS_TOKEN=your_access_token \ | ||
| -e [email protected] \ | ||
| plugins/slack | ||
| ``` | ||
| Output will be stored in the FOUND_SLACK_ID environment variable | ||
| Make sure to replace `your_access_token` with your actual Slack access token and adjust | ||
|
|
||
| ### Get the Slack IDs of all commiters from a git repo | ||
| ```bash | ||
| docker run --network host --rm \ | ||
| -e PLUGIN_ACCESS_TOKEN=your_access_token \ | ||
| -e PLUGIN_COMMITTER_LIST_GIT_PATH=/harness \ | ||
| plugins/slack | ||
| ``` | ||
| Output will be stored in the COMMITTER_SLACK_ID_LIST environment variable as comma separated values. | ||
| Make sure to replace `your_access_token` with your actual Slack access token and adjust. | ||
|
|
||
| ## Release Preparation | ||
|
|
||
| Run the changelog generator. | ||
|
|
||
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,9 +1,11 @@ | ||
| FROM plugins/base:multiarch | ||
| FROM alpine:3.20 | ||
|
|
||
| LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
| org.label-schema.name="Drone Slack" \ | ||
| org.label-schema.vendor="Drone.IO Community" \ | ||
| org.label-schema.schema-version="1.0" | ||
|
|
||
| RUN apk add --no-cache git bash | ||
|
|
||
| ADD release/linux/amd64/drone-slack /bin/ | ||
| ENTRYPOINT ["/bin/drone-slack"] |
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,9 +1,11 @@ | ||
| FROM plugins/base:multiarch | ||
| FROM alpine:3.20 | ||
|
|
||
| LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
| org.label-schema.name="Drone Slack" \ | ||
| org.label-schema.vendor="Drone.IO Community" \ | ||
| org.label-schema.schema-version="1.0" | ||
|
|
||
| RUN apk add --no-cache git bash | ||
|
|
||
| ADD release/linux/arm64/drone-slack /bin/ | ||
| ENTRYPOINT ["/bin/drone-slack"] | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.