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

chore(IDX): update slack notification #181

Merged
merged 9 commits into from
Jun 5, 2024
Merged

Conversation

cgundy
Copy link
Member

@cgundy cgundy commented Jun 4, 2024

It seems that the action "ready for review" triggers before "review requested" so the payload doesn't always have the complete teams. This fix changes the trigger and will both trigger if a PR is directly opened as a non-draft and if additional reviewers are added later.

@sa-github-api sa-github-api changed the base branch from master to mirroring June 4, 2024 15:30
@cgundy cgundy marked this pull request as ready for review June 4, 2024 15:41
@cgundy cgundy requested a review from a team as a code owner June 4, 2024 15:41
@cgundy cgundy marked this pull request as draft June 4, 2024 15:43
@cgundy cgundy closed this Jun 4, 2024
@cgundy cgundy reopened this Jun 4, 2024
@cgundy cgundy marked this pull request as ready for review June 4, 2024 18:11
@basvandijk basvandijk added this pull request to the merge queue Jun 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 4, 2024
@cgundy cgundy added this pull request to the merge queue Jun 5, 2024
done
echo "channels=${CHANNELS}" >> $GITHUB_OUTPUT
TEAM=${{ steps.get-reviewers.outputs.result }}
CHANNEL=$(jq -r ".$TEAM" .github/workflows/team-channels.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should handle the case where the team doesn't have a channel assigned yet. The following step would fail in that case I assume.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want it to fail? So we know the team can't be notified?

Merged via the queue into mirroring with commit 33efe5c Jun 5, 2024
19 checks passed
@cgundy cgundy deleted the update-slack-notification branch June 5, 2024 06:39
gitlab-dfinity pushed a commit that referenced this pull request Jun 5, 2024
GitHub Sync PR#181 / chore(IDX): update slack notification

[GitHub PR 181](#181) (branch: update-slack-notification) 

See merge request dfinity-lab/public/ic!19649
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

Successfully merging this pull request may close these issues.

3 participants