Skip to content

Commit

Permalink
feat: Feature/projenrc (#12)
Browse files Browse the repository at this point in the history
* add github badger action

* add stale and monthly metrics workflows

* add contributors workflow

* add auto approve workflow

* changes from linter

* allow core team to be listed as contributors and earn badges, restrict autoapprove
  • Loading branch information
krokoko authored Oct 4, 2023
1 parent 343f117 commit fd06451
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes

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

23 changes: 23 additions & 0 deletions .github/workflows/auto-approve.yml

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

20 changes: 20 additions & 0 deletions .github/workflows/github-merit-badger.yml

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

49 changes: 49 additions & 0 deletions .github/workflows/monthly-repo-metrics.yml

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

30 changes: 30 additions & 0 deletions .github/workflows/stale.yml

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

30 changes: 30 additions & 0 deletions .github/workflows/update-contributors.yml

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

5 changes: 5 additions & 0 deletions .gitignore

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

5 changes: 5 additions & 0 deletions .projen/files.json

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

8 changes: 8 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* and limitations under the License.
*/
import { awscdk } from 'projen';
import { buildMeritBadgerWorkflow, buildMonthlyIssuesMetricsWorkflow, buildUpdateContributorsWorkflow, buildAutoApproveWorkflow } from './projenrc/github-workflows';

// Constants
const GITHUB_USER = 'aws-samples';
Expand Down Expand Up @@ -64,8 +65,15 @@ const project = new awscdk.AwsCdkConstructLibrary({
gitignore: ['*.DS_STORE'],
stability: 'experimental',
sampleCode: false,
stale: true,
});

// Add some useful github workflows
buildMeritBadgerWorkflow(project);
buildMonthlyIssuesMetricsWorkflow(project);
buildUpdateContributorsWorkflow(project);
buildAutoApproveWorkflow(project);

// Add License header automatically
project.eslint?.addPlugins('header');
project.eslint?.addRules({
Expand Down
Loading

0 comments on commit fd06451

Please sign in to comment.