-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/add worflow notify #62
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 all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
af7b776
feat: add notify workflow
christianncode 2969365
sending data as a message with slack incomming webhook URL
christianncode 0624c35
update notify message
christianncode b307b5b
update payload
christianncode d0556fe
update custom message
christianncode 06bec6b
update custom message v2
christianncode ad9483b
update repository URL
christianncode b447596
feat: update trigger
christianncode f23847e
feat: update message
christianncode 006da36
Potential fix for code scanning alert no. 20: Workflow does not conta…
christianncode cd6c79d
feat: update slack message
christianncode 97b0c4b
Merge branch 'feature/AddWorflowNotify' of https://github.com/christi…
christianncode 83b2052
feat: update slack message v2
christianncode 6dfc500
Merge branch 'main' into feature/AddWorflowNotify
christianncode 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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Notify with Slack | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| on: | ||
| pull_request: | ||
| types: [opened, labeled] | ||
|
|
||
| jobs: | ||
| notify: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ contains(github.event.pull_request.labels.*.name,'notify-slack') }} | ||
| steps: | ||
| - name: Post a message in a channel | ||
| uses: slackapi/slack-github-action@v2.1.1 | ||
| with: | ||
| webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
| webhook-type: incoming-webhook | ||
| payload: | | ||
| text: "Hello!!!!!!!!!!!" | ||
| blocks: | ||
| - type: "section" | ||
| text: | ||
| type: "mrkdwn" | ||
| text: "<${{ github.event.repository.html_url }}|*Repository*> :star: \n | ||
| *PR*: ${{ github.event.pull_request.title }} \n | ||
| *Pushed by*: ${{ github.event.pull_request.user.login }} \n | ||
| *Branch*: ${{ github.event.pull_request.base.ref }} | ||
| " | ||
| accessory: | ||
| type: "image" | ||
| image_url: "${{ github.event.repository.owner.avatar_url }}" | ||
| alt_text: "User Avatar" | ||
| - type: "section" | ||
| fields: | ||
| - type: "mrkdwn" | ||
| text: "*Job Status*: ${{ job.status }}" | ||
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.