Giter VIP home page Giter VIP logo

bamboohr-update-working-hours-automatically's Introduction

BambooHR Working Hours automation

Automatically add working hours of an employee in BambooHR

⚠️ Unmaintained ⚠️

My company stopped using BambooHR so this project is not maintained anymore


Context

The company I'm currently working for requires to fulfill a form every day of the month with the amount of hours worked in BambooHR platform. This is due the new law the Spanish government created a few months ago. Apparently BambooHR plugin to add Working Hours does not offer settings to automate or add by default values to this form.

I first tried to interact with BambooHR API but it requires a Private Key which is not possible to be provided by my current company right now.

That's why I opt for a headless solution to add the manual interaction a user would do so it can be automated.

Tools/Language/Technologies

Project Structure:

  • .github/workflows/bamboohr-puppeteer.yml: Simulate UI interactions with BambooHR UI through headless browser solution (Puppeteer)
  • src/index.ts: File run by Puppeteer to interact with BambooHR UI site to finally register Working Hours on BambooHR's Working Hours Plugin
  • src/bamboo-hr-interactions/*: Different interactions taken over BambooHR UI Components with Puppeteer (click, type...)

Setup

  1. Fork this repository in your GitHub Account *

  2. Add the following KEY-VALUES as secrets on the repository you plan to run this Github Action:

    • COMPANY_BAMBOOHR: Company's subdomain under BambooHR to access your company's BambooHR site: https://<COMPANY_BAMHOOHR>.bamboohr.com
    • USER_BAMBOOHR: BambooHR's Username of the employee you want to automate his/her working hours
    • PASSWORD_BAMBOOHR: Password associated to previous username
  3. Wait until next working day (Monday-Friday) at 8AM GTM** to get GitHub Action automatically triggered

*This tool is in alpha stage so it is not available in Github Marketplace yet. As soon as it is considered as ready to use, it will be published

**You can find online converters from your local time to GTM. Also, at www.google.com you can just type: "gmt convert" and magic will happen 😎

bamboohr-update-working-hours-automatically's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar oscard0m avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar

bamboohr-update-working-hours-automatically's Issues

To split `Build` step and `Puppeteer` step in Pipeline

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It would be nice to split this step so the Build part becomes a check run for Pull Requests

Describe the solution you'd like
A clear and concise description of what you want to happen.
To split Build step (TypeScript compilation)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
none

To consider days off properly

  • To not run when an employee has day off
  • To apply proper schedule when it has special schedule (morning shift, late shift...)

Do not run Puppeteer when is PR but run the rest of Steps in Pipeline

Describe the bug
A clear and concise description of what the bug is.
Right now any PR is running Puppeteer and it should not

To Reproduce
Steps to reproduce the behavior:

  1. Open any PR
  2. Check Actions
  3. Action is not skipped

Expected behavior
A clear and concise description of what you expected to happen.
Do not run Puppeteer when is PR but run the rest of Steps in Pipeline

Preventing ESLint and formatting errors from being committed

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Prevent ESLint and formatting errors from being committed

Describe the solution you'd like
A clear and concise description of what you want to happen.
https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
To use a Github Action to run it instead of local machine of the developer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.