Skip to content

Add crosslinking proteomics SDRF annotations (batch 14/15, 50 datasets) #378

Add crosslinking proteomics SDRF annotations (batch 14/15, 50 datasets)

Add crosslinking proteomics SDRF annotations (batch 14/15, 50 datasets) #378

# Posts the SDRF change report as a sticky PR comment with sdrf:* labels, including findings
# that allow-listed AI review bots posted on the PR. Re-renders when the report finishes, when
# a bot comments, and when a bot reviews (via sdrf-external-review-trigger.yml).
#
# workflow_run and issue_comment give this job a write token even for fork PRs, so it never
# checks out or runs PR code: scripts come from the default branch, the report artifact and the
# bot comments are treated as data, and the PR is resolved through the API.
# Like every workflow_run / issue_comment workflow, it only takes effect on the default branch.
name: SDRF change comment
on:
workflow_run:
workflows: ["SDRF change report", "SDRF external review trigger"]
types: [completed]
issue_comment:
types: [created, edited, deleted]
permissions:
contents: read
actions: read
issues: write
pull-requests: write
concurrency:
group: sdrf-change-comment-${{ github.event.issue.number || github.event.workflow_run.head_sha }}
cancel-in-progress: false
jobs:
comment:
if: >-
(github.event_name == 'workflow_run' &&
contains(fromJSON('["pull_request", "pull_request_review", "pull_request_review_comment"]'),
github.event.workflow_run.event) &&
github.event.workflow_run.conclusion == 'success') ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
contains(fromJSON('["qodo-code-review[bot]", "coderabbitai[bot]",
"copilot-pull-request-reviewer[bot]"]'), github.event.comment.user.login))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Post comment and labels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.issue.number }}
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
run: python .github/scripts/sdrf_change_post.py