-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub tokens for creating PR and approving it
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ on: | |
secrets: | ||
slackWebhook: | ||
required: true | ||
roboquatRepoPat: | ||
required: true | ||
jobs: | ||
update-plugin-platform: | ||
name: Update Platform Version from ${{ inputs.pluginName }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
env: | ||
SNAPSHOTS_HTML_FILENAME: snapshots.html | ||
steps: | ||
|
@@ -72,7 +72,7 @@ jobs: | |
if: ${{ inputs.pluginId == 'gateway-plugin' && steps.latest-version.outputs.result != steps.current-version.outputs.result }} | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: "Update Platform Version from ${{ inputs.pluginName }}" | ||
title: "[JetBrains] Update Platform Version from ${{ inputs.pluginName }}" | ||
body: | | ||
## Description | ||
This PR updates the Platform Version from ${{ inputs.pluginName }} to the latest version. | ||
|
@@ -96,14 +96,16 @@ jobs: | |
commit-message: "Update Platform Version of ${{ inputs.pluginName }} to ${{ steps.latest-version.outputs.result }}" | ||
branch: "jetbrains/${{ inputs.pluginId }}-platform" | ||
labels: "team: IDE,editor: jetbrains" | ||
# We can't use `team-reviewers` until we resolve https://github.com/gitpod-io/gitpod/issues/12194 | ||
# team-reviewers: "engineering-ide" | ||
team-reviewers: "engineering-ide" | ||
token: ${{ secrets.roboquatRepoPat }} | ||
committer: Robo Quat <[email protected]> | ||
author: Robo Quat <[email protected]> | ||
- name: Create Pull Request for Backend Plugin | ||
id: create-pr | ||
if: ${{ inputs.pluginId == 'backend-plugin' && steps.latest-version.outputs.result != steps.current-version.outputs.result }} | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: "Update Platform Version from ${{ inputs.pluginName }}" | ||
title: "[JetBrains] Update Platform Version from ${{ inputs.pluginName }}" | ||
body: | | ||
## Description | ||
This PR updates the Platform Version from ${{ inputs.pluginName }} to the latest version. | ||
|
@@ -129,13 +131,15 @@ jobs: | |
commit-message: "Update Platform Version of ${{ inputs.pluginName }} to ${{ steps.latest-version.outputs.result }}" | ||
branch: "jetbrains/${{ inputs.pluginId }}-platform" | ||
labels: "team: IDE" | ||
# We can't use `team-reviewers` until we resolve https://github.com/gitpod-io/gitpod/issues/12194 | ||
# team-reviewers: "engineering-ide" | ||
team-reviewers: "engineering-ide" | ||
token: ${{ secrets.roboquatRepoPat }} | ||
committer: Robo Quat <[email protected]> | ||
author: Robo Quat <[email protected]> | ||
- name: Auto Approve Pull Request | ||
if: ${{ inputs.pluginId == 'backend-plugin' && steps.create-pr.outputs.pull-request-number }} | ||
uses: hmarr/auto-approve-action@v3 | ||
with: | ||
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} | ||
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} | ||
- name: Get previous job's status | ||
id: lastrun | ||
uses: filiptronicek/get-last-job-status@main | ||
|
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