Skip to content

Commit

Permalink
Add pr-comment-welcome.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
na4zagin3 authored Oct 23, 2023
1 parent e653c5a commit 2d6df80
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pr-comment-welcome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Pull Request Welcome Comment Flow

on:
pull_request_target:
types: [opened]
# tags-ignore and/or paths does not work with pull_request_target
# tags-ignore:
# - "automated pr"
# paths:
# - "packages/**"

jobs:
welcome:
name: Welcome comment
runs-on: ubuntu-latest
steps:

- name: comment PR
uses: actions/github-script@v2
env:
HEAD_BRANCH: ${{ github.head_ref }}
GITHUB_ACTOR: ${{ github.actor }}
with:
github-token: ${{ github.token }}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `
🎉🎉🎉 Thank you for sending a PR!
If this PR is to add new or updated SATySFi libraries, I would like you to include your new library in the package snapshots, by following the instructions below.
After the CI passes, choose “automatic follow-up” options to add your libraries to add snapshots.
Please leave a comment in case you don't want.
**Notes:** I recommend adding your libraries to the snapshot with the latest develop version as well
if your library supports the latest stable version,
because the snapshot with the latest develop version will be the snapshot with the the comming SATySFi stable version.
Thanks!
`
})

0 comments on commit 2d6df80

Please sign in to comment.