Skip to content

Commit

Permalink
Renamed project to oss-governance-bot to prevent confusion with the D…
Browse files Browse the repository at this point in the history
…eFiChain OSS Governance in itself (#52)
  • Loading branch information
fuxingloh authored Feb 21, 2021
1 parent 860ab7f commit 15cecde
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug Report
about: Report a bug encountered with using oss-governance
about: Report a bug encountered with using oss-governance-bot
labels: kind/bug
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Enhancement Request
about: Suggest an enhancement to the oss-governance project
about: Suggest an enhancement to the oss-governance-bot project
labels: kind/feature
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/general.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: General Question
about: General question about using oss-governance for your project/organisation
about: General question about using oss-governance-bot for your project/organisation
labels: kind/question
---

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<img src="icon.png" width="120" height="120" align="left" style="margin-right:32px"/>

# OSS Governance
# OSS Governance Bot

[![codecov](https://codecov.io/gh/DeFiCh/oss-governance/branch/main/graph/badge.svg?token=SOWIV1VVM1)](https://codecov.io/gh/DeFiCh/oss-governance)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/a43f22b8c3c74fe9b6b58935a01fff4e)](https://www.codacy.com/gh/DeFiCh/oss-governance/dashboard)
[![Release](https://img.shields.io/github/v/release/DeFiCh/oss-governance)](https://github.com/DeFiCh/oss-governance/releases)
[![License MIT](https://img.shields.io/github/license/DeFiCh/oss-governance)](https://github.com/DeFiCh/oss-governance/blob/main/LICENSE)
[![codecov](https://codecov.io/gh/DeFiCh/oss-governance-bot/branch/main/graph/badge.svg?token=SOWIV1VVM1)](https://codecov.io/gh/DeFiCh/oss-governance-bot)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/a43f22b8c3c74fe9b6b58935a01fff4e)](https://www.codacy.com/gh/DeFiCh/oss-governance-bot/dashboard)
[![Release](https://img.shields.io/github/v/release/DeFiCh/oss-governance-bot)](https://github.com/DeFiCh/oss-governance-bot/releases)
[![License MIT](https://img.shields.io/github/license/DeFiCh/oss-governance-bot)](https://github.com/DeFiCh/oss-governance-bot/blob/main/LICENSE)

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

Expand All @@ -25,10 +25,10 @@ adjustment (code review changes).

This project is created to fully utilize the GitHub generous open source policy. It runs on GitHub Actions workflow
hooks and deeply integrate with many GitHub offerings. In addition to providing a chat-bot experience when contributor
interact with your project, `oss-governance` also provide automation in the form of policy enforcement. Community
interact with your project, `oss-governance-bot` also provide automation in the form of policy enforcement. Community
contributors can trigger chat-ops via /slash style commands.

## What can OSS Governance do for you?
## What can OSS Governance Bot do for you?

* Speed up issue triaging with automated chat-bot and chat-ops operations.
* Increased code review agility by moving quality control hierarchy from requirements to educational steps.
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Semantic versioning, lock to different version: v1, v1.x or a commit hash.
- uses: DeFiCh/oss-governance@v1
- uses: DeFiCh/oss-governance-bot@v1
with:
# You can use a PAT to post a comment/label so that it shows up as a user instead of github-actions
# Set the user to Triage, full repo scope.
Expand Down
13 changes: 7 additions & 6 deletions __tests__/github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ it('Organization: should format details as expected', async () => {
'\n' +
'<details><summary>Details</summary>' +
'\n\n' +
'I am a bot created to help the [Codertocat](https://github.com/Codertocat/) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/Codertocat/Hello-World/blob/main/config-path/location.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance](https://github.com/DeFiCh/oss-governance) repository.' +
'I am a bot created to help the [Codertocat](https://github.com/Codertocat/) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/Codertocat/Hello-World/blob/main/config-path/location.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.' +
'\n\n' +
'</details>'
})
Expand Down Expand Up @@ -132,7 +132,7 @@ it('User: should format details as expected', async () => {
'\n' +
'<details><summary>Details</summary>' +
'\n\n' +
'I am a bot created to help [Codertocat](https://github.com/Codertocat/) manage community feedback and contributions. You can check out my [manifest file](https://github.com/Codertocat/Hello-World/blob/main/config-path/location.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance](https://github.com/DeFiCh/oss-governance) repository.' +
'I am a bot created to help [Codertocat](https://github.com/Codertocat/) manage community feedback and contributions. You can check out my [manifest file](https://github.com/Codertocat/Hello-World/blob/main/config-path/location.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.' +
'\n\n' +
'</details>'
})
Expand All @@ -147,10 +147,11 @@ describe('commit status', () => {
issue: {
number: 1,
pull_request: {
diff_url: 'https://github.com/DeFiCh/oss-governance/pull/9.diff',
html_url: 'https://github.com/DeFiCh/oss-governance/pull/9',
patch_url: 'https://github.com/DeFiCh/oss-governance/pull/9.patch',
url: 'https://api.github.com/repos/DeFiCh/oss-governance/pulls/9'
diff_url: 'https://github.com/DeFiCh/oss-governance-bot/pull/9.diff',
html_url: 'https://github.com/DeFiCh/oss-governance-bot/pull/9',
patch_url:
'https://github.com/DeFiCh/oss-governance-bot/pull/9.patch',
url: 'https://api.github.com/repos/DeFiCh/oss-governance-bot/pulls/9'
}
}
}
Expand Down
11 changes: 7 additions & 4 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,13 @@ describe('getGovernance', () => {
issue: {
number: 1,
pull_request: {
diff_url: 'https://github.com/DeFiCh/oss-governance/pull/9.diff',
html_url: 'https://github.com/DeFiCh/oss-governance/pull/9',
patch_url: 'https://github.com/DeFiCh/oss-governance/pull/9.patch',
url: 'https://api.github.com/repos/DeFiCh/oss-governance/pulls/9'
diff_url:
'https://github.com/DeFiCh/oss-governance-bot/pull/9.diff',
html_url: 'https://github.com/DeFiCh/oss-governance-bot/pull/9',
patch_url:
'https://github.com/DeFiCh/oss-governance-bot/pull/9.patch',
url:
'https://api.github.com/repos/DeFiCh/oss-governance-bot/pulls/9'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'OSS Governance'
name: 'OSS Governance Bot'
description: 'Speed up issue triaging with automated chat-bot and chat-ops operations with quality control hierarchy'
author: 'DeFiChain Foundation'
branding:
Expand Down
2 changes: 1 addition & 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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "oss-governance",
"name": "oss-governance-bot",
"version": "0.0.0",
"private": true,
"description": "Speed up issue triaging with automated chat-bot and chat-ops operations with quality control hierarchy",
Expand All @@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/DeFiCh/oss-governance.git"
"url": "git+https://github.com/DeFiCh/oss-governance-bot.git"
},
"keywords": [
"actions",
Expand Down
2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function getDetails(): string {
details += `You can check out my [manifest file](${repoUrl}/blob/${branch}/${configPath}) to understand my behavior and what I can do.`
details += ' '
details +=
'If you want to use this for your project, you can check out the [DeFiCh/oss-governance](https://github.com/DeFiCh/oss-governance) repository.'
'If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.'
details += '\n\n'
details += '</details>'
return details
Expand Down

0 comments on commit 15cecde

Please sign in to comment.