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

meta(gh): Add a status check for changelogs #700

Merged
merged 23 commits into from
Aug 18, 2020
Merged

meta(gh): Add a status check for changelogs #700

merged 23 commits into from
Aug 18, 2020

Conversation

untitaker
Copy link
Member

@untitaker untitaker commented Jul 31, 2020

#skip-changelog

@untitaker untitaker requested a review from a team July 31, 2020 13:31
@untitaker untitaker marked this pull request as draft July 31, 2020 13:31
dangerfile.ts Outdated
const isTrivial = (danger.github.pr.body + danger.github.pr.title).includes('#trivial');

if (!hasChangelog !hasPyChangelog && !isTrivial) {
warn('Please add a changelog entry in either CHANGELOG.md or py/CHANGELOG.md, or add #trivial to the PR title.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the title, can we make it a comment or the PR description?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copypasted this from the javascript repo and thought i'd add an instructional msg -- turns out it does use both title and body

@untitaker untitaker marked this pull request as ready for review August 6, 2020 01:08
@untitaker
Copy link
Member Author

@jan-auer tried out github actions over hackweek. it's better. should I move this dangerjs stuff into gha as well?

@jan-auer
Copy link
Member

jan-auer commented Aug 17, 2020

@untitaker yes, i think that would make a lot of sense.

Do you see a way to get this working for external contributions as well? Ideally, this works on all PRs similar to all those license bots.

@jan-auer
Copy link
Member

Update: You can just use the github action integration documented here:
https://danger.systems/js/guides/getting_started.html#setting-up-danger-to-run-on-your-ci

secrets.GITHUB_TOKEN will automatically be a token scoped to this repo (no need to create one). That way it also works for external PRs.

@untitaker untitaker closed this Aug 17, 2020
@untitaker untitaker reopened this Aug 17, 2020
@untitaker
Copy link
Member Author

So it seems that GHA is not really running here, not sure what to do

@github-actions
Copy link

github-actions bot commented Aug 18, 2020

Messages
📖 Opted out of changelogs due to #skip-changelog.

Generated by 🚫 dangerJS against d1661d1

@getsentry getsentry deleted a comment from getsentry-bot Aug 18, 2020
Copy link
Member Author

@untitaker untitaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i approve

@jan-auer jan-auer merged commit e31bcc5 into master Aug 18, 2020
@jan-auer jan-auer deleted the ci/dangerjs branch August 18, 2020 10:44
@jan-auer jan-auer changed the title ci: Try out dangerjs meta(gh): Add a status check for changelogs Aug 18, 2020
jan-auer added a commit that referenced this pull request Aug 18, 2020
* master:
  fix: Coerce missing PR body to empty string
  meta(gh): Add a status check for changelogs (#700)
  ref(server): Manually control concurrent upstream requests (#678)
  fix(docs): Clarify sooner which mode to choose (#709)
  chore(config): Remove config for emitting attachment flags (#718)
  fix(protocol): Fix docs typo (#719)
  fix(doc): Add missing newlines (#717)
  ci(release): Add killswitch via issues w/ release-blocker label (#714)
  fix: Add changelog entry for #712 (#716)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants