diff --git a/.drone.yml b/.drone.yml index 3fd48008..352efec4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,6 @@ steps: - cd grafana-plugin/ - if [ -z "$DRONE_TAG" ]; then echo "No tag, not modifying version"; else jq '.version="${DRONE_TAG}"' package.json > package.new && mv package.new package.json && jq '.version' package.json; fi - yarn --network-timeout 500000 - - yarn plop "Append build info" "${DRONE_TAG}" "${DRONE_BRANCH}" "${DRONE_COMMIT}" - yarn build - ls ./ @@ -236,6 +235,6 @@ kind: secret name: drone_token --- kind: signature -hmac: 5cdafa5ca416acb1763d1d9ac93bbd932982c874718f40af533914a6711c1a1f +hmac: b42fdbbe647ee80391e473b5a18ab0469609c70d1b919a31fe0fdab8c208515e ... diff --git a/CHANGELOG.md b/CHANGELOG.md index 940ce36a..8893332c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ # Change Log -## 1.0.0 (2022-02-02) +## 0.0.71 (2022-06-06) + +- Initial Release \ No newline at end of file diff --git a/grafana-plugin/plopfile.js b/grafana-plugin/plopfile.js index 87a63fed..c1504cb0 100644 --- a/grafana-plugin/plopfile.js +++ b/grafana-plugin/plopfile.js @@ -1,11 +1,9 @@ const createComponentFiles = require('./tools/plop/generators/createComponentFiles'); const createContainerFiles = require('./tools/plop/generators/createContainerFiles'); const createModelFiles = require('./tools/plop/generators/createModelFiles'); -const appendReadmeFile = require('./tools/plop/generators/appendReadmeFile'); const componentPrompts = require('./tools/plop/prompts/componentPrompts'); const containerPrompts = require('./tools/plop/prompts/containerPrompts'); const modelPrompts = require('./tools/plop/prompts/modelPrompts'); -const readmePrompts = require('./tools/plop/prompts/readmePrompts'); // const configNeededHelper = require('./tools/plop/helpers/configNeeded'); @@ -32,9 +30,4 @@ module.exports = function plopGenerator(plop) { actions: (answers) => createContainerFiles(answers), }); - plop.setGenerator('Append build info', { - description: 'Add build info to plugin readme', - prompts: readmePrompts, - actions: (answers) => appendReadmeFile(answers), - }); }; diff --git a/grafana-plugin/src/README.md b/grafana-plugin/src/README.md index 560dc756..66e4b915 100644 --- a/grafana-plugin/src/README.md +++ b/grafana-plugin/src/README.md @@ -12,12 +12,3 @@ with Brilliant Slack Integration ## Documentation - [On Github](http://github.com/grafana/oncall) - [Grafana OnCall](https://grafana.com/docs/grafana-cloud/oncall/) -- [Connect to Grafana OnCall](https://grafana.com/docs/grafana-cloud/oncall/oncall-integrations/) - - [Alertmanager](https://grafana.com/docs/grafana-cloud/oncall/oncall-integrations/alertmanager/) - - [Grafana Cloud Alerting](https://grafana.com/docs/grafana-cloud/oncall/oncall-integrations/grafana/) - - [Zabbix](https://grafana.com/docs/grafana-cloud/oncall/oncall-integrations/zabbix/) - - [Custom Integrations](https://grafana.com/docs/grafana-cloud/oncall/oncall-integrations/custom/) -- [HTTP API Reference](https://grafana.com/docs/grafana-cloud/oncall/oncall-api-reference/) - -\ -/* BUILD INFO */ \ No newline at end of file diff --git a/grafana-plugin/src/img/screenshot.png b/grafana-plugin/src/img/screenshot.png index d9adbe25..a0d5d3cf 100644 Binary files a/grafana-plugin/src/img/screenshot.png and b/grafana-plugin/src/img/screenshot.png differ diff --git a/grafana-plugin/tools/plop/generators/appendReadmeFile.js b/grafana-plugin/tools/plop/generators/appendReadmeFile.js deleted file mode 100644 index 70f8f850..00000000 --- a/grafana-plugin/tools/plop/generators/appendReadmeFile.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = function createReadmeFiles(answers) { - const actions = []; - - const pathToApp = 'src'; - - const pathToReadmeTemplate = 'tools/plop/templates'; - - actions.push({ - type: 'modify', - path: `${pathToApp}/README.md`, - pattern: '/* BUILD INFO */', - templateFile: `${pathToReadmeTemplate}/BuildInfo.md.hbs`, - }); - - return actions; -}; diff --git a/grafana-plugin/tools/plop/prompts/readmePrompts.js b/grafana-plugin/tools/plop/prompts/readmePrompts.js deleted file mode 100644 index 5568a762..00000000 --- a/grafana-plugin/tools/plop/prompts/readmePrompts.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = [ - { - type: 'input', - name: 'gitTag', - message: 'Git Tag', - }, - { - type: 'input', - name: 'gitBranch', - message: 'Git Branch', - }, - { - type: 'input', - name: 'gitCommit', - message: 'Git Commit', - }, -]; diff --git a/grafana-plugin/tools/plop/templates/BuildInfo.md.hbs b/grafana-plugin/tools/plop/templates/BuildInfo.md.hbs deleted file mode 100644 index 4f43b81d..00000000 --- a/grafana-plugin/tools/plop/templates/BuildInfo.md.hbs +++ /dev/null @@ -1 +0,0 @@ -Build Info - Tag: {{gitTag}} - Branch: {{gitBranch}} - Commit: {{gitCommit}} \ No newline at end of file