Coder Social home page Coder Social logo

action-slack-notify's People

Contributors

baijunyao avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tomusm

action-slack-notify's Issues

Can't read property 'author ' of undefined

I'm using the following code to get slack notifications, but get an error. Do you know what I'm doing wrong?

Code

name: Lint-check

on:
  pull_request:
    branches: 
      - development

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install Front-end Dependencies
      run: yarn

    - name: Check Linting
      run: yarn prettier --check "src/**/*.js" "functions/**/*.ts"

    - name: Build Front-end
      run: yarn build

    - name: Build Firebase Back-end
      run: |
        cd functions
        npm install
        npm run build

    - name: Notify slack
      uses: baijunyao/action-slack-notify@master
      if: always()
      with:
        channel: GTF7J72LQ
        slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
        github_context: ${{ toJson(github) }}
        job_context: ${{ toJson(job) }}

Error

TypeError: Cannot read property 'author' of undefined
    at /home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:46:71
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:3:12)
    at run (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:21:12)
    at Object.<anonymous> (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:68:1)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
##[error]Cannot read property 'author' of undefined
##[error]Node run failed with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.