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

PR Suggestions for #991 #1192

Merged
merged 341 commits into from
Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
341 commits
Select commit Hold shift + click to select a range
77cf01c
Release 10.1.1
orta Apr 16, 2020
56e1cb6
Update homebrew script
orta Apr 16, 2020
f20081c
Merge branch 'master' of https://github.com/danger/danger-js
orta Apr 16, 2020
968d9de
Update uploadDockerImage.yml
f-meloni Apr 22, 2020
6c90cce
Merge pull request #1034 from danger/fix_upload_docker_image_script
orta May 2, 2020
17ce5d5
Fix: BitBucketServer does not encode filepath
May 7, 2020
0897c6c
Merge pull request #1037 from HonzaMac/master
orta May 7, 2020
69cac62
Improved error messaging
orta May 7, 2020
4ba6cce
Merge branch 'master' of https://github.com/danger/danger-js
orta May 7, 2020
10f6703
Release 10.2.0
orta May 7, 2020
ec63cac
Update bug_report.md
orta May 8, 2020
aec77d4
Add some logs to GitHubAPI
mokagio May 17, 2020
450dd0c
More logging
mokagio May 17, 2020
c48317b
Remove extra logging that made it to master accidentally
mokagio May 17, 2020
bb1e135
Merge pull request #1041 from danger/remove-extra-logging-added-by-mi…
orta May 17, 2020
d7b00df
fix: wait for close event on spawned process in local git
gzaripov May 23, 2020
d87f978
chore: update changelog
gzaripov May 25, 2020
bbfd2e3
fix grammar
NotMoni Jun 21, 2020
6ca021f
update me and added me to contributors.
NotMoni Jun 21, 2020
7a1d10c
Merge pull request #1049 from NotMoni/NotMoni-patch-1
orta Jun 21, 2020
1aef2c3
Merge branch 'master' into fix-git-commits
orta Jun 21, 2020
d868fca
Merge pull request #1045 from danger/fix-git-commits
orta Jun 21, 2020
3f166ae
document how to disable transpilation
rzgry Jun 21, 2020
067e7af
Merge pull request #1050 from rzgry/doc-disable-transpile
orta Jun 21, 2020
2ff41e7
Get blob url for pr commit.
doniyor2109 Jun 24, 2020
053a454
Get blob url for pr commit.
doniyor2109 Jun 24, 2020
a77ce21
Update changelog
doniyor2109 Jun 24, 2020
af9ca0d
Merge pull request #1051 from doniyor2109/master
orta Jun 24, 2020
d1f5e71
Prepare for release
orta Jun 24, 2020
7904d79
Release 10.2.1
orta Jun 24, 2020
924a88f
Create FUNDING.yml
orta Jun 27, 2020
b6e2f23
Update Bamboo CI source for compatibility with 7.0 version
Jul 9, 2020
1eea772
Update package.json
Jul 13, 2020
7cf21f8
Revert "Update package.json"
Jul 13, 2020
5ee6491
Merge cliArgs to fix danger-local custom base branch
Jul 24, 2020
7f6d2b3
Merge pull request #1058 from ahobson/fix-danger-local-main-branch-1057
orta Jul 24, 2020
8d5722d
Changelog
orta Jul 24, 2020
92c7806
Release 10.3.0
orta Jul 24, 2020
edeb57b
Merge pull request #1053 from nataliSM/master
orta Aug 9, 2020
e92632e
ignoreInvalidInlineComments - new option to not post invalid-inline-c…
Aug 16, 2020
c36f2a2
update CHANGELOG.md
Aug 16, 2020
f20f4b0
add test
Aug 17, 2020
34d8640
Update CHANGELOG.md
pinkasey Aug 17, 2020
bd71fd3
CR changes
Aug 17, 2020
8e4cbc5
comments
Aug 17, 2020
ef7caa5
ignoreOutOfDiffComments. It's final.
Aug 19, 2020
547e4a3
Merge pull request #1061 from pinkasey/eyal_ignore_invalid_inline_com…
orta Aug 19, 2020
ef9167b
Maybe gets GitLab doc'd
orta Aug 19, 2020
779938f
Update changelog
orta Aug 19, 2020
1a3df66
Release 10.3.1
orta Aug 19, 2020
f0a624b
Initial support for danger-ts
orta Aug 19, 2020
d765e80
Release 10.4.0
orta Aug 19, 2020
9ae0d70
defense code for lower gitlab version
iShawnWang Aug 29, 2020
edb2469
Merge pull request #1064 from iShawnWang/master
orta Aug 29, 2020
da6e9f2
Lookup tsconfig.json from location of dangerfile
Igorbek Sep 2, 2020
fb6dbd7
Update CHANGELOG
Igorbek Sep 2, 2020
6468fda
Fix tests for win32
Igorbek Sep 3, 2020
c499a87
Use relative path to fix win32 test
Igorbek Sep 3, 2020
385accf
Merge pull request #1068 from Igorbek/tsconfig-lookup
orta Sep 3, 2020
01f9c94
bug/1070 Upgrade node-fetch to 2.6.1 to fix GHSA-w7rc-rwvf-8q5r
hmcc Sep 11, 2020
fb2829b
Update CHANGELOG
hmcc Sep 11, 2020
cbe0c9f
Add some env var aliases
orta Sep 21, 2020
12a1ad5
Merge pull request #1071 from hmcc/bug/1070
orta Sep 25, 2020
a28c927
Merge branch 'master' of https://github.com/danger/danger-js into master
orta Sep 25, 2020
9ffcf72
CHANGELOG faff
orta Sep 25, 2020
3a48b89
Release 10.4.1
orta Sep 25, 2020
f8941dd
fix: use new token api for apps
wardpeet Sep 30, 2020
533b0b1
Merge pull request #1073 from wardpeet/patch-1
orta Sep 30, 2020
bd6746d
CHANGELOG
orta Sep 30, 2020
433e1dd
Release 10.5.0
orta Sep 30, 2020
3cff430
Fix order
orta Sep 30, 2020
31db8a6
Fix problem when trying to update main comment with inline comment
HelloCore Oct 9, 2020
a2c554a
Update testcase
HelloCore Oct 9, 2020
6df95f8
Update changelog
HelloCore Oct 9, 2020
16e2f8f
Update CHANGELOG.md
HelloCore Oct 12, 2020
9b28d2d
Merge pull request #1076 from HelloCore/fix/bitbucket-cloud-comment-c…
orta Oct 12, 2020
a93336d
fix: use fallbacks to get PR id for CodeBuild
alexandermendes Oct 20, 2020
703534a
docs: update changelog
alexandermendes Oct 20, 2020
109fa2f
Fix link to JS reference
tshakah Oct 21, 2020
061bf1a
test: fix async test assertions
alexandermendes Oct 29, 2020
36f636f
Merge pull request #1080 from tshakah/patch-1
orta Nov 3, 2020
d8e3cef
Merge pull request #1079 from alexandermendes/fix-1077
orta Nov 3, 2020
6c8939b
CHANGELOG
orta Nov 3, 2020
7206bdf
Release 10.5.1
orta Nov 3, 2020
c74aa2f
Fix changelog
orta Nov 3, 2020
49215d6
Fix unfinished sentence in docs
revolter Nov 4, 2020
b370e04
Merge pull request #1082 from revolter/patch-1
orta Nov 5, 2020
423e6f8
add danger.git.head and danger.git.base
jamiebuilds Nov 18, 2020
dbb7a62
Merge pull request #1086 from jamiebuilds/git-head-base
orta Nov 19, 2020
e1c10ec
Prepare for release
Nov 19, 2020
22bfa2b
Release 10.5.2
Nov 19, 2020
3858ce8
Fix git localGetCommits shadowed variable
hmschreiner Nov 19, 2020
02f60f4
Merge pull request #1087 from hmschreiner/fix-local-get-commits-shado…
orta Nov 19, 2020
82e3e8f
Prepare for release
orta Nov 19, 2020
5ec03d2
Release 10.5.3
orta Nov 19, 2020
f5be293
retrieve staging cli args runner side
g3offrey Nov 27, 2020
c793fd1
Merge pull request #1088 from g3offrey/master
orta Nov 27, 2020
1420b13
PRepare for release
orta Nov 27, 2020
f502880
Release 10.5.4
orta Nov 27, 2020
7ee040e
Use markdown styled icons instead of unicode chars
JanStevens Dec 9, 2020
94f3592
fix: update tests to match with new emoji
JanStevens Dec 9, 2020
716ef69
build: update changelog
JanStevens Dec 9, 2020
8b1fe48
fix: update snapshots
JanStevens Dec 10, 2020
228efc5
Add env variable to disable transpiling with typescript
OzzieOrca Dec 14, 2020
fe53d94
add path pattern filter option to linesOfCode
MelvinVermeer Dec 23, 2020
1fe474b
feat: add option 'removePreviousComments'
davidhouweling Dec 23, 2020
a572368
feat: add option 'newComment'
davidhouweling Dec 23, 2020
f73d0b8
chore: add changelog note
davidhouweling Dec 25, 2020
39d3cf8
update the changelog
MelvinVermeer Dec 28, 2020
9c48182
Add tests for the linesOfCode filter
MelvinVermeer Dec 28, 2020
1a9ab43
Update the JSDoc
MelvinVermeer Dec 28, 2020
3d5503f
Update source/runner/templates/bitbucketCloudTemplate.ts
JanStevens Dec 30, 2020
daa65e4
fix: update specs
JanStevens Dec 30, 2020
cf39ac0
Merge pull request #1095 from MelvinVermeer/lines-of-code-pattern
orta Jan 4, 2021
7157ea1
Merge branch 'master' into feat/547-delete-new-comment
orta Jan 4, 2021
a461e43
Merge pull request #1096 from davidhouweling/feat/547-delete-new-comment
orta Jan 4, 2021
f82e1f7
Merge branch 'master' into patch-1
orta Jan 4, 2021
3a90dec
Merge pull request #1093 from OzzieOrca/patch-1
orta Jan 4, 2021
79764c5
Merge branch 'master' into patch-1
orta Jan 4, 2021
fccf835
Merge pull request #1092 from JanStevens/patch-1
orta Jan 4, 2021
6f2f0ce
Release 10.6.0
orta Jan 4, 2021
ef4a2ae
feat: gitlab add MR approvals related information
kelvin-lemon Jan 8, 2021
307f714
Update changelog
orta Jan 25, 2021
53f7c21
Update GH Actions docs
orta Jan 25, 2021
ca19599
Adds a note
orta Jan 25, 2021
700eede
Fix advice
orta Jan 25, 2021
c62fb24
Improve github actions detection
orta Jan 28, 2021
2da8007
Release 10.6.1
orta Jan 28, 2021
15f32f1
Merge pull request #1098 from kelvin-lemon/feature/add-gitlab-MR-appr…
orta Feb 3, 2021
6a0e668
Organize some imports for cleanliness
fbartho Feb 3, 2021
14dd4f3
[feat] Add Codemagic.io as a new CI Source
fbartho Feb 3, 2021
3a0ff79
Merge pull request #1103 from danger/fb/codemagic
orta Feb 4, 2021
e1f7952
Convert internal links from master to main
orta Feb 4, 2021
511896a
More work on porting to main
orta Feb 4, 2021
b0ea5cd
Don't change other people's repos
orta Feb 4, 2021
6cb7b55
Merge pull request #1104 from danger/master-main
orta Feb 4, 2021
03c44a2
Vbmpu
orta Feb 4, 2021
913db0e
Release 10.6.2
orta Feb 4, 2021
f92cf76
also here don't change other repos from master to main yet
lode Feb 4, 2021
6a133e1
fix another internal reference
lode Feb 4, 2021
c4fa130
Merge pull request #1105 from lode/patch-1
orta Feb 4, 2021
7702589
Log failure to update status also when not in verbose mode.
rogerluan Feb 18, 2021
4a656a3
Fix Bitrise's ciRunURL underlying env var.
rogerluan Feb 18, 2021
aa9888a
Add entry to CHANGELOG.md.
rogerluan Feb 18, 2021
ea9adef
Add entry to CHANGELOG.md.
rogerluan Feb 18, 2021
008a70f
Simplify Bitrise env vars used to get repo slug.
rogerluan Feb 18, 2021
333d4af
Add entry to CHANGELOG.md.
rogerluan Feb 18, 2021
7fe1d7c
Merge pull request #1112 from rogerluan/patch-1
orta Feb 18, 2021
8eecb0b
Change CHANGELOG.md merge strategy to union.
rogerluan Feb 18, 2021
35a98bb
Merge pull request #1116 from rogerluan/changelog-union-merge-strategy
orta Feb 18, 2021
6b94685
Merge branch 'main' into patch-2
rogerluan Feb 18, 2021
e6191c6
Merge branch 'main' into simplify-bitrise-env-vars
rogerluan Feb 18, 2021
84b75ce
Add changelog entry for #1116.
rogerluan Feb 18, 2021
d351a2a
Merge pull request #1115 from rogerluan/simplify-bitrise-env-vars
orta Feb 22, 2021
39f2fdd
Merge branch 'main' into patch-2
orta Feb 22, 2021
497fac0
Merge pull request #1113 from rogerluan/patch-2
orta Feb 22, 2021
ade818b
Prepare for release
orta Feb 22, 2021
ae716bd
Bring back the any
orta Feb 22, 2021
2b77252
Better debug logs
orta Feb 23, 2021
b87084f
Release 10.6.3
orta Feb 23, 2021
288f2cd
Add url to Danger local commits
f-meloni Mar 6, 2021
5f404cf
Update BitBucketCloudDSL.ts
HelloCore Mar 9, 2021
cbd935d
Update changelog
HelloCore Mar 9, 2021
3d60104
Merge pull request #1124 from danger/fix/bitbucket-cloud-type
orta Mar 17, 2021
13c251a
Merge pull request #1123 from danger/local_commit_url
orta Mar 17, 2021
6a17936
Use full unformatted subject message
denieler Mar 19, 2021
5fbc0aa
Fix unit test
denieler Mar 19, 2021
14a4dc5
Use gitlog package instead of spawn child process
denieler Mar 22, 2021
ab7cf4d
Remove broken link
GrahamSH-LLK Mar 24, 2021
bf04df7
Merge pull request #1128 from GrahamSH-LLK/patch-1
orta Mar 24, 2021
040d5a3
Remove gitlog dependency
denieler Mar 24, 2021
69cd960
Merge pull request #1127 from denieler/patch-1
orta Mar 24, 2021
53b8579
CHANGELOG
orta Mar 24, 2021
7fbbbd8
Release 10.6.4
orta Mar 24, 2021
8e40a03
Fix publishing Docker image to GitHub
markuspoerschke Mar 31, 2021
03499f1
Fixes #1121 to also support Bitbucket Server personal repositories
Feb 25, 2021
82395a5
Adds Changelog entry
Feb 25, 2021
fe5f080
Merge pull request #1122 from danibaeyens/bitbucket-server-user-repos…
orta Apr 12, 2021
1f09c63
Expose Gitlab API
shyim May 11, 2021
94c82f6
Remove debug
shyim May 11, 2021
08d0d26
Merge pull request #1137 from shyim/patch-2
orta May 11, 2021
748a3a6
Merge pull request #1135 from shyim/patch-1
orta May 11, 2021
9c568e9
Add addLabels or removeLabels to Gitlab API
shyim May 11, 2021
cd3a5db
Update Changelog
shyim May 11, 2021
e3b0040
Merge pull request #1139 from shyim/add-label-functions-gitlab
orta May 11, 2021
4d435a3
Merge pull request #1132 from markuspoerschke/fix-docker-image-build
orta May 21, 2021
482899b
Add ability to use GitlabApi by oauth token
Crazymax11 Jun 29, 2021
632b6b7
Merge pull request #1144 from Crazymax11/main
orta Jun 29, 2021
53e61cd
CHANGELOG updates
orta Jun 29, 2021
688bbc1
Release 10.6.5
orta Jun 29, 2021
712eaf4
Support new TS
orta Jun 29, 2021
fccec10
Merge branch 'main' of https://github.com/danger/danger-js into main
orta Jun 29, 2021
c61de23
Drop unused file
orta Jun 29, 2021
6adc2da
Release 10.6.6
orta Jun 30, 2021
ef21951
Get tests running locally
orta Jun 30, 2021
6381a10
Merge branch 'main' of https://github.com/danger/danger-js into main
orta Jun 30, 2021
0e094bb
Rollback
orta Jun 30, 2021
7a19b50
Release 10.6.6
orta Jun 30, 2021
e8d2052
Ensures that the Gitlab API is exposed properly through the dts
orta Jun 30, 2021
d2e8aa2
Merge branch 'main' of https://github.com/danger/danger-js into main
orta Jun 30, 2021
84d434f
Rollback
orta Jun 30, 2021
4db3a2e
Release 10.6.6
orta Jun 30, 2021
44ce484
Minor change
orta Jun 30, 2021
5c6db69
Drop flow check from CI
orta Jun 30, 2021
e984c69
Merge pull request #1145 from danger/test_ci
orta Jun 30, 2021
d9246d2
Fix bold for Your Environment in issue template
benasher44 Sep 30, 2021
b143b4d
Merge pull request #1157 from benasher44/patch-1
orta Sep 30, 2021
57769a8
Update architecture.md
fishmandev Oct 7, 2021
a4246cf
Merge pull request #1159 from fishmandev/patch-1
orta Oct 7, 2021
03c355e
Update dependencies.html.md
fishmandev Oct 8, 2021
a2548c2
Merge pull request #1161 from fishmandev/patch-2
orta Oct 8, 2021
6ebd330
Add support for Xcode Cloud CI.
bobergj Oct 11, 2021
2860fcc
Fix test indentation.
bobergj Oct 11, 2021
933240d
Merge pull request #1162 from bobergj/ci-xcode-cloud
orta Oct 12, 2021
a9e765d
Prepare for release
orta Oct 12, 2021
debe457
Release 10.7.0
orta Oct 12, 2021
22c07ac
add reviewers and assignees fields for GitLab API
acherkashin Oct 17, 2021
6db972a
Merge pull request #1166 from acherkashin/gitlab_reviewers
orta Oct 18, 2021
c74329c
Update micromatch to resolve critical audit dependency vulnerability
nicholasrussell-mylo Oct 26, 2021
0672d7a
Merge pull request #1171 from nicholasrussell-mylo/critical-audit-deps
orta Oct 26, 2021
2e2f5e2
CHANGELOG
orta Nov 3, 2021
ca792af
Release 10.7.1
orta Nov 3, 2021
3150f56
chore: update package json to fix security problem
unfernandito Nov 17, 2021
9fe7d5e
add ability to ouput results as JSON
absolute-heike Nov 19, 2021
a2be690
Merge pull request #1174 from unfernandito/main
orta Nov 19, 2021
3df5838
README
orta Nov 19, 2021
fb630ec
extend github api to send complete reviews
Rouby Nov 19, 2021
d8ac772
Merge pull request #1177 from danger/output-json
orta Nov 29, 2021
7c026f9
Merge branch 'main' of https://github.com/danger/danger-js into main
orta Dec 18, 2021
08d3498
Release 10.8.0
fbartho Jan 6, 2022
fc4f607
Switch to node-14 as the oldest tested environment
fbartho Jan 6, 2022
fdf44e6
Fix: Updates `parse-link-header` for CVE-2021-23490
fbartho Jan 6, 2022
68ab2e9
add changelog entry for pr 1176
Rouby Jan 7, 2022
4b63bdf
Merge pull request #1190 from danger/fb/parse-link-header-update
orta Jan 7, 2022
7b7529e
Update .babelrc
orta Jan 7, 2022
a64699c
Merge pull request #1189 from danger/fb/node-14
orta Jan 7, 2022
38a963e
Merge branch 'main' of https://github.com/danger/danger-js into patch-1
orta Jan 7, 2022
dfd4c81
Ensure the pr body always exists
orta Jan 7, 2022
6772c4f
Faff
orta Jan 7, 2022
ac8d0e8
Merge pull request #1191 from danger/pr_body
orta Jan 7, 2022
cf48b28
Fix the yml
orta Jan 7, 2022
cb52e29
Merge pull request #1188 from danger/fb/release-10.8.0
orta Jan 7, 2022
7ae4121
Faff
orta Jan 7, 2022
4418fe3
Release 10.8.0
orta Jan 7, 2022
4804f80
Merge branch 'main' into patch-1
fbartho Jan 7, 2022
d896baf
Merge pull request #1176 from Rouby/patch-1
fbartho Jan 7, 2022
0aa0ea5
Merge branch 'main' into fs_lookup
fbartho Jan 7, 2022
896aee7
Prettier was rewriting Changelog.md changing line lengths from what w…
fbartho Jan 7, 2022
8f6dfcd
Add changelog entry for @orta's fs-optimization #991
fbartho Jan 7, 2022
e3c4da3
Cleanup Typos
fbartho Jan 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# .gitattributes documentation: https://git-scm.com/docs/gitattributes

