-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
[BUG] No jobs defined in 'jobs' #1040
Comments
|
yeah, looks like the formatting is getting chewed up there 👍 |
I don't know. Is it? I'm not familiar with YML formatting. Also still don't understand where that It's also still not clear why I've created an additional account. It's not being used, as far as I can tell. |
@thany -- you need to look at the official Github Actions documentation to see the right formatting: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions Additionally, the All of this is us sharing what we've learned about Github and how it works. I wouldn't call myself a Github Expert -- having never been an employee there. |
No offense, but the file in the Getting Started doc, shouldn't that just work? This file should be virtually identical to anyone using Danger, if I'm not mistaken, since it appears to tell Github just to "execute Danger", essentially.
Alright, thanks for clearing that up. Maybe the Getting Started should be more clear on this, too. Currently it just says "do this, do that, etc" without explaining why and what it's for.
That's fair. I'm only assuming that if this project supports Github Actions, it is tested to work with it as well, so at least one of the authors has some knowledge of how to work it. I also assumed Github, and therefor Github Actions, is the primary place where Danger would be ran. So, Github Actions not working right, seemed to me like a pretty severe problem. But it seems now that Danger was not primarily intended to work that way... If that's the case (and that's a big if, because I still don't have a clear picture), then what else is the absolute way to get Danger to run for a Github project, if not Github Actions? |
Yes @orta and I agree (I'm interpreting his comments above, not trying to put words in his mouth). The first order problem is that the Documentation Formatter/Site mangled the Yaml Example File -- that's what he meant in his comment. That's a bug with the Docs site that is less than ideal. DangerJS existed well before Github Actions -- and Github Actions is definitely still changing things regularly -- they completely changed their definition file format this November when they "exited beta". That said, I know we all want our product to be beginner friendly. So I think we sincerely appreciate your sharing your onboarding experience here! At some point we'll want to break this down into a series of actionable changes, and hopefully people in the community will have time to contribute to it. |
Describe the bug
Github says:
On the details of a workflow/action that ran.
To Reproduce
Steps to reproduce the behavior are the literal steps on Gettings Started. I had to fill in some gaps where it doesn't tell me what to do:
danger
with NPM, and added adangerfile.js
.repo
permission on the new account. Unclear why this is, or what it's for.danger.yml
.Expected behavior
I honestly don't know what to expect. I've never worked with DangerJS, or with Github Actions, or with secret tokens. However, I would most definitely not expect an error such as the above. I would expect it to at least run its job. Execute the dangerfile.js, I suppose. And because I haven't created a PR yet (the Getting started hasn't instructed me to do so, as far as I could tell), I would expect it to succeed with flying colours, because there is no PR for DangerJS to complain on just yet.
I would try creating a PR that has an issue to see if DangerJS complains on it, but I would first like things to work. Or at least not spew out errors.
Screenshots

** Your Environment**
Additional context
A better Getting Started might help a LOT.
Also I still don't quite get why I had to create that new account. I did do it, but I haven't been instructed to use it in any way yet, other than to generate that access token. Should I put that access token somewhere? If only the Getting Started would tell me the what to do more precisely. All along this document I had the feeling that it assumed I knew some magical invisible intermediate steps that have to be taken in order for the next steps to work properly.
Or maybe it's just late and someone will point out some crucial thing I overlooked.
Either way, thanks for this tool that looks to be awesome. I'm sure it will be.
The text was updated successfully, but these errors were encountered: