diff --git a/.github/workflows/reviewers.yml b/.github/workflows/reviewers.yml new file mode 100644 index 000000000..2ae5e3514 --- /dev/null +++ b/.github/workflows/reviewers.yml @@ -0,0 +1,47 @@ +name: Assign Reviewers for Uberon + +on: + pull_request: + types: [opened, synchronize] + paths: + - src/ontology/uberon-edit.obo + +jobs: + assign-reviewer: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch the entire history for all branches + + - name: Fetch base branch + run: | + git fetch origin ${{ github.base_ref }} # Fetch base branch explicitly + + - name: Check if equivalent class axiom was edited + id: check_intersection_of + run: | + git diff origin/${{ github.base_ref }}...HEAD -- src/ontology/uberon-edit.obo > diff.txt + if grep -E '^(-|\+)intersection_of:' diff.txt; then + echo "intersection_of_found=true" >> $GITHUB_ENV + else + echo "intersection_of_found=false" >> $GITHUB_ENV + fi + + - name: Assign reviewer + if: env.intersection_of_found == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + --method POST \ + --field reviewers[]=cmungall + + - name: Block PR by requesting changes + if: env.intersection_of_found == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr review ${{ github.event.pull_request.number }} --request-changes --body "Changes detected in \`src/ontology/uberon-edit.obo\` involving \`intersection_of\`. Review by specific Uberon Core Team member is required." diff --git a/src/ontology/uberon-edit.obo b/src/ontology/uberon-edit.obo index 5a5454d2b..403a8a540 100644 --- a/src/ontology/uberon-edit.obo +++ b/src/ontology/uberon-edit.obo @@ -224685,6 +224685,14 @@ relationship: dc-contributor https://orcid.org/0000-0002-4341-3265 relationship: dc-contributor https://orcid.org/0000-0003-2804-127X ! Sanjay Jain property_value: dcterms-date "2024-08-28T16:10:50Z" xsd:dateTime +[Term] +id: UBERON:8700000 +name: aorta-gonad-mesonephros +def: "A transient organ in the developing embryo composed of the dorsal aorta, developing gonads, and embryonic kidney. This structure is located in the embryonic mesoderm and serves as the primary site for the generation of definitive hematopoietic stem cells." [PMID:25686881, PMID:25749005, PMID:31813624] +is_a: UBERON:0002050 ! embryonic structure +relationship: dc-contributor https://orcid.org/0009-0005-7919-4905 +property_value: dcterms-date "2024-10-25T08:42:34Z" xsd:dateTime + [Term] id: UBERON:8700001 name: follicle associated epithelium