Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 4月 07, 2024
  2. 4月 03, 2024
  3. 3月 21, 2024
  4. 3月 20, 2024
  5. 3月 18, 2024
    • Dylan Griffith's avatar
      Improve stub_env handling of unset keys raise error on fetch · 2a8aefca
      Dylan Griffith 创作于
      In real usage if you call `ENV.fetch('NON_EXISTENT_KEY')` it will raise
      a `KeyError`. But our previously implementation of of `stub_env` with
      `nil` is causing it to return `nil` rather than raising an error. This
      can cause us to write tests that don't match the actual production
      behaviour. We might forget to rescue the exception in a certain place or
      we also may not be able to write a test case for the expected behaviour.
      
      ```
      irb(main):001> ENV.fetch('NON_EXISTENT_KEY')
      (irb):1:in `fetch': key not found: "NON_EXISTENT_KEY" (KeyError)
      
      irb(main):002> ENV['NON_EXISTENT_KEY'] = nil
      => nil
      
      irb(main):003> ENV.fetch('NON_EXISTENT_KEY')
      (irb):3:in `fetch': key not found: "NON_EXISTENT_KEY" (KeyError)
      ```
      2a8aefca
  6. 3月 07, 2024
  7. 3月 05, 2024
  8. 2月 27, 2024
  9. 2月 23, 2024
  10. 2月 22, 2024
    • Tiger Watson's avatar
      gitlab-housekeeper: Allow keeps to use merge request URL · 3cc31f4d
      Tiger Watson 创作于
      Adds a placeholder for the merge request URL which keeps can use in
      their code, which will be substituted for the actual URL when the
      merge request is created.
      
      To enable this, the housekeeper now pushes an empty branch and
      merge request before committing to the branch.
      未验证
      3cc31f4d
  11. 2月 19, 2024
  12. 2月 16, 2024
  13. 2月 15, 2024
  14. 2月 13, 2024
  15. 2月 08, 2024
  16. 2月 06, 2024
  17. 2月 02, 2024
  18. 1月 31, 2024
    • Dylan Griffith's avatar
      Add --filter-identifiers option to gitlab-housekeeper · 65e86e6d
      Dylan Griffith 创作于
      During local usage of this we found it is often
      [desirable to get the housekeeper to generate a specific MR](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/139747#note_1741757815)
      and ignore the other ones. Since it just does them in order we had to
      previously manually hack the keeps to skip the changes we don't care
      about.
      
      This change introduces a command line option `--filter-identifiers`
      which takes a comma separated list which will be matched against the
      list of "identifiers" in a change yielded from a keep. The identifiers
      is an array so to allow for flexible regex matching of specific elements
      in the array we filter such that all regexes must match at least one of
      the identifiers in the list.
      65e86e6d
  19. 1月 30, 2024
    • Dylan Griffith's avatar
      Remove --require option from gitlab-housekeeper but load all keeps/*.rb · 25110bc1
      Dylan Griffith 创作于
      This `-r keeps/...` is proving to be unnecessary and likely it's fine to
      just always load all the files in `keeps/*.rb`.
      
      I considered the possibility of loading everything in `keeps/*.rb` as
      well as keeping the option around in case someone wanted to manually
      load a keep that was in a different directory but I couldn't think of
      any good reason to do that. So to simplify the options I've just removed
      it.
      25110bc1
加载中