Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(actions): support cron schedule task #26655

Merged
merged 104 commits into from
Aug 24, 2023
Merged

Commits on Mar 10, 2023

  1. chore(actions): support cron schedule task.

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    8650571 View commit details
    Browse the repository at this point in the history
  2. chore(license): add cron v3 license

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    f1eb0ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fffb455 View commit details
    Browse the repository at this point in the history
  4. chore(deps): upgrade go module

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    054873b View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. feat: refactor schedule tasks management in actions service

    - Remove `robfig/cron/v3 v3.0.1` from `go.mod`
    - Remove `newSchedule()` and `resetSchedule()` functions from `services/actions/init.go`
    - Change return type of `CreateScheduleTask()` from `(int, error)` to `error` in `services/actions/notifier_helper.go`
    - Add `services/actions/schedule_tasks.go` file
    - Add `StartScheduleTasks()` and `startTasks()` functions to `services/actions/schedule_tasks.go`
    - Register `start_schedule_tasks` task in `services/cron/tasks_actions.go`
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    5424793 View commit details
    Browse the repository at this point in the history
  2. feat: add support for schedule specs and tasks

    - Add a new function `GetSchedulesMapByIDs` to retrieve schedules by ID
    - Create new schedule and schedule spec when creating a schedule task
    - Delete schedule specs when deleting a schedule
    - Add a new model `ActionScheduleSpec` for schedule specs
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    dc1a6c1 View commit details
    Browse the repository at this point in the history
  3. refactor: refactor migration and update version number

    - Rename v245.go to v246.go
    - Add a new migration for action schedule table addition
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    4fa2416 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9129de1 View commit details
    Browse the repository at this point in the history
  5. refactor: refactor database schema for improved organization

    - Rename the `Webhook org_id` column to `owner_id`
    - Add a new migration for creating an `action schedule` table
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    650434c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57b87fc View commit details
    Browse the repository at this point in the history
  7. fix: refactor notifier_helper.go for improved readability and maintai…

    …nability
    
    - Rename `jobs` to `workflows` in `notifier_helper.go`
    - Fix the `if` statement to properly continue in `notifier_helper.go`
    - Remove unnecessary `else` block in `notifier_helper.go`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    5a789aa View commit details
    Browse the repository at this point in the history
  8. refactor: refactor ActionSchedule struct in schedule.go and migrati…

    …on v246
    
    - Remove `EntryIDs` field from `ActionSchedule` struct in `schedule.go`
    - Remove `EntryIDs` field from migration v246 in `v1_20` folder
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    756c534 View commit details
    Browse the repository at this point in the history
  9. refactor: simplify error handling and rename 'jobs' to 'workflows'

    - Rename `jobs` to `workflows` for clarity
    - Simplify error handling in line 14
    - Simplify error handling in line 19
    - Remove unnecessary else statement in line 22
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    257a37f View commit details
    Browse the repository at this point in the history
  10. chore: refactor license for cron library

    - Remove the license for `github.com/robfig/cron/v3`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    a33777d View commit details
    Browse the repository at this point in the history
  11. Update go-licenses.json

    appleboy authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    2f01a51 View commit details
    Browse the repository at this point in the history
  12. refactor: refactor ScheduleTask functions to use passed context

    - Update `CreateScheduleTask` to use the passed context instead of `db.DefaultContext`
    - Update `DeleteScheduleTaskByRepo` to use the passed context instead of `db.DefaultContext`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    a0dbb87 View commit details
    Browse the repository at this point in the history
  13. refactor: remove unnecessary approval function from notifier helper file

    - Delete the `ifNeedApproval` function from `notifier_helper.go`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    bf44849 View commit details
    Browse the repository at this point in the history
  14. chore: add license to go-licenses.json file

    - Add a license to the `go-licenses.json` file
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    9ca276b View commit details
    Browse the repository at this point in the history
  15. style: ensure consistent line endings across all files

    - Remove a line that had no newline at the end of the file
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    4eae2df View commit details
    Browse the repository at this point in the history
  16. refactor: improve scheduling efficiency by optimizing import statements

    - Add an import statement in `schedule_spec_list.go`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    0cb21dc View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. Configuration menu
    Copy the full SHA
    b63ba87 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. feat: refactor approval handling for workflows

    - Change `run` initialization to a pointer
    - Add function `ifNeedApproval` for deciding if a user needs approval
    - Modify `handleWorkflows` to use `ifNeedApproval` function
    - Add `NeedApproval` field to `run` in `handleWorkflows` function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    b14c06e View commit details
    Browse the repository at this point in the history
  2. refactor: refactor CreateScheduleTask function

    - Fix a typo in the `CreateScheduleTask` function
    - Remove unnecessary code from the `CreateScheduleTask` function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    5685ea0 View commit details
    Browse the repository at this point in the history
  3. refactor: refactor ActionScheduleSpec model struct

    - Add `xorm: "index"` tag to `RepoID` and `ScheduleID` fields in `ActionScheduleSpec`
    - Remove `RepoID` and `ScheduleID` fields from the model struct
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    737d7fe View commit details
    Browse the repository at this point in the history
  4. feat: refactor schedule task creation process

    - Remove the function `CreateScheduleTask` from the `notifier_helper.go` file
    - Add the function `CreateScheduleTask` to the `schedule_tasks.go` file, which creates a scheduled task from a cron action schedule and a spec string. It creates an action run based on the schedule, inserts it into the database, and creates commit statuses for each job.
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    f069367 View commit details
    Browse the repository at this point in the history
  5. refactor: refactor variable assignment in startTasks function

    - Change in variable assignment for `specs` in `startTasks` function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    16513bb View commit details
    Browse the repository at this point in the history
  6. refactor: refactor workflow handling function signature

    - Remove the handleWorkflows function and replace it with a new version that has a different signature and takes more arguments.
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    6c14852 View commit details
    Browse the repository at this point in the history
  7. Update services/cron/tasks_actions.go

    Co-authored-by: Jason Song <i@wolfogre.com>
    appleboy and wolfogre authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    099d9a9 View commit details
    Browse the repository at this point in the history
  8. perf: refactor scheduling logic for more accurate timing

    - Update the `now` variable to truncate to the nearest minute
    - Change the calculation of `next` to use `now.Add(-1)` instead of `now`
    - Replace `next.Sub(now) <= 60` with `schedule.Next(now.Add(-1)).Equal(now)`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    35081d6 View commit details
    Browse the repository at this point in the history
  9. perf: improve performance and add new function for task starting

    - Change the initialization of `crons` to allocate capacity upfront, improving performance.
    - Remove an unused variable definition.
    - Add a new function `startTasks` with `opts` parameter.
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    1655a8c View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2023

  1. refactor: simplify and optimize schedule handling function

    - Remove debug log for workflow content
    - Simplify check for empty crons slice
    - Remove unnecessary if statement
    - Simplify return statement in handleSchedules function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    bf8cda4 View commit details
    Browse the repository at this point in the history
  2. refactor: refactor schedule task retrieval logic

    - Remove `GetAll` field from `FindSpecOptions` struct
    - Add `FindAllSpecs` function to retrieve all matching schedule specs
    - Modify `StartScheduleTasks` to use `FindAllSpecs` instead of `FindSpecs`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    0b714b6 View commit details
    Browse the repository at this point in the history
  3. chore: refactor migration file naming convention

    - Rename file v246.go to v248.go in models/migrations/v1_20/ directory.
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    039ead5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f12cb3e View commit details
    Browse the repository at this point in the history
  5. fix: refactor CreateScheduleTask function to handle empty rows gracef…

    …ully
    
    - Add a check for `len(rows)` before executing `CreateScheduleTask` function
    - Remove a redundant check for `len(rows)` in `CreateScheduleTask` function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    7671a31 View commit details
    Browse the repository at this point in the history
  6. feat: refactor schedule task creation and retrieval process

    - Remove the function `FinAllSpecs` from `schedule_spec_list.go`
    - Change the page size to 50 in `schedule_spec_list.go`
    - Retrieve specs in pages in `schedule_tasks.go`
    - Create a schedule task for each spec whose schedule is due
    - Check for invalid schedules before creating a schedule task
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    fab7c2c View commit details
    Browse the repository at this point in the history
  7. chore: replace space with tab

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    b815dac View commit details
    Browse the repository at this point in the history
  8. refactor: refactor schedule task registration function

    - Remove `registerScheduleTasks` function
    - Add a new implementation of `registerScheduleTasks` function
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    978739d View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2023

  1. Configuration menu
    Copy the full SHA
    9efbda8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    beada43 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. refactor: refactor file naming convention

    - File `v248.go` was renamed to `v249.go`.
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    0815696 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5eb8947 View commit details
    Browse the repository at this point in the history
  3. chore: convert space to tab

    appleboy committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    a693fe6 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2023

  1. chore: refactor migration file names in v1_20 directory

    - Rename `v249.go` to `v250.go` in `models/migrations/v1_20`
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    5d0e0e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fba8dc4 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2023

  1. N/A (no changes in git diff): refactor code for improved performance …

    …and readability
    
    No summary comments, as there are no changes in the git diff.
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    ce80ce8 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Configuration menu
    Copy the full SHA
    d15448b View commit details
    Browse the repository at this point in the history
  2. chore: update

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    958e67b View commit details
    Browse the repository at this point in the history
  3. chore: update

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    ad91c4b View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2023

  1. Configuration menu
    Copy the full SHA
    95320e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. chore: rename

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    513a4bf View commit details
    Browse the repository at this point in the history
  2. chore: rename

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    e5257ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee2338b View commit details
    Browse the repository at this point in the history
  4. refactor: simplify schedule event detection

    - Remove code that fetched all schedule events and only keep the schedule event detection
    - Simplify the schedule event detection code
    
    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    83a5fb5 View commit details
    Browse the repository at this point in the history
  5. chore: update

    Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
    appleboy committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    4db836d View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Update services/actions/schedule_tasks.go

    Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
    appleboy and lunny authored Apr 13, 2023
    Configuration menu
    Copy the full SHA
    606027f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07f1d6a View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. bump migration name

    techknowlogick committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    f972c37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e5b5cf View commit details
    Browse the repository at this point in the history
  3. fix syntax issue

    techknowlogick committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    6c7170c View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2023

  1. chore: update

    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    a2fade1 View commit details
    Browse the repository at this point in the history
  2. chore: update

    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    c356411 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    463a65f View commit details
    Browse the repository at this point in the history
  4. refactor: optimize scheduling and improve API usage

    - Remove loop that creates schedule tasks for each cron and spec
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    d958943 View commit details
    Browse the repository at this point in the history
  5. chore: add dashboard.start_schedule_tasks language

    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    7c8b678 View commit details
    Browse the repository at this point in the history
  6. chore: update

    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    c7f89f9 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2023

  1. feat: improve scheduling and task handling in Gogs API

    - Import "time" and "github.com/gogs/cron" packages
    - Add GetReposMapByIDs function to retrieve repos by given ID slice
    - Add comments and refactor CreateScheduleTask function
    - Import "context" and "github.com/gogs/cron" in schedule_spec.go
    - Add new fields and Parse function to ActionScheduleSpec struct
    - Add UpdateScheduleSpec function
    - Update LoadSchedules function in schedule_spec_list.go
    - Add Next field in FindSpecOptions struct
    - Update models/migrations/v1_20/v256.go
    - Refactor startTasks function in schedule_tasks.go
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    67e2da6 View commit details
    Browse the repository at this point in the history
  2. feat: improve API efficiency and test coverage

    - Add ActionScheduleSpec and ActionSchedule with RepoID in DeleteRepository function
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    06fc431 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2023

  1. fix: improve error handling and API efficiency in tests

    - Add a missing error return statement in `handleSchedules` function
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed May 6, 2023
    Configuration menu
    Copy the full SHA
    f2c0021 View commit details
    Browse the repository at this point in the history
  2. refactor: improve action scheduling and API usage

    - Remove `index` tag from `WorkflowID` in `ActionSchedule` struct
    - Add `index` tag to `RepoID` and `ScheduleID` in `AddActionScheduleTable` function
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed May 6, 2023
    Configuration menu
    Copy the full SHA
    5c9f14f View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. refactor: improve API efficiency and test robustness

    - Rename migration file from `v256.go` to `v257.go`
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed May 10, 2023
    Configuration menu
    Copy the full SHA
    6c93d4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d8f1a8 View commit details
    Browse the repository at this point in the history
  3. chore: update

    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed May 10, 2023
    Configuration menu
    Copy the full SHA
    4c243ed View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Configuration menu
    Copy the full SHA
    4150af6 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2023

  1. Configuration menu
    Copy the full SHA
    542f681 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2023

  1. Configuration menu
    Copy the full SHA
    b07802e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d530efd View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. rename

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    7ad692f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58174b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab22d4d View commit details
    Browse the repository at this point in the history
  4. rename

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    36c58fe View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. rename

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    729bc69 View commit details
    Browse the repository at this point in the history
  2. rename

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    c1be2b5 View commit details
    Browse the repository at this point in the history
  3. update

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    e0b65e2 View commit details
    Browse the repository at this point in the history
  4. feat: refactor schedule handling in notifier helper

    - Add `github.com/gogs/cron` to the `go.mod` file
    - Remove `GetAll` from `FindScheduleOptions` struct in `schedule_list.go`
    - Replace `if !opts.GetAll` with `if !opts.ListAll` in `FindSchedules` function in `schedule_list.go`
    - Remove `handleSchedules` function from `notifier_helper.go`
    - Modify `notify` function in `notifier_helper.go` to include `schedules` in `DetectWorkflows` function calls
    - Replace `workflows` with `detectedWorkflows` in `handleWorkflows` function in `notifier_helper.go`
    - Add `handleSchedules` function in `notifier_helper.go` to handle detected workflows and create schedule tasks
    - Modify `handleWorkflows` function in `notifier_helper.go` to cancel running jobs if the event is push
    - Modify `notify` function in `notifier_helper.go` to call `handleWorkflows` with `detectedWorkflows` instead of `workflows`
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    40ed679 View commit details
    Browse the repository at this point in the history
  5. fix: improve error handling in startTasks function

    - Add error return statements in the `startTasks` function in two places.
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    a12d22d View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Configuration menu
    Copy the full SHA
    c4420db View commit details
    Browse the repository at this point in the history
  2. remove gogs/cron

    lunny committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    7890d91 View commit details
    Browse the repository at this point in the history
  3. Fix bug

    lunny committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    c40bc37 View commit details
    Browse the repository at this point in the history
  4. Fix bug

    lunny committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    dd27c7f View commit details
    Browse the repository at this point in the history
  5. Fix bug

    lunny committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    82694d7 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Update services/actions/schedule_tasks.go

    Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
    lunny and wxiaoguang authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    14d5c46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40ce6f7 View commit details
    Browse the repository at this point in the history
  3. Fix bug

    lunny committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    26ce2e9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c24887 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    99210fc View commit details
    Browse the repository at this point in the history
  6. make code review easier

    lunny committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    83ec4c6 View commit details
    Browse the repository at this point in the history
  7. Fix bug

    lunny committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    8152ab7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3e95eb6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    da6ae91 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ed4bf1c View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    860e2a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e3e206 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23730be View commit details
    Browse the repository at this point in the history