Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate GitHub Actions from v1 to v2 #4

Merged
merged 5 commits into from Mar 22, 2020
Merged

Migrate GitHub Actions from v1 to v2 #4

merged 5 commits into from Mar 22, 2020

Conversation

kentaro-m
Copy link
Owner

@kentaro-m kentaro-m commented Mar 19, 2020

Description

Migrate GitHub Actions from v1 to v2

Usage

name: 'Issue Reference'
on: 
  pull_request:
    types: [opened]

jobs:
  issue-reference:
    runs-on: ubuntu-latest
    steps:
      - uses: kentaro-m/add-an-issue-reference-action@v2
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          branch-prefix: "issue"

Demo

スクリーンショット 2020-03-20 0 14 37

TODO

  • Update the document

@Kreyren
Copy link

Kreyren commented Mar 20, 2020

Can you elaborate on why is this important?

image

@kentaro-m kentaro-m linked an issue Mar 20, 2020 that may be closed by this pull request
@kentaro-m
Copy link
Owner Author

Hi, @Kreyren.
branch-prefix is used to get an issue number to link a specific issue from the branch name. Yesterday I wrote an incorrect branch-prefix specification in the PR description. It should contain a hyphen (e.g. issue-).

スクリーンショット_2020-03-21_0_19_31

name: 'Issue Reference'
on: 
  pull_request:
    types: [opened]

jobs:
  issue-reference:
    runs-on: ubuntu-latest
    steps:
      - uses: kentaro-m/add-an-issue-reference-action@v2
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          branch-prefix: "TICKET-"

@kentaro-m kentaro-m merged commit 9c1782c into master Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants