►
Description
How GitHub Codespace Makes Contributing to Keptn & Kept Docs Much Easier!
In this video Adam Gardner, DevRel at Dynatrace, walks you through, step-by-step, how to make a change to a Keptn repo using GitHub Codespaces by showing:
- How to fork a repo
- Code: Create Codespace on main
- Using the VS Code / Codespaces UI how to make a change
- How to stage the changes, commit staged as signed off (as required by CNCF & Keptn projects), and push those changes
- How to create a PR
A
A
The
first
thing
you're
going
to
want
to
do
is
go
up
to
the
fork
button
and
it'll
say
you
don't
have
any
Forks
of
this
repository
so
go
ahead
and
create
a
fork
under
your
account,
go
ahead
and
go
to
the
code
button
and
flick
across
from
local
to
code
spaces
and
then
click
the
green,
create
code
space
on
Main.
So
after
a
minute
or
so,
you're
dropped
into
this
user
interface,
which,
if
you've
ever
used
Visual
Studio
code,
will
look
very
familiar.
A
Basically,
what
you
have
is
a
running
virtual
machine
and
the
copy
of
the
captain
code,
so
you
can
make
any
changes
and
it's
all
kind
of
Linked
In
nicely
to
GitHub.
Okay,
so
I'm
gonna
go
to
the
captain
life
cycle,
documentation
and,
let's
imagine
I
I-
want
to
make
a
change.
So
let's
go
into
the
docs
and
I,
don't
know
getting
started
page
as
an
example.
A
A
Now,
let's
preview,
my
changes,
so
I
can
type
make
server
and
this
will
go
ahead
and
spin
up
a
copy
of
the
documentation
website
in
the
code
space
notice
down
on
the
bottom
right
hand,
corner
here:
you've
got
a
box
that
says
your
application
is
running
on
Port
1314
open
in
a
browser.
If
you
click
that
link,
it
will
actually
try
and
open
the
documentation
page,
but
you'll
get
a
502..
A
That's
okay!
That's
just
code
spaces
being
a
bit
too
eager
to
show
you
the
the
link
so
wait
until
the
code
space
shows
you.
This
web
server
is
available
at
localhost1314
press
Ctrl
C
to
stop.
If
you
now
refresh
that
page
with
the
502,
your
preview
of
the
captain,
documentation
website
will
be
up
and
running
so
go
ahead
and
navigate
to
the
page
that
you
changed
and
you
should
see
your
changes
reflected
on
the
preview
documentation
website.
A
A
The
changes
give
your
commit
a
commit
message:
I
highly
recommend
that
you
make
it
a
conventional
commit
message
as
in
docs
colon
some
message
and
make
sure
that
the
s
after
the
colon
that
I.E
the
first
word
is
NOT.
Capitalized
I
have
have
hit
this
issue
as
well,
so
make
it
all
lower
case
now,
don't
click
commit
yet
Captain
and
the
cncf
require
that
all
commits
be
signed.
A
So,
instead
of
commit
go
to
the
three
little
dots
and
click
the
drop
down
go
to
commit
and
then
commit
staged
signed
off
this
second
bottom
option
here,
so
your
changes
have
now
been
committed,
go
back
to
the
three
dots
and
go
to
push,
and
this
will
push
the
changes
up
to
your
fork
of
the
repository.
So
in
a
new
tab,
navigate
to
your
GitHub
account
and
you
should
see
the
fork
that
you
created
go
into
there
and
the
very
first
commit
that
you
see
should
be
whatever
you've
just
done.
A
A
Now
there's
one
extra
thing:
GitHub
code
spaces
gives
you
a
generous
free
tier
each
month,
but
I
always
like
to
go
to
my
GitHub
account
and
go
up
to
code
spaces
in
the
top
menu
here,
find
the
code
space
that
is
currently
running,
click,
the
three
little
dots
and
hit
delete,
and
that
will
completely
delete
that
code,
space
environment,
so
you're
not
going
to
get
charged
for
that
environment,
anymore.
I,
hope
this
helps
get
started,
committing
and
improving
the
captain,
documentation
and
also
the
core
Captain
code.
Thanks.