forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from permutive/update
Update with latest changes from Prebid repo
- Loading branch information
Showing
595 changed files
with
85,402 additions
and
29,328 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 |
---|---|---|
@@ -1,25 +1 @@ | ||
|
||
let path = require('path'); | ||
|
||
function useLocal(module) { | ||
return require.resolve(module, { | ||
paths: [ | ||
__dirname | ||
] | ||
}) | ||
} | ||
|
||
module.exports = { | ||
"presets": [ | ||
[ | ||
useLocal('@babel/preset-env'), | ||
{ | ||
"useBuiltIns": "entry" | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
path.resolve(__dirname, './plugins/pbjsGlobals.js'), | ||
useLocal('babel-plugin-transform-object-assign') | ||
] | ||
}; | ||
module.exports = require('./babelConfig.js')(); |
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,89 @@ | ||
name: Issue tracking | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
track_issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 | ||
with: | ||
app_id: ${{ secrets.ISSUE_APP_ID }} | ||
private_key: ${{ secrets.ISSUE_APP_PEM }} | ||
|
||
- name: Get project data | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
ORGANIZATION: prebid | ||
DATE_FIELD: Created on | ||
PROJECT_NUMBER: 2 | ||
run: | | ||
gh api graphql -f query=' | ||
query($org: String!, $number: Int!) { | ||
organization(login: $org){ | ||
projectNext(number: $number) { | ||
id | ||
fields(first:100) { | ||
nodes { | ||
id | ||
name | ||
settings | ||
} | ||
} | ||
} | ||
} | ||
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json | ||
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV | ||
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "'"$DATE_FIELD"'") | .id' project_data.json) >> $GITHUB_ENV | ||
- name: Add issue to project | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
ISSUE_ID: ${{ github.event.issue.node_id }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation($project:ID!, $issue:ID!) { | ||
addProjectNextItem(input: {projectId: $project, contentId: $issue}) { | ||
projectNextItem { | ||
id, | ||
content { | ||
... on Issue { | ||
createdAt | ||
} | ||
... on PullRequest { | ||
createdAt | ||
} | ||
} | ||
} | ||
} | ||
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID > issue_data.json | ||
echo 'ITEM_ID='$(jq '.data.addProjectNextItem.projectNextItem.id' issue_data.json) >> $GITHUB_ENV | ||
echo 'ITEM_CREATION_DATE='$(jq '.data.addProjectNextItem.projectNextItem.content.createdAt' issue_data.json) >> $GITHUB_ENV | ||
- name: Set fields | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation ( | ||
$project: ID! | ||
$item: ID! | ||
$date_field: ID! | ||
$date_value: String! | ||
) { | ||
set_creation_date: updateProjectNextItemField(input: { | ||
projectId: $project | ||
itemId: $item | ||
fieldId: $date_field | ||
value: $date_value | ||
}) { | ||
projectNextItem { | ||
id | ||
} | ||
} | ||
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f date_field=$DATE_FIELD_ID -f date_value=$ITEM_CREATION_DATE --silent |
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
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,30 @@ | ||
|
||
let path = require('path'); | ||
|
||
function useLocal(module) { | ||
return require.resolve(module, { | ||
paths: [ | ||
__dirname | ||
] | ||
}) | ||
} | ||
|
||
module.exports = function (test = false) { | ||
return { | ||
'presets': [ | ||
[ | ||
useLocal('@babel/preset-env'), | ||
{ | ||
'useBuiltIns': 'entry', | ||
'corejs': '3.13.0', | ||
// a lot of tests use sinon.stub & others that stopped working on ES6 modules with webpack 5 | ||
'modules': test ? 'commonjs' : 'auto', | ||
} | ||
] | ||
], | ||
'plugins': [ | ||
path.resolve(__dirname, './plugins/pbjsGlobals.js'), | ||
useLocal('babel-plugin-transform-object-assign'), | ||
], | ||
} | ||
} |
Oops, something went wrong.