Skip to content

Commit

Permalink
license header added
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Oct 1, 2020
1 parent ce91090 commit b05c7a1
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 6 deletions.
18 changes: 17 additions & 1 deletion res/templates/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
const { handlebars } = require('hbs')
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

const { handlebars } = require('hbs')

// Register a githubHost global helper to make links respect the GHE_HOST env var
handlebars.registerHelper('githubHost', () => process.env.GHE_HOST || 'github.com')
Expand Down
18 changes: 17 additions & 1 deletion res/templates/todoComment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
module.exports = `## {{ title }}
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = `## {{ title }}
{{#if body}}
{{ body }}
Expand Down
18 changes: 17 additions & 1 deletion res/templates/todoIssue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
module.exports = `{{#if body}}
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = `{{#if body}}
{{ body }}
---
Expand Down
18 changes: 17 additions & 1 deletion res/templates/todoIssueFromMerge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
module.exports = `{{#if body}}
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = `{{#if body}}
{{ body }}
---
Expand Down
18 changes: 17 additions & 1 deletion res/templates/todoReopenClosed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
module.exports = `This issue has been reopened because the **\`{{ keyword }}\`** comment still exists in [**{{ filename }}**](https://{{ githubHost }}/{{ owner }}/{{ repo }}/blob/{{ sha }}/{{ filename }}), as of {{ sha }}.
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = `This issue has been reopened because the **\`{{ keyword }}\`** comment still exists in [**{{ filename }}**](https://{{ githubHost }}/{{ owner }}/{{ repo }}/blob/{{ sha }}/{{ filename }}), as of {{ sha }}.
---
Expand Down
18 changes: 17 additions & 1 deletion res/templates/todoTitleChange.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
module.exports = `### Please do not change the issue title!
/**
* Copyright 2020 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = `### Please do not change the issue title!
This issue is marked with the label \`@todo-zeobot\` therefore it is classified as a \`todo-task\`.
---
Expand Down

0 comments on commit b05c7a1

Please sign in to comment.