Test to see the PR behavior when the projectBaseDir is changed #1117
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: Closed Pull Request | |
on: | |
# pull_request_target runs the fork code in our context. Do not use it elsewhere! | |
# Here, it is OK because we're merging external PR and we're 100% sure about its content. | |
pull_request_target: | |
types: ["closed"] | |
jobs: | |
CreateNote_job: | |
name: Create release notes card | |
runs-on: ubuntu-latest | |
permissions: | |
# Limit available permissions to a required minimum, because we run under pull_request_target | |
repository-projects: write | |
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals | |
if: | | |
github.event.pull_request.head.repo.full_name != github.repository | |
&& github.event.pull_request.user.type != 'Bot' | |
&& github.event.pull_request.merged | |
steps: | |
- uses: sonarsource/gh-action-lt-backlog/CreateNote@v1 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
column-id: 4971951 | |
note: ${{ format('Release notes{0} {1} implemented {2}{3}', ':', github.event.pull_request.user.login, '#', github.event.pull_request.number) }} |