diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index c3d60ea60..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 21 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - architecture - - pinned -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue or pull request has been automatically marked as stale because it has not had - recent activity. 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/close_old_issues.yml b/.github/workflows/close_old_issues.yml new file mode 100644 index 000000000..5e8df3138 --- /dev/null +++ b/.github/workflows/close_old_issues.yml @@ -0,0 +1,20 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.LVGL_BOT_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + exempt-issue-labels: 'pinned' + exempt-pr-labels: 'pinned' diff --git a/docs/overview/scroll.md b/docs/overview/scroll.md index ea99bc7ea..90286876e 100644 --- a/docs/overview/scroll.md +++ b/docs/overview/scroll.md @@ -64,7 +64,7 @@ Besides managing "normal" scrolling there are many interesting and useful additi ### Scrollable -It's possible to make an object non-scrollable with `lv_obj_add_flag(obj, LV_OBJ_FLAG_SCROLLABLE)`. +It's possible to make an object non-scrollable with `lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE)`. Non-scrollable object can still propagate the scrolling (chain) to the parents. @@ -154,7 +154,7 @@ if(event_code == LV_EVENT_GET_SELF_SIZE) { p->x = 200; //Set or calculate the self width } - if(p->x >= 0) { + if(p->y >= 0) { p->y = 50; //Set or calculate the self height } }