github.com/prebid/prebid-server/v2@v2.18.0/.github/workflows/cross-repo-issue.yml (about)

     1  name: Cross-repo Issue Creation
     2  
     3  on:
     4    pull_request_target:
     5      types: [closed]
     6      branches:
     7        - "master"
     8  
     9  jobs:
    10    cross-repo:
    11      runs-on: ubuntu-latest
    12      steps:
    13        - name: Generate token
    14          id: generate_token
    15          uses: tibdex/github-app-token@v1
    16          with:
    17            app_id: ${{ secrets.XREPO_APP_ID }}
    18            private_key: ${{ secrets.XREPO_PEM }}
    19        - name: create issue in other repo
    20          if: "!contains(github.event.pull_request.labels.*.name, 'do not port') && github.event.pull_request.merged"
    21          env:
    22            GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
    23          run: |
    24            echo -e "A PR was merged over on PBS-Go\n\n- [https://github.com/prebid/prebid-server/pull/${{github.event.number}}](https://github.com/prebid/prebid-server/pull/${{github.event.number}})\n- timestamp: ${{ github.event.pull_request.merged_at}}" > msg
    25            export msg=$(cat msg)
    26            gh issue create --repo prebid/prebid-server-java --title "Port PR from PBS-Go: ${{ github.event.pull_request.title }}" \
    27                --body "$msg" \
    28                --label auto