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

Can I mention in costom_payload? #180

Open
aj172019 opened this issue Dec 3, 2021 · 2 comments
Open

Can I mention in costom_payload? #180

aj172019 opened this issue Dec 3, 2021 · 2 comments

Comments

@aj172019
Copy link

aj172019 commented Dec 3, 2021

I want to mention in costom_payload, So I put @ before reviewer and inserted it in comtom_payload.
like this

env:
  REVIEWERS: ${{ format('<@{0}>', join(github.event.pull_request.requested_reviewers.*.login, '>, <@')) }}
with:
  custom_payload: |
            {
              attachments: [{
                 ...
                },
                {
                  title: '✅ Reviewers',
                  value: '- ${{ env.REVIEWERS }} \n',
                  short: false
                },
                {
                  ...
                }]
              }]
            }

but @ is not working.

How can I mention in custom_payload?

@sgoodman-r7
Copy link

@ahnjoonheon I am able to mention single users in custom payload.
I use the slack user_id in this format: <@u12345>
are you sure that env.REVIEWERS is in the format you expect?

@gdonati78
Copy link

To mention a Slack group you need to use the following format:
<!subteam^SUBTEAM-ID|SUBTEAM_NAME>

You can find the subteam ID through a Slack admin in your organization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants