Mov quantile #53
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: "pr_opened" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
concurrency: | |
group: pr-${{ github.event.pull_request.number || github.ref }} | |
jobs: | |
check-ready: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: andymckay/[email protected] | |
if: github.event.pull_request.draft == true | |
with: | |
add-labels: 'work in progress' | |
- uses: andymckay/[email protected] | |
if: tojson(github.event.pull_request.requested_reviewers) != '[]' | |
with: | |
add-labels: 'ready for review' | |
check-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check issue | |
id: issue | |
run: | | |
echo url=$(scripts/rgh.py show_pr ${{ github.event.pull_request.number }} --json \ | |
| jq -r .issue.url) >> "$GITHUB_OUTPUT" | |
env: | |
GH_TOKEN: ${{ secrets.github_token }} | |
- name: Post Comment | |
if: | | |
steps.issue.outputs.url == '' || | |
steps.issue.outputs.url == 'null' | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: ":robot: Upon creation, pull request description does not have a link to an issue. | |
If there is a related issue, please add it to the description | |
using any of the [supported formats](https://docs.github.com/en/get-started/\ | |
writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls)." |