# Resolve 3-way merge conflicts on the CHANGELOG.md file using the union strategy
CHANGELOG.md merge=union
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [orta]
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] "
labels: bug
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1.
2.
3.
4.

**Expected behavior**
<!--- If you're suggesting a change/improvement, tell us how it should work -->
<!--- If danger is behaving incorrectly, please include a link to the spec or documentation that supports that your expected behavior is correct. -->

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Your Environment**
<!--- Include as many relevant details about the environment you experienced the bug in -->

| software | version
| ---------------- | -------
| danger.js |
| node |
| npm |
| Operating System |

**Additional context**
Add any other context about the problem here.
60 changes: 60 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI
on: pull_request

jobs:
test:
runs-on: ubuntu-20.04

steps:
# Check out, and set up the node/ruby infra
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '14'

# Get local dependencies & test
- run: yarn install
- run: yarn build
- run: yarn test

# Validate related tooling
- run: yarn declarations
- run: yarn tsc distribution/danger.d.ts
- run: rm -rf node_modules/@types/babel-*
- run: rm -rf node_modules/@types/babylon

# Not many Flow users nowadays, so this probably is worth dropping
# if it becomes an issue.
- run: echo "Testing Flow definition file"
- run: yarn build:flow-types
# - run: yarn flow check

- run: 'echo "This is only for Integration tests on two blank projects"'

