fastlane / github-actions

MIT License
75 stars 7 forks source link

Add `communicate-on-pull-request-released` GitHub Action #24

Closed mollyIV closed 4 years ago

mollyIV commented 4 years ago

Description

The action will:

Please note that this is just an action implementation. It does not take any effect itself. A new workflow which uses the action will be created.

Testing

Manual testing

A workflow file used for a manual testing:

name: Processing release
on: 
  release:
    types: [published]

jobs:   
  communicate-on-pull-request-released:
    name: PR released
    runs-on: ubuntu-latest    
    steps:
    - uses: actions/checkout@master
      with:
        ref: refs/heads/master
    - uses: mollyIV/github-actions/communicate-on-pull-request-released@communicate-on-pull-request-released
      with:
        repo-token: "${{ secrets.BOT_TOKEN }}"

Please not that the action trigger is a release [published].

My bot is set to my private account, that's why you see the comments from the author.

image

A comment added to pull requests number 4 and 6.

image

A comment added to a referenced issue number 1 from a pull request description's.

image

šŸŽ‰

Unit testing

To test the changes, run unit tests by executing npm test (followed by npm install to install the package dependencies).