-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Schuemie
authored and
Schuemie
committed
Feb 12, 2021
1 parent
82ca15a
commit d1b4ebd
Showing
4 changed files
with
153 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Before you do a pull request, you should always **file an issue** and make sure the package maintainer agrees that it’s a problem, and is happy with your basic proposal for fixing it. We don’t want you to spend a bunch of time on something that we don’t think is a good idea. | ||
|
||
Additional requirements for pull requests: | ||
|
||
- Adhere to the [Developer Guidelines](https://ohdsi.github.io/MethodsLibrary/developerGuidelines.html) as well as the [OHDSI Code Style](https://ohdsi.github.io/MethodsLibrary/codeStyle.html). | ||
|
||
- If possible, add unit tests for new functionality you add. | ||
|
||
- Restrict your pull request to solving the issue at hand. Do not try to 'improve' parts of the code that are not related to the issue. If you feel other parts of the code need better organization, create a separate issue for that. | ||
|
||
- Make sure you pass R check without errors and warnings before submitting. | ||
|
||
- Always target the `develop` branch, and make sure you are up-to-date with the develop branch. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -o errexit -o nounset | ||
addToDrat(){ | ||
PKG_REPO=$PWD | ||
|
||
## Build package tar ball | ||
export PKG_TARBALL=$(ls *.tar.gz) | ||
|
||
cd ..; mkdir drat; cd drat | ||
|
||
## Set up Repo parameters | ||
git init | ||
git config user.name "Martijn Schuemie" | ||
git config user.email "[email protected]" | ||
git config --global push.default simple | ||
|
||
## Get drat repo | ||
git remote add upstream "https://$GH_TOKEN@github.com/OHDSI/drat.git" | ||
git fetch upstream 2>err.txt | ||
git checkout gh-pages | ||
|
||
## Link to local R packages | ||
echo 'R_LIBS=~/Rlib' > .Renviron | ||
|
||
Rscript -e "drat::insertPackage('$PKG_REPO/$PKG_TARBALL', \ | ||
repodir = '.', \ | ||
commit='GitHub Actions release: $PKG_TARBALL run $GITHUB_RUN_ID')" | ||
git push | ||
|
||
} | ||
addToDrat |