Skip to content

Commit

Permalink
Off loaded github health files to .github repo (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Feb 21, 2021
1 parent 24fc741 commit 322d6b2
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 100 deletions.
76 changes: 0 additions & 76 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/SECURITY.md

This file was deleted.

16 changes: 8 additions & 8 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@

# Area
- color: fbca04
name: area/ui-ux
description: design
name: area/security
- color: fbca04
name: area/semantics
description: language
name: area/documentation
- color: fbca04
name: area/translation
description: i18n
name: area/chat-ops
- color: fbca04
name: area/security
description: Security related
name: area/labels
- color: fbca04
name: area/captures
- color: fbca04
name: area/permission

# Priority
- color: d93f0b
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="icon.png" width="120" height="120" align="left" style="margin-right:24px"/>
<img src="icon.png" width="120" height="120" align="left" style="margin-right:32px"/>

# OSS Governance

Expand All @@ -9,10 +9,9 @@

<!-- 3 Arc: Context - Problem - Solution -->

In [DeFiChain](https://defichain.com/), our projects are open source, and our primary vision is to enable decentralized
finance with Bitcoin-grade security, strength and
immutability. [It's a blockchain dedicated to fast, intelligent and transparent financial services, accessible by everyone](https://defichain.com/white-paper/)
.
[DeFiChain](https://defichain.com/) - Decentralized finance enabled on
Bitcoin. [A blockchain dedicated to fast, intelligent and transparent financial services, accessible by everyone.](https://defichain.com/white-paper/)
To achieve that, our projects have to be open source and accessible by anyone.

Although putting our project on GitHub makes it transparent and visible for public contributions, it's far from making
it maintainable. For new contributors, creating an issue or pull request and successfully sending it is a mountainous
Expand Down
6 changes: 6 additions & 0 deletions 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.

6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import command from './command'
import operations from './operations'
import {initClient} from './github'

/**
* @return the current governance config based on the context, it could be 'pull_request' or 'issue'.
*/
export async function getGovernance(): Promise<Governance | undefined> {
const configPath = core.getInput('config-path', {required: true})
const config: Config = await getConfig(initClient(), configPath)
Expand All @@ -31,6 +34,9 @@ export async function getGovernance(): Promise<Governance | undefined> {
throw new Error('Could not get pull_request or issue from context')
}

/**
* Get governance config, parse and run commands from context.
*/
export async function runGovernance(): Promise<void> {
const governance = await getGovernance()
core.info('main: fetched governance.yml')
Expand Down

0 comments on commit 322d6b2

Please sign in to comment.