Commit graph

35 commits

Author SHA1 Message Date
Josh Puetz
9fe7be190b
Switch references to Forem master branch to main (#12325) 2021-04-16 11:51:06 -05:00
Christina
1f90c63eac
Update issue.yml text. (#12375)
* Update issue.yml text. 

Updating text to give more time for following up on issues and to let the community know why some feature requests may be closed.

* Update .github/workflows/issue.yml

Removing extremely

Co-authored-by: rhymes <rhymes@hey.com>

Co-authored-by: rhymes <rhymes@hey.com>
2021-01-22 10:02:24 -06:00
rhymes
d24a40944c
Update Dependabot configuration for Bundler, Yarn/NPM and actions (#11877) 2020-12-14 17:31:16 +01:00
Joe Doss
24eb8b3354
Rework the PULL_REQUEST_ID logic, again (#11871)
and move github.event.issue.number to the workflow file....
2020-12-11 16:03:53 -06:00
Joe Doss
20598be83f
Add GITHUB_TOKEN to workflow. (#11866) 2020-12-11 12:17:05 -06:00
Joe Doss
c87951d4f2
Add create_buildkite_pr_build.sh (#11849)
* Remove rebase workflow as it will not work as expected with third party forks.

* Add the create_buildkite_pr_build.sh script.

This script will use the GitHub API to gather information about the PR, the PR
Author and create a Pull Request pipeline build on Buildkite.

You can mock out the things needed to work on this script locally with the
following environment variables exported:

export BUILDKITE_API_ACCESS_TOKEN=notarealtoken
export GITHUB_EVENT_PATH=$(curl --silent 2d0e0bdefc/github_actions_event_context.json)
export GITHUB_REPOSITORY=forem/forem
export GITHUB_TOKEN=notarealtoken

Note: You will need to get your own BUILDKITE_API_ACCESS_TOKEN and GITHUB_TOKEN
tokens.

You can then run the script locally to create builds from a pull request. The
GITHUB_EVENT_PATH JSON data is from https://github.com/forem/forem/pull/1181
which might not build on Buildkite down the road if is is closed. You might need
to pull down that JSON data and find and replace the PR number 11818 with thing
else.

Also this script could be busted out into it's own GitHub Action repo so you can
work on it outside of the Forem repo, but I don't have the mental fortitude to
work on GitHub Actions at this time. It is the most painful CI systems I have used
to date in terms of having an very very poor feedback loop/developer experience.
It desperately needs a REPL or mock shell for you to develop actions in so you don't
have to keep submitting PRs to your main branch to see results.
2020-12-11 09:41:02 -06:00
rhymes
f8a8e0320b
Fix Dependabot GitHub action syntax (#11864) 2020-12-11 15:10:20 +01:00
Joe Doss
e91dffb1a5
Just use the master branch for now. (#11834) 2020-12-09 13:55:25 -06:00
Joe Doss
eee63068dc
Scope PR comment bot to only run when the PR is opened. (#11830) 2020-12-09 10:44:04 -06:00
Joe Doss
67342a4edf
Add github.event.comment.author_association == 'CONTRIBUTOR' to if statement (#11822)
This should be the last PR to get the `/ci` and `/rebase` commands working in
GitHub Actions. The issue is that our membership settings for `forem/forem` have
everyone set to 'CONTRIBUTOR' instead of 'MEMBER' or 'OWNER'.

Adding github.event.comment.author_association == 'CONTRIBUTOR' should fix this
issue.

I also cleaned up all action files to make the main name of the workflow as
succinct as possible to better organize the left menut of the GitHub Actions
page.

This PR won't fix the issues with the "Run forem/build-containers pipeline"
job in buildkite.yml but I will address those issues in another  PR.
2020-12-09 08:36:57 -06:00
Joe Doss
66dc8081b1
Update buildkite.yml (#11821)
Uncomments if statement as I was able to get the info I needed out of the debug statement. Using admin privs to re-enable the if statement sans tests.
2020-12-08 18:37:16 -06:00
Joe Doss
5edff0182f
Update buildkite.yml (#11820)
Admin merging to disable the conditional for a quick test. TravisCI tests do not need to run for this PR.
2020-12-08 18:31:20 -06:00
Joe Doss
a8b9e9ab95
Add debug to actions. (#11819) 2020-12-08 18:12:06 -06:00
Joe Doss
4504ac15ec
GitHub Action bug fixes (#11816)
* Update if statement w/r/t github.event.issue.pull_request conditional and update
cirrus-actions/rebase to 1.4.

* Fix running the PR comment workflow so it only runs if

github.event.pull_request.head.repo.full_name != github.repository

How neat!
2020-12-08 16:54:28 -06:00
Joe Doss
bb849bf319
Try to fix GitHub Action conditionals again... (#11807) 2020-12-08 10:38:09 -06:00
Joe Doss
71ad902315
Fix YAML so it is actually valid GitHub Action YAMLs. (#11801) 2020-12-08 09:48:49 -06:00
Joe Doss
08447cfea2
Update buildkite.yml (#11799) 2020-12-08 09:02:09 -06:00
Joe Doss
58b7906fe6
GitHub workflow for /ci trigger (#11794)
* GitHub workflow for /ci trigger

Add in GitHub workflow for adding the `ci` label to the PR and running Buildkite
pipeline(s).

The `ci` label will allow the PR to be built on push without havinvg to continuously
issue the `/ci` trigger from a Forem team member.

```
build.pull_request.repository.fork != true || build.pull_request.labels includes "ci"
```

Also using the `/ci` trigger will run the initial pipeline builds too.

* Fix YAML formatting and typos.

* Add note to PR template.

* Conditionally add a comment to a new PR when it originates from a third-party
fork with a note about having to wait for manual approval for our CI to run on
their PR.

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update .github/workflows/pr.yml

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Adjust if statement to include OWNERS and do startsWith instead of contains.

Co-authored-by: Michael Kohl <citizen428@dev.to>
2020-12-08 08:32:47 -06:00
Michael Kohl
32e461c66b
Update to Ruby 2.7.2 (#10594)
* Update to Ruby 2.7.2

* Update remaining files

* Remove VERBOSE from development.rb and test.rb

* Update Ruby version for dependabot and docs

* Readd accidentally removed code
2020-11-05 16:11:09 +01:00
Mac Siri
df245e7e84
Create codeql-analysis.yml (#10276) 2020-09-11 09:46:45 +02:00
Alberto Pérez de Rada Fiol
8b882dd512
Add workflow automating maintainers' comment on new issues (#9488)
* Add workflow automating maintainers' comment on new issues

* Add steps

* Convert steps to a list
2020-07-29 14:17:47 +02:00
Yash Dave
c9ff792497
fix actions/checkout to v2 for rebase workflow (#9515) 2020-07-28 10:34:35 -05:00
Mac Siri
7ceb5550a2
Remove codeql-analysis.yml (#9354) 2020-07-16 12:15:38 -04:00
Molly Struve
e2d58f862c
[deploy] Remove codeql analysis for right now (#9308) 2020-07-14 12:37:45 -05:00
rhymes
b42a843b78
Add Github CodeQL code scanner for JavaScript (#9217)
GitHub released a code analysis engine that scans the code for potential issues called CodeQL.

Among the list of supported languages we only use JavaScript
2020-07-09 14:16:48 -04:00
Jacob Herrington
9285abcd5e
Remove first interaction workflow (#9112)
This workflow is currently not function as expected. I'm not sure why it
would not be more clearly documented, but there doesn't seem to be a way
that this would actually work to leave a comment on a first time
contributor's PR (given that the contributor is using a fork)...

Relevant discussions:
https://github.com/actions/first-interaction/issues/10
https://github.community/t/github-actions-are-severely-limited-on-prs/18179#M9249
2020-07-05 18:14:10 -04:00
Jacob Herrington
0b973c9d82
Allow organization owners to use the Automatic Rebase workflow (#9090)
* Allow org owners to kick off automatic rebase

I suspect without this change PBJ couldn't kick off the automatic rebase
workflow.

This also includes a tweak to our method for determining if this is a
comment on a PR. I personally think this method is more explicit and
therefore readable.

* Add explanatory comment to rebase workflow

This might help someone determine what the workflow does at a glance, it
also documents a slightly unexpected caveat: The workflow can't be
triggered if your organization membership is private.

* Trigger Travis

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-07-03 10:49:40 -05:00
Jacob Herrington
10bb220e1d
Add a workflow to greet new contributors (#9096) 2020-07-03 09:44:41 -05:00
Awasum Yannick
f298f8c41f
Enable Automatic Rebase: Fix #8927 (#9018)
* Enable Automatic Rebase: Fix #8927

* Update rebase.yml to use startsWith

Use startsWith() instead of contains() in Github Action so as to prevent accidental Rebase of PRs.
2020-07-02 12:42:21 +02:00
dependabot-preview[bot]
92c72ab2c5
[deploy] Bump twilio-ruby from 5.37.0 to 5.38.0 (#8968) 2020-06-29 09:39:41 -05:00
Joe Doss
284b6ee1e1
Update dependabot.yml (#8143) 2020-05-28 13:45:47 -05:00
Joe Doss
a913103e7d
Update dependabot.yml (#8140) 2020-05-28 12:30:26 -05:00
Joe Doss
a607cbbf41
Update vendor/cache After Dependabot (#8135)
* Create dependabot.yml with 

bundle config cache_all_platforms true
bundle config set cache_all true

so we cache gems in the workflow.
2020-05-28 12:15:43 -05:00
Ben Halpern
ec98a4f271
Remove Greetings workflows (#6453) 2020-03-04 13:37:31 -05:00
Mac Siri
2c6fc937cd
Create greeter (#4727)
* [WIP] Create greeter

* Update greeter
2020-02-18 13:31:00 -05:00