From b217757ce72d88efb0dd3c9887d6e9bedd365bdc Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 8 Sep 2020 17:25:56 +0300 Subject: [PATCH 01/22] Typo fix --- app/modules/library/containers/detail-installation-block.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/library/containers/detail-installation-block.jsx b/app/modules/library/containers/detail-installation-block.jsx index 54bee9dd..11bbe0dd 100644 --- a/app/modules/library/containers/detail-installation-block.jsx +++ b/app/modules/library/containers/detail-installation-block.jsx @@ -60,7 +60,7 @@ export default class LibraryDetailInstallationBlock extends React.Component { const ownedLib = this.props.data.ownername ? `${this.props.data.ownername}/${this.props.data.name}` : this.props.data.name; - let content = `; platformio.ini – project configuration file + let content = `# platformio.ini – project configuration file [env:my_build_env]`; @@ -95,7 +95,7 @@ lib_deps =`; # Accept new functionality in a backwards compatible manner and patches ${ownedLib} @ ^${versionName} - # Acept only backwards compatible bug fixes + # Accept only backwards compatible bug fixes # (any version with the same major and minor versions, and an equal or greater patch version) ${ownedLib} @ ~${versionName} From 8b5fd7152e08c169411953790e781d789aaf1381 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 19:53:37 +0300 Subject: [PATCH 02/22] Create app.yml --- .github/workflows/app.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/app.yml diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml new file mode 100644 index 00000000..415098f8 --- /dev/null +++ b/.github/workflows/app.yml @@ -0,0 +1,21 @@ +name: App + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v1 + + - run: npm lint + - run: npm build From 05c9c70e77fd6edd3ed26addbf98a048f5152c10 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:22:36 +0300 Subject: [PATCH 03/22] Feature/ci (#1237) * Fix build * Auto close stale issues * Fix CI * Drop Travis --- .github/workflows/app.yml | 14 ++++---------- .github/workflows/stale.yml | 17 +++++++++++++++++ .travis.yml | 16 ---------------- 3 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/stale.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 415098f8..bc080ac7 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -1,21 +1,15 @@ name: App -on: - push: - branches: [ develop ] - pull_request: - branches: [ develop ] +on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install Node.js uses: actions/setup-node@v1 - - - run: npm lint - - run: npm build + - run: npm install + - run: npm run lint + - run: npm run build diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..a446e4f8 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,17 @@ +name: "Close stale issues" + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.STALE_GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days' + days-before-stale: 30 + days-before-close: 5 + exempt-issue-labels: 'bug,known issue,project,feature,enhancement' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f7d61317..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -node_js: - - 10 - -script: - - npm run lint - - npm run build - -notifications: - email: false - - slack: - rooms: - secure: lbyfXNJ/qElXhOO58x9XGJno+AWOV96w1JlgMf1n6jnYvVn9sk9PAFzMEeqQzt973jZC9Ur6zu3abXvND4mxf4y/b/ocn0YmA+TwQRrj6/v+s2EUVzQXdlUzSlXScYhUDJKASDL0bA6dlX+gWDZ4J776vc5XeFnAzVxa6UltoxrpRp5xVzohcKXb+FKMBuY6gARM4VsUYnAH7r4UX4wrTyATj3Ei4+w/bnmNDGhlpqRsQUebmKW8+64vPGF3pq/zAG29xC96Z0O03KAC/4LEryoWCccmDdwJ2fzueR0qviCuf2mzHYFOzhaWQap9RN0JaofpgvXyIwxB5QiuSxDjQMO06iBbAbsSWE0Ry/q1akJVB1LdM0yeSApmT0roHEUEMd93I3Pw1YizTAC8d7EAx1wyUxycvy7t8DZCgstENhw8PhpJxJ0wMw2fJm+CThqrXzoCjpp5l9csVN1okN0v73ttazOZY6880N4MKpxi9q9zkftrZCTVO9hTQqe7XBdp+9K3Mts2k/0foELmB/jyHTLJGaMze5pbwtj8RriuwcNOzx0NHrQpOFco6JGMe5wlunUKYGdg8Hc1zGCMAjwYPRYJjmjGYRll2VwCqO+UcpCsxS921mFI2e+bFBdULCsjv+VQ6B2qJeuSaQimUtGBDL5jRp/MDMb44edZtTpJjN0= - on_failure: always - on_success: change From b3f2f2fe39cfd1f157ce444127ff89f1eb113b73 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:25:01 +0300 Subject: [PATCH 04/22] Run Stale action every 3 mins --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a446e4f8..57a12b75 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: "Close stale issues" on: schedule: - - cron: "0 0 * * *" + - cron: "*/3 0 * * *" jobs: stale: From 5b08f1aac7ae629495accfa4bc46ae48496ad2e4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:29:04 +0300 Subject: [PATCH 05/22] Run Stale action every 3 mins --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 57a12b75..acb32a17 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: "Close stale issues" on: schedule: - - cron: "*/3 0 * * *" + - cron: "*/3 * * * *" jobs: stale: From 3e0ca5ba03cbe41e66c17d23c7fcf6390bcf59d0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:35:25 +0300 Subject: [PATCH 06/22] Run every minute CI/Stale issues --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index acb32a17..d49de697 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: "Close stale issues" on: schedule: - - cron: "*/3 * * * *" + - cron: "* * * * *" jobs: stale: From 35377f86bcd5cac6b9b65771edd77d18b373ea4c Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:39:45 +0300 Subject: [PATCH 07/22] Test 1 --- .github/workflows/stale2.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/stale2.yml diff --git a/.github/workflows/stale2.yml b/.github/workflows/stale2.yml new file mode 100644 index 00000000..085f5aeb --- /dev/null +++ b/.github/workflows/stale2.yml @@ -0,0 +1,17 @@ +name: "Close stale issues2" + +on: + schedule: + - cron: "* * * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.STALE_GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days' + days-before-stale: 30 + days-before-close: 5 + exempt-issue-labels: 'bug,known issue,project,feature,enhancement' From 9f0c3b1f8d88b8fefce733dc0b9d2dc5fe7da648 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:41:26 +0300 Subject: [PATCH 08/22] Remove duplicated workflow --- .github/workflows/stale2.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/stale2.yml diff --git a/.github/workflows/stale2.yml b/.github/workflows/stale2.yml deleted file mode 100644 index 085f5aeb..00000000 --- a/.github/workflows/stale2.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Close stale issues2" - -on: - schedule: - - cron: "* * * * *" - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.STALE_GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days' - days-before-stale: 30 - days-before-close: 5 - exempt-issue-labels: 'bug,known issue,project,feature,enhancement' From e52f8726f10ffacb2b64774d830278b7b5e61542 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 20:59:29 +0300 Subject: [PATCH 09/22] Run stale bot once per day --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index d49de697..84fef9ad 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: "Close stale issues" on: schedule: - - cron: "* * * * *" + - cron: "0 0 * * *" jobs: stale: @@ -11,7 +11,7 @@ jobs: - uses: actions/stale@v3 with: repo-token: ${{ secrets.STALE_GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days' + stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days." days-before-stale: 30 days-before-close: 5 - exempt-issue-labels: 'bug,known issue,project,feature,enhancement' + exempt-issue-labels: "bug,known issue,project,feature,enhancement" From b173d74989c9babb188067a510c71b81296ab6ee Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 21:14:41 +0300 Subject: [PATCH 10/22] Switch to stale bot --- .github/stale.yml | 20 ++++++++++++++++++++ .github/workflows/stale.yml | 17 ----------------- 2 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 .github/stale.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 00000000..7fa5a384 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,20 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - bug + - known issue + - project + - feature + - enhancement +# Label to use when marking an issue as stale +staleLabel: wontfix +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. Pelase provide more details or it will be closed if no + further activity occurs. Thank you for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 84fef9ad..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Close stale issues" - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.STALE_GITHUB_TOKEN }} - stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Please provide more details or this will be closed in 5 days." - days-before-stale: 30 - days-before-close: 5 - exempt-issue-labels: "bug,known issue,project,feature,enhancement" From 3ac87afead9d229fef1609b63b0c896ddac850bf Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 21:18:08 +0300 Subject: [PATCH 11/22] Typo fix --- .github/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/stale.yml b/.github/stale.yml index 7fa5a384..70b5d0d0 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -14,7 +14,7 @@ staleLabel: wontfix # Comment to post when marking an issue as stale. Set to `false` to disable markComment: > This issue has been automatically marked as stale because it has not had - recent activity. Pelase provide more details or it will be closed if no + recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions. # Comment to post when closing a stale issue. Set to `false` to disable closeComment: false From 444e59fa4b988de40cd9ca06563f4d5f8cf36faf Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 21:22:13 +0300 Subject: [PATCH 12/22] Use "stale" label for bot --- .github/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/stale.yml b/.github/stale.yml index 70b5d0d0..45faa989 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -10,7 +10,7 @@ exemptLabels: - feature - enhancement # Label to use when marking an issue as stale -staleLabel: wontfix +staleLabel: stale # Comment to post when marking an issue as stale. Set to `false` to disable markComment: > This issue has been automatically marked as stale because it has not had From 9460340b7dff93255bafc9fc403637d7c5d57bd2 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 12 Sep 2020 13:39:13 +0300 Subject: [PATCH 13/22] Set daysUntilStale to 30 --- .github/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/stale.yml b/.github/stale.yml index 45faa989..e34d8a49 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,5 +1,5 @@ # Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 +daysUntilStale: 30 # Number of days of inactivity before a stale issue is closed daysUntilClose: 7 # Issues with these labels will never be considered stale From 929cd4c61d1032ce65fc8b39952d545f4b504e89 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Thu, 24 Sep 2020 22:02:15 +0300 Subject: [PATCH 14/22] Fix wording --- app/modules/project/containers/examples-modal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/project/containers/examples-modal.jsx b/app/modules/project/containers/examples-modal.jsx index 1b42b97b..1894e6fd 100644 --- a/app/modules/project/containers/examples-modal.jsx +++ b/app/modules/project/containers/examples-modal.jsx @@ -143,7 +143,7 @@ class ProjectExamplesModal extends React.Component { . Please install more platforms to see the new examples.

- Examples already contain pre-configured build environemnts (boards, flags, + Examples already contain pre-configured build environments (boards, flags, etc.). You can edit them later in{' '} @@ -152,7 +152,7 @@ class ProjectExamplesModal extends React.Component { > Project Configuration File "platformio.ini" {' '} - located in a root of project. + located in the root of your project. )}