- run: |
mkdir danger_blank_test
cd danger_blank_test
yarn init --yes
yarn add file:..
echo "warn('I warned you')" > dangerfile.js
echo "Testing a blank Dangerfile on an empty project"
DEBUG="*" yarn danger run --text-only
cd ..
rm -rf danger_blank_test
name: "Make a CRA"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: |
npm install -g create-react-app
create-react-app danger_babel_test
cd danger_babel_test
yarn add file:..
echo "warn('Expect 2 warnings'); const a = async () => {warn('the other');}; schedule(a)" > dangerfile.js
echo "Testing a blank Dangerfile on a babel CRA project"
DEBUG="*" yarn danger ci --text-only
cd ..
rm -rf danger_babel_test
name: "Make a small babel app"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release Danger-JS package

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Export tag version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Docker Login
run: echo $PACKAGES_WRITE_TOKEN | docker login ghcr.io -u $USERNAME --password-stdin
env:
PACKAGES_WRITE_TOKEN: ${{ secrets.DOCKER_GITHUB_PASSWORD }}
USERNAME: ${{ secrets.DOCKER_GITHUB_USERNAME }}

- name: Docker Build
run: docker build -t ghcr.io/danger/danger-js:$VERSION .

- name: Deploy
run: docker push ghcr.io/danger/danger-js:$VERSION
19 changes: 0 additions & 19 deletions .github/workflows/uploadDockerImage.yml

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ source/danger-outgoing-process-schema.json
source/danger-incoming-process-schema.json
source/platforms/_tests/fixtures/bbs-dsl-input.json
source/platforms/_tests/fixtures/bbc-dsl-input.json
CHANGELOG.md
7 changes: 3 additions & 4 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"assets": "brew-distribution/*.zip"
},
"buildCommand": "yarn package",
"scripts": {
"beforeStart": "VERSION=${version} yarn ts-node scripts/update-changelog.ts",
"beforeBump": "yarn declarations; yarn build:schemas",
"afterRelease": "VERSION=${version} scripts/create-homebrew-tap-pr.sh"
"hooks": {
"before:bump": "yarn declarations; yarn build:schemas",
"after:release": "VERSION=${version} scripts/create-homebrew-tap-pr.sh"
}
}
37 changes: 6 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ cache:
matrix:
include:
# Normal CI test runs :D
- node_js: "10"
- node_js: "14"

- node_js: "10"
- node_js: "14"
after_script:
- echo "Validating TypeScript definition file"
- yarn build
Expand All @@ -23,13 +23,13 @@ matrix:
- yarn flow check

# Checks every example dangerfile can run in `danger runner`.
- node_js: "10"
- node_js: "14"
script:
- yarn build
- node scripts/run-fixtures.js

# Runs both the CI and PR with a custom process to ensure apps like swift/rust work
- node_js: "10.13"
- node_js: "14"
script:
- yarn build
- node distribution/commands/danger-ci.js --process "ruby scripts/danger_runner.rb"
Expand Down Expand Up @@ -61,36 +61,11 @@ matrix:
- echo "Validating that danger pr works as expected"
- DEBUG="*" danger pr https://github.com/danger/danger-js/pull/465 --dangerfile dangerfile.circle.js --verbose

- echo "Grabbing master so that danger-local can use it for comparison"
- git checkout -t origin/master || true
- echo "Grabbing main so that danger-local can use it for comparison"
- git checkout -t origin/main || true
- '[ ! -z $TRAVIS_PULL_REQUEST ] && DEBUG="*" danger local --dangerfile
source/platforms/git/_tests/local_dangerfile_example.ts || echo "Skipping Danger Local for non PR run"'

# Create some fake projects at runtime
- node_js: "10.16"
script:
- echo "This is only for Integration tests on two blank projects"
- yarn build
- mkdir danger_blank_test
- cd danger_blank_test
- yarn init --yes
- yarn add file:..
- echo "warn('I warned you')" > dangerfile.js
- echo "Testing a blank Dangerfile on an empty project"
- DEBUG="*" yarn danger run --text-only
- cd ..
- rm -rf danger_blank_test

- npm install -g create-react-app
- create-react-app danger_babel_test
- cd danger_babel_test
- yarn add file:..
- echo "warn('Expect 2 warnings'); const a = async () => {warn('the other');}; schedule(a)" > dangerfile.js
- echo "Testing a blank Dangerfile on a babel CRA project"
- DEBUG="*" yarn danger ci --text-only
- cd ..
- rm -rf danger_babel_test

script:
- yarn lint
- yarn add jest
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"autogenerated",
"bdotdub",
"bitbucket",
"bitrise",
"buildkite",
"caffodian",
"codefresh",
"codemagic",
"codeship",
"commit's",
"dangerfile",
Expand Down
15 changes: 0 additions & 15 deletions .vscode/tasks.json

This file was deleted.

Loading