generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
[sc-30416] Allow generating predefined Slack user mapping #167
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
namoscato
merged 39 commits into
main
from
jakeschurch/sc-30416/cache-slack-users-to-mitigate-api-rate-limiting
Oct 13, 2025
Merged
Changes from 16 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d5098bf
feat(sc-30416): add GitHub-to-Slack user mapping generation action
jakeschurch ebd4585
feat(sc-30416): add support for user mapping file to resolve Slack us…
jakeschurch 618a7b6
feat(sc-30416): add support for user mapping file to resolve Slack us…
jakeschurch 346c9a6
[sc-30416] exec pnpm run package
jakeschurch 0cc19aa
[sc-30416] fmt
jakeschurch ae30272
[sc-30416] more testing
jakeschurch bab69f8
[sc-30416] add check
jakeschurch 854a171
[sc-30416] package dist
jakeschurch 8459f1f
refactor: split notify and generateMapping actions, remove mode input
jakeschurch d4fbe11
refactor(generate-mapping): return raw mapping JSON instead of writin…
jakeschurch 2bf6fc3
docs(readme): document SLACK_GITHUB_MAPPING_RAW for custom GitHub-to-…
jakeschurch f5a6c80
[sc-30416] docs: fmt
jakeschurch 1430d1c
[sc-30416] add new dist
jakeschurch 15aabd4
[sc-30416] remove print statements
jakeschurch 431b635
[sc-30416] fix for gitattrs
jakeschurch 251c8b8
[sc-30416] fixup
jakeschurch 5ec6eff
refactor: unify github-to-slack mapping shape validation and add type…
jakeschurch e48f0df
[sc-30416] fixup readme
jakeschurch 2b3500d
fixup|refactor(getMessageAuthorFactory): extract Slack user lookup lo…
jakeschurch 44a8537
[sc-30416] add requested feedback on action input / output names
jakeschurch efee6c5
[sc-30416] make messageAuthor caching more readable
jakeschurch d5e06b7
[sc-30416] improve code readability
jakeschurch e2ab954
[sc-30416] bundle
jakeschurch 9c5dea5
[sc-30416] bug: skip deactivated users
jakeschurch dc871c3
[sc-30416] remove deleted
jakeschurch b5eb3a9
[sc-30416] skip adding users to cache if error thrown
jakeschurch fcede99
[sc-30416] run bundle
jakeschurch d6f8d7a
Tighten type predicates
namoscato a43dead
Deepen getSlackUserFromName
namoscato 6d32203
Revert setFailed changes
namoscato 4edb065
Simplify githubToSlackMapping
namoscato 927703b
Fix setFailed handling
namoscato 4732a6a
Handle null githubUserMapping values
namoscato 1663b68
Favor githubUserMapping over withSlackUserId
namoscato b1f2cb5
Rename entrypoints
namoscato 942c96a
Make SlackClient dependencies optional
namoscato df40717
Update documentation
namoscato f6e4e4c
Gracefully handle missing artifact
namoscato 0c4fd2d
Merge branch 'main' of github.com:Fieldguide/action-slack-deploy-pipe…
namoscato 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| dist/** -diff linguist-generated=true | ||
| dist/**/* -diff linguist-generated=true |
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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| name: 'Generate User Cache Mapping' | ||
| description: 'Creates json file of slack users by github or member login' | ||
| author: 'Fieldguide' | ||
| inputs: | ||
| github_token: | ||
| description: 'Repository GITHUB_TOKEN or personal access token secret' | ||
| required: false | ||
| default: ${{ github.token }} | ||
| org: | ||
| description: 'name of github org to fetch user list' | ||
| required: true | ||
| output_path: | ||
| description: 'output of cache mapping' | ||
| required: false | ||
| default: 'data/github_to_slack.json' | ||
namoscato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| outputs: | ||
| raw_mapping_json: | ||
| description: 'Raw JSON mapping of Slack user details by GitHub user' | ||
namoscato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| runs: | ||
| using: 'node20' | ||
| main: '../../../dist/generateMapping/index.js' | ||
| branding: | ||
| icon: bell | ||
| color: purple | ||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.