llaine / hans-landa

MIT License
7 stars 10 forks source link

Trigger build based on PR comment #5

Open llaine opened 4 years ago

llaine commented 4 years ago

Acceptance criteria

Given a PR opened When the user is commenting on the PR and entering a specific command Then he should be able to trigger a build immediately

Example

@hans-landa build now
ahanriat commented 4 years ago

Idea 1 💡

@hans <projectId> <workflow> [delay: '1h' | 'tonight' | '1w']

For the delay properties we don't have to add it now. It will be retro compatible API anyway.

Idea2

Based on the idea 1, the projectId and the workflow could be quite painful to remember. It would probably be better to alias them:

@hans buildQA [delay: '1h' | 'tonight' | '1w']

It would be nice to be able to use this alias to trigger multiple builds (ios & android for example)

llaine commented 4 years ago

I like the idea 2 better. IMO the goal would be to bypass the triggers from the GitHub actions and trigger it manually for the current PR.

llaine commented 4 years ago

wef

llaine commented 4 years ago

test

llaine commented 4 years ago

Entry workflow

   workflows:
            - :
              name: buildQA
              bitrise_app_slug: ca04e0425716e1ce
              bitrise_build_trigger_token: Gs7vZtsWEz-UZ_vNdNxDIA
              build_on: command
            - :
              name: buildQA
              bitrise_app_slug: ca04e0425716e1ceff
              bitrise_build_trigger_token: Gs7vZtsWEz-UZ_vNdNxDIAaaa
              build_on: command
            - :
              name: primary
              bitrise_app_slug: ca04e0425716e1ce
              bitrise_build_trigger_token: Gs7vZtsWEz-UZ_vNdNxDIA
              build_on: [commit, command]
llaine commented 4 years ago