Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] probot #362

Closed
caicaishmily opened this issue Jan 3, 2020 · 5 comments
Closed

[Error] probot #362

caicaishmily opened this issue Jan 3, 2020 · 5 comments

Comments

@caicaishmily
Copy link

When I try add release-drafter in my .yml I got this error:

Invalid command receive,/app/index.js

Usage: probot <command> [options]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  run            run the bot
  receive        Receive a single event and payload
  help [cmd]     display help for [cmd]
{ Deprecation: [@octokit/request-error] `error.code` is deprecated, use `error.status`.
    at RequestError.get (/app/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js:29:17)
    at loadYaml (/app/node_modules/probot-config/lib/index.js:51:11) name: 'Deprecation' }
11:13:07.934Z  INFO probot: caicaishmily/actions_for_angular: No valid config found

Here is the .yml file, , Is anybody face same problem ?

name: Docker Image CI

on:
  push:
    branches:
      - master

jobs:
  update_release_draft:
    runs-on: ubuntu-latest
    steps:
      # Drafts your next Release notes as Pull Requests are merged into "master"
      - uses: release-drafter/release-drafter@v5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@jetersen
Copy link
Member

jetersen commented Jan 3, 2020

your release-drafter.yml file needs to be inside .github folder

See https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/.github/release-drafter.yml

template is required unless you use _extends

https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.yml

@caicaishmily
Copy link
Author

my .yml file is inside .github folder
There is my repo: actions_for_angular

@Casz

@jetersen
Copy link
Member

jetersen commented Jan 4, 2020

@TimonVS
Copy link
Member

TimonVS commented Jan 4, 2020

Hey! As @Casz mentions, you're indeed missing a config file for Release Drafter itself. I realize it's a bit confusing that the workflow file and configuration file have the same name and that you need two different config files.
I'll think of a better error message and a better way to explain this in the README.

@caicaishmily
Copy link
Author

It's working after I added release-drafter.yml config file, I just wanna have a try for release-drafter before I apply it in my project.

Thanks a lot @Casz, @TimonVS, BTW: Release Drafter is awsome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants