Add capacity
, free_capacity
, clear
, len
, is_empty
and is_full
functions to priority_channel::{Sender, Receiver}
#4486
Workflow file for this run
This file contains 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
name: Matrix bot | |
on: | |
pull_request_target: | |
types: [opened, closed] | |
jobs: | |
new-pr: | |
if: github.event.action == 'opened' && github.repository == 'embassy-rs/embassy' | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: send message | |
uses: s3krit/[email protected] | |
with: | |
room_id: ${{ secrets.MATRIX_ROOM_ID }} | |
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
message: "New PR: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" | |
server: "matrix.org" | |
merged-pr: | |
if: github.event.action == 'closed' && github.event.pull_request.merged == true && github.repository == 'embassy-rs/embassy' | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: send message | |
uses: s3krit/[email protected] | |
with: | |
room_id: ${{ secrets.MATRIX_ROOM_ID }} | |
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
message: "PR merged: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" | |
server: "matrix.org" | |
abandoned-pr: | |
if: github.event.action == 'closed' && github.event.pull_request.merged == false && github.repository == 'embassy-rs/embassy' | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: send message | |
uses: s3krit/[email protected] | |
with: | |
room_id: ${{ secrets.MATRIX_ROOM_ID }} | |
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
message: "PR closed without merging: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" | |
server: "matrix.org" |