Automate changeset feedback #13496
This file contains hidden or 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: Automate changeset feedback | |
| on: | |
| pull_request_target: | |
| branches: ['master'] | |
| permissions: | |
| pull-requests: write | |
| actions: none | |
| checks: none | |
| contents: none | |
| deployments: none | |
| issues: none | |
| packages: none | |
| pages: none | |
| repository-projects: none | |
| security-events: none | |
| statuses: none | |
| jobs: | |
| feedback: | |
| # prevent running towards forks and version packages | |
| if: github.repository == 'backstage/backstage' && github.event.pull_request.user.login != 'backstage-service' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| # Fetch the commit that's merged into the base rather than the target ref | |
| # This will let us diff only the contents of the PR, without fetching more history | |
| ref: 'refs/pull/${{ github.event.pull_request.number }}/merge' | |
| - name: fetch base | |
| run: git fetch --depth 1 origin ${{ github.base_ref }} | |
| - uses: backstage/actions/changeset-feedback@v0.6.4 | |
| name: Generate feedback | |
| with: | |
| diff-ref: 'origin/master' | |
| marker: <!-- changeset-feedback --> | |
| issue-number: ${{ github.event.pull_request.number }} | |
| bot-username: backstage-goalie[bot] | |
| app-id: ${{ secrets.BACKSTAGE_GOALIE_APPLICATION_ID }} | |
| private-key: ${{ secrets.BACKSTAGE_GOALIE_PRIVATE_KEY }} | |
| installation-id: ${{ secrets.BACKSTAGE_GOALIE_INSTALLATION_ID }} |