1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-07 14:41:10 +03:00

Merge pull request #14 from arduino/comment-on-merge

Comment on submission acceptance
This commit is contained in:
per1234
2021-04-26 01:36:41 -07:00
committed by GitHub

View File

@ -1,7 +1,7 @@
name: Manage PRs name: Manage PRs
env: env:
SUBMISSION_PARSER_VERSION: 1.0.0-rc2 # See: https://github.com/arduino/library-manager-submission-parser/releases SUBMISSION_PARSER_VERSION: 1.0.0-rc3 # See: https://github.com/arduino/library-manager-submission-parser/releases
on: on:
# pull_request_target trigger is used instead of pull_request so the token will have the write permissions needed to # pull_request_target trigger is used instead of pull_request so the token will have the write permissions needed to
@ -80,6 +80,7 @@ jobs:
type: ${{ steps.parse-request.outputs.type }} type: ${{ steps.parse-request.outputs.type }}
submissions: ${{ steps.parse-request.outputs.submissions }} submissions: ${{ steps.parse-request.outputs.submissions }}
index-entry: ${{ steps.parse-request.outputs.index-entry }} index-entry: ${{ steps.parse-request.outputs.index-entry }}
indexer-logs-urls: ${{ steps.parse-request.outputs.indexer-logs-urls }}
steps: steps:
- name: Checkout local repository - name: Checkout local repository
@ -113,6 +114,7 @@ jobs:
echo "::set-output name=type::$(echo "$REQUEST" | jq -r -c '.type')" echo "::set-output name=type::$(echo "$REQUEST" | jq -r -c '.type')"
echo "::set-output name=submissions::$(echo "$REQUEST" | jq -c '.submissions')" echo "::set-output name=submissions::$(echo "$REQUEST" | jq -c '.submissions')"
echo "::set-output name=index-entry::$(echo "$REQUEST" | jq -r -c '.indexEntry')" echo "::set-output name=index-entry::$(echo "$REQUEST" | jq -r -c '.indexEntry')"
echo "::set-output name=indexer-logs-urls::$(echo "$REQUEST" | jq -r -c '.indexerLogsURLs')"
label: label:
needs: needs:
@ -314,6 +316,24 @@ jobs:
--file - --file -
git push git push
- name: Comment that submission was accepted
uses: octokit/request-action@v2.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
route: POST /repos/{owner}/{repo}/issues/{issue_number}/comments
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
issue_number: ${{ github.event.pull_request.number }}${{ github.event.issue.number }}
body: |
|
Your submission has now been accepted! Thanks for your contribution to the Arduino Library Manager index.
The library(s) will be available for installation via Library Manager within a day's time.
You can check the logs from the Library Manager indexer for your library(s) here:
${{ needs.parse.outputs.indexer-logs-urls }}
request-review: request-review:
needs: needs:
- enabled - enabled