Skip to content

Commit

Permalink
added labels, buckets, category
Browse files Browse the repository at this point in the history
  • Loading branch information
scanlonp committed Jul 25, 2022
1 parent f210e3c commit 1865d3e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ jobs:
id: contributor-badge
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
labels: 'every-contributer'
buckets: '0'
category: 'total'
12 changes: 12 additions & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ const project = new GitHubActionTypeScriptProject({
description: 'github token',
required: true,
},
'labels': {
description: 'posible labels',
required: true,
},
'buckets': {
description: 'bands corresponding 1-1 with labels',
required: true,
},
'category': {
description: 'category that buckets pertains to',
required: true,
},
},
},
// deps: [], /* Runtime dependencies of this module. */
Expand Down
9 changes: 9 additions & 0 deletions action.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ async function run() {
console.log('hi');
const token: string = core.getInput('github-token');
console.log(token);
const labelsRaw: string = core.getInput('labels');
const bucketsRaw: string = core.getInput('buckets');
const category: string = core.getInput('category');

console.log(labelsRaw);
console.log(bucketsRaw);
console.log(category);


// TODO: parse labels

// TODO: parse buckets

// TODO: print all inputs
}

run().catch(error => {
Expand Down

0 comments on commit 1865d3e

Please sign in to comment.